diff --git a/android/app/build.gradle b/android/app/build.gradle index 4a1067f5..3f6f794e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -45,8 +45,6 @@ android { } buildTypes { release { - shrinkResources false - minifyEnabled false ndk { abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64' } diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 00000000..71bd75a0 --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1,23 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle.kts.kts. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# These packages are referenced by ReVanced Patches +-keep class app.revanced.patcher.** { *; } +-keep class com.android.tools.smali.** { *; } +-keep class kotlin.** { *; } +-keepnames class com.google.common.collect.** + +# This package uses reflection internally, so do not remove and rename +-keep class com.android.apksig.internal.** { *; } + +# Fix crash +-keepnames class org.xmlpull.** { *; } + +# Fix build errors +-dontwarn java.awt.** +-dontwarn javax.** +-dontwarn com.google.j2objc.annotations.* \ No newline at end of file diff --git a/android/gradle.properties b/android/gradle.properties index 21a7e728..75ad0afe 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -3,7 +3,6 @@ org.gradle.parallel=true org.gradle.daemon=true org.gradle.caching=true android.useAndroidX=true -android.enableJetifier=true android.defaults.buildfeatures.buildconfig=true android.nonTransitiveRClass=false android.nonFinalResIds=false