Standardize proguard config

git-svn-id: https://zxing.googlecode.com/svn/trunk@2985 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-12-03 09:23:46 +00:00
parent 6ece248e1a
commit b2f2615b56
3 changed files with 8 additions and 3 deletions

View file

@ -10,7 +10,7 @@
# be complete or up to date. (The "arithmetic" optimization can be # be complete or up to date. (The "arithmetic" optimization can be
# used if you are only targeting Android 2.0 or later.) Make sure you # used if you are only targeting Android 2.0 or later.) Make sure you
# test thoroughly if you go this route. # test thoroughly if you go this route.
-optimizations !code/simplification/cast,!field/*,!class/merging/* -optimizations !code/simplification/cast,!field/*,!class/merging/*,!code/allocation/variable
-optimizationpasses 5 -optimizationpasses 5
-allowaccessmodification -allowaccessmodification
-dontpreverify -dontpreverify
@ -23,6 +23,9 @@
-dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclasses
-verbose -verbose
# ADDED
-dontobfuscate
-keepattributes *Annotation* -keepattributes *Annotation*
-keep public class com.google.vending.licensing.ILicensingService -keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService -keep public class com.android.vending.licensing.ILicensingService

View file

@ -3,10 +3,12 @@
# #
# This file must be checked in Version Control Systems. # This file must be checked in Version Control Systems.
# #
# To customize properties used by the Ant build system use, # To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your # "ant.properties", and override values to adapt the script to your
# project structure. # project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
proguard.config=proguard-android-optimize.txt
# Project target. # Project target.
target=android-19 target=android-19
proguard.config=proguard.cfg