🐛 Fix bugs
This commit is contained in:
		| @@ -10,6 +10,8 @@ plugins { | ||||
| } | ||||
|  | ||||
| dependencies { | ||||
|     implementation 'com.facebook.fresco:webpsupport:2.6.0' | ||||
|     implementation 'com.facebook.react:react-android:0.75.5' | ||||
|     implementation 'com.google.android.material:material:1.12.0' | ||||
|     implementation 'androidx.glance:glance:1.1.1' | ||||
|     implementation 'androidx.glance:glance-appwidget:1.1.1' | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> | ||||
|     <uses-feature android:name="android.hardware.camera" /> | ||||
|     <uses-feature android:name="android.hardware.camera.autofocus" /> | ||||
|     <uses-permission android:name="android.permission.INTERNET" /> | ||||
| @@ -118,4 +118,4 @@ | ||||
|             <data android:mimeType="text/plain" /> | ||||
|         </intent> | ||||
|     </queries> | ||||
| </manifest> | ||||
| </manifest> | ||||
|   | ||||
							
								
								
									
										91
									
								
								android/app/src/proguard-rules.pro
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										91
									
								
								android/app/src/proguard-rules.pro
									
									
									
									
										vendored
									
									
								
							| @@ -11,4 +11,93 @@ | ||||
|  | ||||
| -keepclassmembers class * { | ||||
|     @com.google.gson.annotations.SerializedName <fields>; | ||||
| } | ||||
| } | ||||
|  | ||||
| # React Native | ||||
|  | ||||
| # Keep our interfaces so they can be used by other ProGuard rules. | ||||
| # See http://sourceforge.net/p/proguard/bugs/466/ | ||||
| -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip | ||||
| -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters | ||||
| -keep class com.facebook.imagepipeline.nativecode.WebpTranscoderImpl { *; } | ||||
| -keep class com.facebook.imagepipeline.nativecode.WebpTranscoder { *; } | ||||
|  | ||||
| -dontwarn com.facebook.imagepipeline.nativecode.** | ||||
| -dontwarn com.facebook.imagepipeline.nativecode.WebpTranscoder | ||||
|  | ||||
| # Do not strip any method/class that is annotated with @DoNotStrip | ||||
| -keep @com.facebook.proguard.annotations.DoNotStrip class * | ||||
| -keepclassmembers class * { | ||||
|     @com.facebook.proguard.annotations.DoNotStrip *; | ||||
| } | ||||
|  | ||||
| -keep @com.facebook.proguard.annotations.DoNotStripAny class * { | ||||
|     *; | ||||
| } | ||||
|  | ||||
| -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { | ||||
|   void set*(***); | ||||
|   *** get*(); | ||||
| } | ||||
|  | ||||
| -keep class * implements com.facebook.react.bridge.JavaScriptModule { *; } | ||||
| -keep class * implements com.facebook.react.bridge.NativeModule { *; } | ||||
| -keepclassmembers,includedescriptorclasses class * { native <methods>; } | ||||
| -keepclassmembers class *  { @com.facebook.react.uimanager.annotations.ReactProp <methods>; } | ||||
| -keepclassmembers class *  { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; } | ||||
|  | ||||
| -dontwarn com.facebook.react.** | ||||
| -keep,includedescriptorclasses class com.facebook.react.bridge.** { *; } | ||||
| -keep,includedescriptorclasses class com.facebook.react.turbomodule.core.** { *; } | ||||
|  | ||||
| # hermes | ||||
| -keep class com.facebook.jni.** { *; } | ||||
|  | ||||
| # okio | ||||
| -keep class sun.misc.Unsafe { *; } | ||||
| -dontwarn java.nio.file.* | ||||
| -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement | ||||
| -dontwarn okio.** | ||||
|  | ||||
| # yoga | ||||
| -keep,allowobfuscation @interface com.facebook.yoga.annotations.DoNotStrip | ||||
| -keep @com.facebook.yoga.annotations.DoNotStrip class * | ||||
| -keepclassmembers class * { | ||||
|     @com.facebook.yoga.annotations.DoNotStrip *; | ||||
| } | ||||
|  | ||||
| # WebRTC | ||||
|  | ||||
| -keep class org.webrtc.** { *; } | ||||
| -dontwarn org.chromium.build.BuildHooksAndroid | ||||
|  | ||||
| # Jisti Meet SDK | ||||
|  | ||||
| -keep class org.jitsi.meet.** { *; } | ||||
| -keep class org.jitsi.meet.sdk.** { *; } | ||||
|  | ||||
| # We added the following when we switched minifyEnabled on. Probably because we | ||||
| # ran the app and hit problems... | ||||
|  | ||||
| -keep class com.facebook.react.bridge.CatalystInstanceImpl { *; } | ||||
| -keep class com.facebook.react.bridge.ExecutorToken { *; } | ||||
| -keep class com.facebook.react.bridge.JavaScriptExecutor { *; } | ||||
| -keep class com.facebook.react.bridge.ModuleRegistryHolder { *; } | ||||
| -keep class com.facebook.react.bridge.ReadableType { *; } | ||||
| -keep class com.facebook.react.bridge.queue.NativeRunnable { *; } | ||||
| -keep class com.facebook.react.devsupport.** { *; } | ||||
|  | ||||
| -dontwarn com.facebook.react.devsupport.** | ||||
| -dontwarn com.google.appengine.** | ||||
| -dontwarn com.squareup.okhttp.** | ||||
| -dontwarn javax.servlet.** | ||||
|  | ||||
| # ^^^ We added the above when we switched minifyEnabled on. | ||||
|  | ||||
| # Rule to avoid build errors related to SVGs. | ||||
| -keep public class com.horcrux.svg.** {*;} | ||||
|  | ||||
| # https://github.com/facebook/fresco/issues/2638 | ||||
| -keep public class com.facebook.imageutils.** { | ||||
|    public *; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user