이클립스에서
proguard - project.txt에서
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-dontoptimize
-verbose
-dontshrink
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-optimizations method/inlining/*
-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
-keep public class android.net.http.AndroidHttpClien
-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 *;
}
추가하고
project.properties 에서
# proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
을 # 주석을 없애고
target은 17입니다.
근데 오류가
Proguard returned with error code 1. See console
proguard.ParseException: Unknown option '(' in argument number 14
at proguard.ConfigurationParser.parse(ConfigurationParser.java:191)
at proguard.ProGuard.main(ProGuard.java:484)
이렇게 뜨네요 어떻게 해야하나요??