From d4263cc5cb0550fdb116ee887a04c67ea15e49a3 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 3 May 2015 12:15:48 +0200 Subject: [PATCH] Update proguard --- OsmAnd/build.gradle | 8 ++--- OsmAnd/proguard-project.txt | 60 ++++++++++++++++++++----------------- 2 files changed, 37 insertions(+), 31 deletions(-) diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle index fe89bda6cd..e639da736f 100644 --- a/OsmAnd/build.gradle +++ b/OsmAnd/build.gradle @@ -141,15 +141,15 @@ android { buildTypes { debug { - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt' + // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt' minifyEnabled true - // proguardFiles 'proguard-project.txt' + proguardFiles 'proguard-project.txt' signingConfig signingConfigs.development } release { - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt' + // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt' minifyEnabled true - // proguardFiles 'proguard-project.txt' + proguardFiles 'proguard-project.txt' signingConfig signingConfigs.publishing } } diff --git a/OsmAnd/proguard-project.txt b/OsmAnd/proguard-project.txt index 6d17f8af51..cbacfcc55e 100755 --- a/OsmAnd/proguard-project.txt +++ b/OsmAnd/proguard-project.txt @@ -7,32 +7,38 @@ # Allow obfuscation of android.support.v7.internal.view.menu.** # to avoid problem on Samsung 4.2.2 devices with appcompat v21 # see https://code.google.com/p/android/issues/detail?id=78377 --dontshrink --dontoptimize +-keepattributes ** +-keep class !android.support.v7.internal.view.menu.**,** {*;} +-keep interface ** { *; } +-keep enum ** { *; } -dontpreverify --verbose --keep class !android.support.v7.internal.view.menu.**,android.support.** {*;} --keep class net.osmand.** { *; } --keep interface net.osmand.** { *; } - --keep class com.** { *; } --keep interface com.** { *; } - --keep class net.** { *; } --keep interface net.** { *; } - --keep class gnu.** { *; } --keep interface gnu.** { *; } - --keep class org.** { *; } --keep interface org.** { *; } - --keep class bsh.** { *; } --keep interface bsh.** { *; } - --keep class btools.** { *; } --keep interface btools.** { *; } - --keep class alice.** { *; } --keep interface alice.** { *; } +-dontoptimize +-dontshrink -dontwarn alice.** +-verbose + +#-keep class !android.support.v7.internal.view.menu.**,android.support.** {*;} +#-keep class net.osmand.** { *; } +#-keep interface net.osmand.** { *; } +# +#-keep class com.** { *; } +#-keep interface com.** { *; } +# +#-keep class net.** { *; } +#-keep interface net.** { *; } +# +#-keep class gnu.** { *; } +#-keep interface gnu.** { *; } +# +#-keep class org.** { *; } +#-keep interface org.** { *; } +# +#-keep class bsh.** { *; } +#-keep interface bsh.** { *; } +# +#-keep class btools.** { *; } +#-keep interface btools.** { *; } +# +#-keep class alice.** { *; } +#-keep interface alice.** { *; } +#-dontwarn alice.**