Revision | da164d0fdbc4ada0efee8fd317ba060bbce192c2 (tree) |
---|---|
Time | 2012-11-23 13:56:20 |
Author | Masahiko, SAWAI <say@user...> |
Commiter | Masahiko, SAWAI |
pom.xml を更新
* プラグインのバージョンを更新
* リリースビルド時に proguard を実行するように変更
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 | <groupId>org.routine_work.intent_lab</groupId> |
6 | 6 | <artifactId>intent-lab</artifactId> |
@@ -44,7 +44,7 @@ | ||
44 | 44 | <plugin> |
45 | 45 | <groupId>com.jayway.maven.plugins.android.generation2</groupId> |
46 | 46 | <artifactId>android-maven-plugin</artifactId> |
47 | - <version>3.3.2</version> | |
47 | + <version>3.4.0</version> | |
48 | 48 | </plugin> |
49 | 49 | |
50 | 50 | <!-- mvn compile --> |
@@ -79,12 +79,12 @@ | ||
79 | 79 | <plugin> |
80 | 80 | <groupId>org.apache.maven.plugins</groupId> |
81 | 81 | <artifactId>maven-site-plugin</artifactId> |
82 | - <version>3.1</version> | |
82 | + <version>3.2</version> | |
83 | 83 | </plugin> |
84 | 84 | <plugin> |
85 | 85 | <groupId>org.apache.maven.plugins</groupId> |
86 | 86 | <artifactId>maven-project-info-reports-plugin</artifactId> |
87 | - <version>2.5.1</version> | |
87 | + <version>2.6</version> | |
88 | 88 | </plugin> |
89 | 89 | |
90 | 90 | <!-- mvn javadoc:javadoc --> |
@@ -222,8 +222,10 @@ | ||
222 | 222 | <alias>${sign.alias}</alias> |
223 | 223 | <keypass>${sign.keypass}</keypass> |
224 | 224 | <arguments> |
225 | - <argument>-sigalg</argument> <argument>MD5withRSA</argument> | |
226 | - <argument>-digestalg</argument> <argument>SHA1</argument> | |
225 | + <argument>-sigalg</argument> | |
226 | + <argument>MD5withRSA</argument> | |
227 | + <argument>-digestalg</argument> | |
228 | + <argument>SHA1</argument> | |
227 | 229 | </arguments> |
228 | 230 | </configuration> |
229 | 231 | </execution> |
@@ -231,10 +233,10 @@ | ||
231 | 233 | </plugin> |
232 | 234 | |
233 | 235 | <!-- |
234 | - - Disable debug sign | |
235 | - - Enable zipalign | |
236 | - - Enable proguard | |
237 | - --> | |
236 | + - Disable debug sign | |
237 | + - Enable zipalign | |
238 | + - Enable proguard | |
239 | + --> | |
238 | 240 | <plugin> |
239 | 241 | <groupId>com.jayway.maven.plugins.android.generation2</groupId> |
240 | 242 | <artifactId>android-maven-plugin</artifactId> |
@@ -249,6 +251,7 @@ | ||
249 | 251 | </executions> |
250 | 252 | <configuration> |
251 | 253 | <zipalign> |
254 | + <skip>false</skip> | |
252 | 255 | <verbose>true</verbose> |
253 | 256 | <inputApk>${project.build.directory}/${project.artifactId}-${project.version}.apk</inputApk> |
254 | 257 | <outputApk>${project.build.directory}/${project.artifactId}-${project.version}-signed-aligned.apk</outputApk> |
@@ -0,0 +1,83 @@ | ||
1 | +# Configuration for ProGuard | |
2 | +# From http://proguard.sourceforge.net/index.html#/manual/examples.html#androidapplication | |
3 | + | |
4 | +-dontusemixedcaseclassnames | |
5 | +-dontskipnonpubliclibraryclasses | |
6 | +-verbose | |
7 | + | |
8 | +-dontpreverify | |
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 | + | |
21 | +-keepattributes *Annotation* | |
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 | + | |
27 | +-keep public class * extends android.app.Activity | |
28 | +-keep public class * extends android.app.Application | |
29 | +-keep public class * extends android.app.Service | |
30 | +-keep public class * extends android.content.BroadcastReceiver | |
31 | +-keep public class * extends android.content.ContentProvider | |
32 | + | |
33 | +-keep public class * extends android.view.View { | |
34 | + public <init>(android.content.Context); | |
35 | + public <init>(android.content.Context, android.util.AttributeSet); | |
36 | + public <init>(android.content.Context, android.util.AttributeSet, int); | |
37 | + public void set*(...); | |
38 | +} | |
39 | + | |
40 | +-keepclasseswithmembers class * { | |
41 | + public <init>(android.content.Context, android.util.AttributeSet); | |
42 | +} | |
43 | + | |
44 | +-keepclasseswithmembers class * { | |
45 | + public <init>(android.content.Context, android.util.AttributeSet, int); | |
46 | +} | |
47 | + | |
48 | +-keepclassmembers class * implements android.os.Parcelable { | |
49 | + static android.os.Parcelable$Creator CREATOR; | |
50 | +} | |
51 | + | |
52 | +-keepclassmembers class **.R$* { | |
53 | + public static <fields>; | |
54 | +} | |
55 | + | |
56 | +-keepclasseswithmembernames class * { | |
57 | + native <methods>; | |
58 | +} | |
59 | + | |
60 | +-keepclassmembers class * extends java.lang.Enum { | |
61 | + public static **[] values(); | |
62 | + public static ** valueOf(java.lang.String); | |
63 | +} | |
64 | + | |
65 | +# Removes all calls to Log. Delete the methods if you want to keep. | |
66 | +-assumenosideeffects class android.util.Log { | |
67 | + public static int v(...); | |
68 | + public static int d(...); | |
69 | + public static int i(...); | |
70 | + public static int w(...); | |
71 | + public static int e(...); | |
72 | + public static int wtf(...); | |
73 | +} | |
74 | + | |
75 | +-assumenosideeffects class org.routine_work.utils.Log{ | |
76 | + public static int v(...); | |
77 | + public static int d(...); | |
78 | + public static int i(...); | |
79 | + public static int w(...); | |
80 | + public static int e(...); | |
81 | + public static int log(...); | |
82 | +} | |
83 | + |