From 3a5b8b68fd89f8bc6135e56fceab60beaf338816 Mon Sep 17 00:00:00 2001 From: Johann Reyes Date: Wed, 1 Aug 2012 10:42:09 -0400 Subject: [PATCH] working on maven --- src/pom.xml | 58 ++++++++++++++++++++++++++++++++++++++++++++---- src/proguard.cfg | 57 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+), 4 deletions(-) create mode 100644 src/proguard.cfg diff --git a/src/pom.xml b/src/pom.xml index 979d184..978c5d1 100644 --- a/src/pom.xml +++ b/src/pom.xml @@ -10,8 +10,16 @@ apk + 14 4.0.1.2 - 3.2.0 + + 3.2.0 + 2.3.2 + 1.2 + 1.7 + 2.0.4 + 4.4 + 1.6 UTF-8 @@ -26,6 +34,7 @@ + package ${basedir}/src @@ -33,16 +42,48 @@ maven-compiler-plugin + ${maven-compiler-plugin.version} + true - 1.6 - 1.6 + ${java.version} + ${java.version} com.jayway.maven.plugins.android.generation2 android-maven-plugin - ${android.plugin.version} + ${android-maven-plugin.version} true + + + ${env.ANDROID_NDK_HOME} + + + ${android.api.version} + ${env.ANDROID_HOME} + + true + + true + + + + + manifestUpdate + process-resources + + manifest-update + ndk-build + + + + alignApk + package + + zipalign + + + org.codehaus.mojo @@ -55,6 +96,15 @@ true + + + generateNative + process-classes + + javah + + + diff --git a/src/proguard.cfg b/src/proguard.cfg new file mode 100644 index 0000000..a40fc9e --- /dev/null +++ b/src/proguard.cfg @@ -0,0 +1,57 @@ +# Configuration for ProGuard +# From http://proguard.sourceforge.net/index.html#/manual/examples.html#androidapplication + +-dontpreverify +-repackageclasses '' +-optimizations !code/simplification/arithmetic +-keepattributes *Annotation* + +-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.view.View { + public (android.content.Context); + public (android.content.Context, android.util.AttributeSet); + public (android.content.Context, android.util.AttributeSet, int); + public void set*(...); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers class * implements android.os.Parcelable { + static android.os.Parcelable$Creator CREATOR; +} + +-keepclassmembers class **.R$* { + public static ; +} + +-keep public interface com.android.vending.licensing.ILicensingService + +-keepclasseswithmembernames class * { + native ; +} + +-keepclassmembers class * extends java.lang.Enum { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +# Removes all calls to Log. Delete the methods you want to keep. +-assumenosideeffects class android.util.Log { + public static int v(...); + public static int d(...); + public static int i(...); + public static int w(...); + public static int e(...); + public static int wtf(...); +} \ No newline at end of file