Simple Notepad Application for Android OS
Revision | 81b6eb51c5938d522958e6062ac4d1ab136a6179 (tree) |
---|---|
Zeit | 2012-09-12 16:38:23 |
Autor | Masahiko, SAWAI <say@user...> |
Commiter | Masahiko, SAWAI |
proguard を通すと起動しなくなっていたのを修正
@@ -65,7 +65,6 @@ | ||
65 | 65 | </sdk> |
66 | 66 | <proguard> |
67 | 67 | <skip>true</skip> |
68 | - <config>proguard.conf</config> | |
69 | 68 | </proguard> |
70 | 69 | <extractDuplicates>true</extractDuplicates> |
71 | 70 | </configuration> |
@@ -192,7 +191,7 @@ | ||
192 | 191 | </sign> |
193 | 192 | <proguard> |
194 | 193 | <skip>false</skip> |
195 | - <config>proguard.conf</config> | |
194 | + <config>proguard.cfg</config> | |
196 | 195 | </proguard> |
197 | 196 | </configuration> |
198 | 197 | </plugin> |
@@ -65,7 +65,6 @@ | ||
65 | 65 | </sdk> |
66 | 66 | <proguard> |
67 | 67 | <skip>true</skip> |
68 | - <config>proguard.conf</config> | |
69 | 68 | </proguard> |
70 | 69 | <extractDuplicates>true</extractDuplicates> |
71 | 70 | </configuration> |
@@ -192,11 +191,6 @@ | ||
192 | 191 | <proguard> |
193 | 192 | <skip>false</skip> |
194 | 193 | <config>proguard.cfg</config> |
195 | - <!-- | |
196 | - <config>proguard.cfg</config> | |
197 | - <config>proguard-android.txt</config> | |
198 | - <config>${env.ANDROID_HOME}/tools/proguard/proguard-android.txt</config> | |
199 | - --> | |
200 | 194 | </proguard> |
201 | 195 | </configuration> |
202 | 196 | </plugin> |
@@ -1,11 +1,29 @@ | ||
1 | 1 | # Configuration for ProGuard |
2 | 2 | # From http://proguard.sourceforge.net/index.html#/manual/examples.html#androidapplication |
3 | 3 | |
4 | +-dontusemixedcaseclassnames | |
5 | +-dontskipnonpubliclibraryclasses | |
6 | +-verbose | |
7 | + | |
4 | 8 | -dontpreverify |
5 | --repackageclasses '' | |
6 | --optimizations !code/simplification/arithmetic | |
9 | + | |
10 | +# Optimization is turned off by default. Dex does not like code run | |
11 | +# through the ProGuard optimize and preverify steps (and performs some | |
12 | +# of these optimizations on its own). | |
13 | +## optimize : off | |
14 | +#-dontoptimize | |
15 | +## optimize : on | |
16 | +-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/* | |
17 | +-optimizationpasses 5 | |
18 | +-allowaccessmodification | |
19 | +## | |
20 | + | |
7 | 21 | -keepattributes *Annotation* |
8 | 22 | |
23 | +-keep public class com.google.vending.licensing.ILicensingService | |
24 | +-keep public class com.android.vending.licensing.ILicensingService | |
25 | +-keep public interface com.android.vending.licensing.ILicensingService | |
26 | + | |
9 | 27 | -keep public class * extends android.app.Activity |
10 | 28 | -keep public class * extends android.app.Application |
11 | 29 | -keep public class * extends android.app.Service |
@@ -35,8 +53,6 @@ | ||
35 | 53 | public static <fields>; |
36 | 54 | } |
37 | 55 | |
38 | --keep public interface com.android.vending.licensing.ILicensingService | |
39 | - | |
40 | 56 | -keepclasseswithmembernames class * { |
41 | 57 | native <methods>; |
42 | 58 | } |
@@ -46,7 +62,7 @@ | ||
46 | 62 | public static ** valueOf(java.lang.String); |
47 | 63 | } |
48 | 64 | |
49 | -# Removes all calls to Log. Delete the methods you want to keep. | |
65 | +# Removes all calls to Log. Delete the methods if you want to keep. | |
50 | 66 | -assumenosideeffects class android.util.Log { |
51 | 67 | public static int v(...); |
52 | 68 | public static int d(...); |
@@ -56,7 +72,7 @@ | ||
56 | 72 | public static int wtf(...); |
57 | 73 | } |
58 | 74 | |
59 | --assumenosideeffects class org.routine_work.android_r.utils.Log{ | |
75 | +-assumenosideeffects class org.routine_work.utils.Log{ | |
60 | 76 | public static int v(...); |
61 | 77 | public static int d(...); |
62 | 78 | public static int i(...); |