Enable obfuscate

This commit is contained in:
NekoInverter 2020-05-19 11:07:30 +08:00
parent 88d2acba26
commit 1ebbd0b20a
No known key found for this signature in database
GPG Key ID: 280D6CCCF95715F9
2 changed files with 7 additions and 6 deletions

View File

@ -103,7 +103,7 @@ android {
applicationIdSuffix ".beta"
minifyEnabled true
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
/*debugAsan {
@ -155,9 +155,9 @@ android {
jniDebuggable false
signingConfig signingConfigs.release
minifyEnabled true
shrinkResources false
shrinkResources true
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
@ -296,7 +296,7 @@ android {
}
}
defaultConfig.versionCode = 10 * 1953
defaultConfig.versionCode = 10 * 1954
def tgVoipDexFileName = "libtgvoip.dex"
def tgVoipDexClasses = ["AudioRecordJNI", "AudioTrackJNI", "NativeTgVoipDelegate", "NativeTgVoipInstance", "TgVoipNativeLoader", "Resampler", "VLog"]

View File

@ -24,5 +24,6 @@
-keep class com.google.android.exoplayer2.metadata.flac.PictureFrame { *; }
-keep class com.google.android.exoplayer2.decoder.SimpleOutputBuffer { *; }
# Use -keep to explicitly keep any other classes shrinking would remove
-dontoptimize
-dontobfuscate
#-dontoptimize
#-dontobfuscate
-repackageclasses ''