mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 05:54:26 +02:00
build: Enable ProGuard (#1650)
This commit is contained in:
parent
5a24911fad
commit
b754a045eb
@ -45,8 +45,6 @@ android {
|
|||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
shrinkResources false
|
|
||||||
minifyEnabled false
|
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
|
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
|
||||||
}
|
}
|
||||||
|
23
android/app/proguard-rules.pro
vendored
Normal file
23
android/app/proguard-rules.pro
vendored
Normal file
@ -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.*
|
@ -3,7 +3,6 @@ org.gradle.parallel=true
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
|
||||||
android.defaults.buildfeatures.buildconfig=true
|
android.defaults.buildfeatures.buildconfig=true
|
||||||
android.nonTransitiveRClass=false
|
android.nonTransitiveRClass=false
|
||||||
android.nonFinalResIds=false
|
android.nonFinalResIds=false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user