Skip to content

Commit

Permalink
Update proguard
Browse files Browse the repository at this point in the history
  • Loading branch information
vshcherb committed May 3, 2015
1 parent 79e73be commit d4263cc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 30 deletions.
8 changes: 4 additions & 4 deletions OsmAnd/build.gradle
Expand Up @@ -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
}
}
Expand Down
58 changes: 32 additions & 26 deletions OsmAnd/proguard-project.txt
Expand Up @@ -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
-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.**
#-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.**

0 comments on commit d4263cc

Please sign in to comment.