Skip to content

Instantly share code, notes, and snippets.

@iron9light
Last active August 4, 2016 14:55
Show Gist options
  • Save iron9light/ce3eecd298cedc191718f625c0d334f6 to your computer and use it in GitHub Desktop.
Save iron9light/ce3eecd298cedc191718f625c0d334f6 to your computer and use it in GitHub Desktop.
List(###, # Generic proguard options useful in non-release builds, ###, -dontobfuscate, , -renamesourcefileattribute SourceFile, -keepattributes SourceFile,LineNumberTable,Signature, , -flattenpackagehierarchy, , -optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*,!code/allocation/variable, , -dontnote android.support.**, -dontnote org.apache.http.**, -dontnote android.net.http.**, -dontnote android.annotation.**, , -dontnote com.android.vending.licensing.**, -dontnote com.google.vending.licensing.**, , ###, # Scala-specific proguard config, ###, -dontnote scala.concurrent.util.Unsafe, -dontnote scala.Enumeration**, -dontnote scala.ScalaObject, -dontnote org.xml.sax.EntityResolver, -dontnote scala.concurrent.forkjoin.**, -dontwarn scala.beans.ScalaBeanInfo, -dontwarn scala.concurrent.**, -dontnote scala.reflect.**, -dontwarn scala.reflect.**, -dontwarn scala.sys.process.package$, -dontwarn **$$anonfun$*, -dontwarn scala.collection.immutable.RedBlack$Empty, -dontwarn scala.tools.**,plugintemplate.**, , -keep public class scala.reflect.ScalaSignature, # This is gone in 2.11, -keep public interface scala.ScalaObject, , -keepclassmembers class * {, ** MODULE$;, }, , -keep class scala.collection.SeqLike {, public java.lang.String toString();, }, , -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinPool {, long eventCount;, int workerCounts;,
int runControl;, scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode syncStack;, scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode spareStack;, }, , -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinWorkerThread {, int base;, int sp;, int runState;, }, , -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinTask {, int status;, }, , -keepclassmembernames class scala.concurrent.forkjoin.LinkedTransferQueue {, scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference head;, scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference tail;, scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference cleanMe;, }, # This is a configuration file for ProGuard., # http://proguard.sourceforge.net/index.html#manual/usage.html, #, # Starting with version 2.2 of the Android plugin for Gradle, these files are no longer used. Newer, # versions are distributed with the plugin and unpacked at build time. Files in this directory are, # no longer maintained., , -dontusemixedcaseclassnames, -dontskipnonpubliclibraryclasses, -verbose, , # Optimization is turned off by default. Dex does not like code run, # through the ProGuard optimize and preverify steps (and performs some, # of these optimizations on its own)., -dontoptimize, -dontpreverify, # Note that if you want to enable optimization, you cannot just, # include optimization flags in your own project configuration file;, # instead you will need to point to the, # "proguard-android-optimize.txt" file instead of this one from your, # project.properties file., , -keepattributes *Annotation*, -keep public class com.google.vending.licensing.ILicensingService, -keep public class com.android.vending.licensing.ILicensingService, , # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native, -keepclasseswithmembernames class * {, native <methods>;, }, , # keep setters in Views so that animations can still work., # see http://proguard.sourceforge.net/manual/examples.html#beans, -keepclassmembers public class * extends android.view.View {, void set*(***);, *** get*();, }, , # We want to keep methods in Activity that could be used in the XML attribute onClick, -keepclassmembers class * extends android.app.Activity {, public void *(android.view.View);, }, , # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations, -keepclassmembers enum * {, public static **[] values();, public static ** valueOf(java.lang.String);, }, , -keepclassmembers class * implements android.os.Parcelable {, public static final android.os.Parcelable$Creator CREATOR;, }, , -keepclassmembers class **.R$* {, public static <fields>;, }, , # The support library contains references to newer platform versions., # Don't warn about those in case this app is linking against an older, # platform version. We know about them, and they are safe., -dontwarn android.support.**, , # Understand the @Keep support annotation., -keep class android.support.annotation.Keep, , -keep @android.support.annotation.Keep class * {*;}, , -keepclasseswithmembers class * {, @android.support.annotation.Keep <methods>;, }, , -keepclasseswithmembers class * {, @android.support.annotation.Keep <fields>;, }, , -keepclasseswithmembers class * {, @android.support.annotation.Keep <init>(...);, }, # view AndroidManifest.xml #generated:16, -keep class android.test.InstrumentationTestRunner { <init>(...); }, , # view AndroidManifest.xml #generated:7, -keep class iron9light.sandbox.testx.MainActivity { <init>(...); }, )
[debug] ###
[debug] # Generic proguard options useful in non-release builds
[debug] ###
[debug] -dontobfuscate
[debug]
[debug] -renamesourcefileattribute SourceFile
[debug] -keepattributes SourceFile,LineNumberTable,Signature
[debug]
[debug] -flattenpackagehierarchy
[debug]
[debug] -optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*,!code/allocation/variable
[debug]
[debug] -dontnote android.support.**
[debug] -dontnote org.apache.http.**
[debug] -dontnote android.net.http.**
[debug] -dontnote android.annotation.**
[debug]
[debug] -dontnote com.android.vending.licensing.**
[debug] -dontnote com.google.vending.licensing.**
[debug]
[debug] ###
[debug] # Scala-specific proguard config
[debug] ###
[debug] -dontnote scala.concurrent.util.Unsafe
[debug] -dontnote scala.Enumeration**
[debug] -dontnote scala.ScalaObject
[debug] -dontnote org.xml.sax.EntityResolver
[debug] -dontnote scala.concurrent.forkjoin.**
[debug] -dontwarn scala.beans.ScalaBeanInfo
[debug] -dontwarn scala.concurrent.**
[debug] -dontnote scala.reflect.**
[debug] -dontwarn scala.reflect.**
[debug] -dontwarn scala.sys.process.package$
[debug] -dontwarn **$$anonfun$*
[debug] -dontwarn scala.collection.immutable.RedBlack$Empty
[debug] -dontwarn scala.tools.**,plugintemplate.**
[debug]
[debug] -keep public class scala.reflect.ScalaSignature
[debug] # This is gone in 2.11
[debug] -keep public interface scala.ScalaObject
[debug]
[debug] -keepclassmembers class * {
[debug] ** MODULE$;
[debug] }
[debug]
[debug] -keep class scala.collection.SeqLike {
[debug] public java.lang.String toString();
[debug] }
[debug]
[debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinPool {
[debug] long eventCount;
[debug] int workerCounts;
[debug] int runControl;
[debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode syncStack;
[debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode spareStack;
[debug] }
[debug]
[debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinWorkerThread {
[debug] int base;
[debug] int sp;
[debug] int runState;
[debug] }
[debug]
[debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinTask {
[debug] int status;
[debug] }
[debug]
[debug] -keepclassmembernames class scala.concurrent.forkjoin.LinkedTransferQueue {
[debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference head;
[debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference tail;
[debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference cleanMe;
[debug] }
[debug] # This is a configuration file for ProGuard.
[debug] # http://proguard.sourceforge.net/index.html#manual/usage.html
[debug] #
[debug] # Starting with version 2.2 of the Android plugin for Gradle, these files are no longer used. Newer
[debug] # versions are distributed with the plugin and unpacked at build time. Files in this directory are
[debug] # no longer maintained.
[debug]
[debug] -dontusemixedcaseclassnames
[debug] -dontskipnonpubliclibraryclasses
[debug] -verbose
[debug]
[debug] # Optimization is turned off by default. Dex does not like code run
[debug] # through the ProGuard optimize and preverify steps (and performs some
[debug] # of these optimizations on its own).
[debug] -dontoptimize
[debug] -dontpreverify
[debug] # Note that if you want to enable optimization, you cannot just
[debug] # include optimization flags in your own project configuration file;
[debug] # instead you will need to point to the
[debug] # "proguard-android-optimize.txt" file instead of this one from your
[debug] # project.properties file.
[debug]
[debug] -keepattributes *Annotation*
[debug] -keep public class com.google.vending.licensing.ILicensingService
[debug] -keep public class com.android.vending.licensing.ILicensingService
[debug]
[debug] # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
[debug] -keepclasseswithmembernames class * {
[debug] native <methods>;
[debug] }
[debug]
[debug] # keep setters in Views so that animations can still work.
[debug] # see http://proguard.sourceforge.net/manual/examples.html#beans
[debug] -keepclassmembers public class * extends android.view.View {
[debug] void set*(***);
[debug] *** get*();
[debug] }
[debug]
[debug] # We want to keep methods in Activity that could be used in the XML attribute onClick
[debug] -keepclassmembers class * extends android.app.Activity {
[debug] public void *(android.view.View);
[debug] }
[debug]
[debug] # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
[debug] -keepclassmembers enum * {
[debug] public static **[] values();
[debug] public static ** valueOf(java.lang.String);
[debug] }
[debug]
[debug] -keepclassmembers class * implements android.os.Parcelable {
[debug] public static final android.os.Parcelable$Creator CREATOR;
[debug] }
[debug]
[debug] -keepclassmembers class **.R$* {
[debug] public static <fields>;
[debug] }
[debug]
[debug] # The support library contains references to newer platform versions.
[debug] # Don't warn about those in case this app is linking against an older
[debug] # platform version. We know about them, and they are safe.
[debug] -dontwarn android.support.**
[debug]
[debug] # Understand the @Keep support annotation.
[debug] -keep class android.support.annotation.Keep
[debug]
[debug] -keep @android.support.annotation.Keep class * {*;}
[debug]
[debug] -keepclasseswithmembers class * {
[debug] @android.support.annotation.Keep <methods>;
[debug] }
[debug]
[debug] -keepclasseswithmembers class * {
[debug] @android.support.annotation.Keep <fields>;
[debug] }
[debug]
[debug] -keepclasseswithmembers class * {
[debug] @android.support.annotation.Keep <init>(...);
[debug] }
[debug] # view AndroidManifest.xml #generated:16
[debug] -keep class android.test.InstrumentationTestRunner { <init>(...); }
[debug]
[debug] # view AndroidManifest.xml #generated:7
[debug] -keep class iron9light.sandbox.testx.MainActivity { <init>(...); }
[debug]
[debug] -libraryjars
[debug] C:\Program Files (x86)\Android\android-sdk\platforms\android-22\android.jar
[debug] -printmapping
[debug] L:\Projects\sandbox\scala-android\quickstart\target\android\intermediates\proguard\mappings.txt
[debug] -injars C:\Users\light\.ivy2\cache\org.scala-lang\scala-library\jars\scala-library-2.11.8.jar(!META-INF/**,!rootdoc.txt);L:\Projects\sandbox\scala-android\quickstart\target\android\intermediates\classes.jar(!META-INF/**,!rootdoc.txt)
[debug] -outjars L:\Projects\sandbox\scala-android\quickstart\target\android\intermediates\proguard\classes.proguard.jar
proguard.ParseException: Expecting class path separator ';' before '\Android\android-sdk\platforms\android-22\android.jar' in argument number 158
at proguard.ConfigurationParser.parseClassPathArgument(ConfigurationParser.java:354)
at proguard.ConfigurationParser.parse(ConfigurationParser.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at android.Proguard$.runProguard(proguard.scala:208)
at android.Proguard$.proguard(proguard.scala:164)
at android.Tasks$$anonfun$78.apply(tasks.scala:998)
at android.Tasks$$anonfun$78.apply(tasks.scala:996)
at scala.Function9$$anonfun$tupled$1.apply(Function9.scala:35)
at scala.Function9$$anonfun$tupled$1.apply(Function9.scala:34)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[error] (android:proguard) java.lang.reflect.InvocationTargetException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment