Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplified ProGuard config to be used in conjunction with the one from

SDK.
  • Loading branch information...
commit 2fbd6d904e2ff0daa352ec2166d4af29234359c4 1 parent 812cdde
@yanchenko authored
View
12 proguard-droidparts.cfg
@@ -0,0 +1,12 @@
+-renamesourcefileattribute SourceFile
+-keepattributes Signature, *Annotation*, SourceFile, LineNumberTable
+
+# ActionBarSherlock
+-keep class android.support.v4.app.** { *; }
+-keep interface android.support.v4.app.** { *; }
+-keep class com.actionbarsherlock.** { *; }
+-keep interface com.actionbarsherlock.** { *; }
+
+# DroidParts
+-keep class * extends org.droidparts.inject.AbstractDependencyProvider { *; }
+-keep class * extends org.droidparts.model.Model { *; }
View
57 proguard.cfg
@@ -1,57 +0,0 @@
--optimizationpasses 7
--dontusemixedcaseclassnames
--dontskipnonpubliclibraryclasses
--dontpreverify
--verbose
--optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-
--keep public class * extends android.app.Activity
--keep public class * extends android.app.Application
--keep public class * extends android.app.Service
--keep public class * extends android.content.BroadcastReceiver
--keep public class * extends android.content.ContentProvider
--keep public class * extends android.app.backup.BackupAgentHelper
--keep public class * extends android.preference.Preference
--keep public class com.android.vending.licensing.ILicensingService
-
--keepclasseswithmembernames class * {
- native <methods>;
-}
-
--keepclasseswithmembers class * {
- public <init>(android.content.Context, android.util.AttributeSet);
-}
-
--keepclasseswithmembers class * {
- public <init>(android.content.Context, android.util.AttributeSet, int);
-}
-
--keepclassmembers class * extends android.app.Activity {
- public void *(android.view.View);
-}
-
--keepclassmembers enum * {
- public static **[] values();
- public static ** valueOf(java.lang.String);
-}
-
--keep class * implements android.os.Parcelable {
- public static final android.os.Parcelable$Creator *;
-}
-
-# ActionBarSherlock
-
--keep class com.actionbarsherlock.** { *; }
--keep public class * extends com.actionbarsherlock.**
-
-# droidparts
-
--keepattributes Signature, *Annotation*
--keep public class * extends org.droidparts.inject.AbstractDependencyProvider
--keepclassmembers class * extends org.droidparts.inject.AbstractDependencyProvider {
- *;
-}
--keep public class * extends org.droidparts.model.Model
--keepclassmembers class * extends org.droidparts.model.Model {
- *;
-}
View
2  sample/legacy/project.properties
@@ -4,4 +4,4 @@ android.library.reference.1=../../base
android.library.reference.2=../../extra
android.library.reference.3=../../legacy
-proguard.config=../../proguard.cfg
+proguard.config=${sdk.dir}/tools/proguard/proguard-android-optimize.txt:../../proguard-droidparts.cfg
View
2  sample/modern/project.properties
@@ -6,4 +6,4 @@ android.library.reference.2=../../base
android.library.reference.3=../../extra
android.library.reference.4=../../modern
-proguard.config=../../proguard.cfg
+proguard.config=${sdk.dir}/tools/proguard/proguard-android-optimize.txt:../../proguard-droidparts.cfg
Please sign in to comment.
Something went wrong with that request. Please try again.