2016-03-05 13:47:43 +01:00
|
|
|
# We use ProGuard for optimizations, obfuscation is for those who have sth to hide
|
|
|
|
-dontobfuscate
|
|
|
|
-optimizations !code/allocation/variable
|
|
|
|
|
|
|
|
# We're referencing stuff that is unknown to the system
|
|
|
|
-libraryjar ../unifiednlp-compat/build/classes/main
|
|
|
|
-dontwarn java.awt.**
|
|
|
|
-dontwarn javax.annotation.**
|
|
|
|
|
|
|
|
# OkIO, OkHttp
|
|
|
|
-dontwarn okio.**
|
|
|
|
-dontwarn com.squareup.okhttp.**
|
|
|
|
-dontwarn org.oscim.tiling.source.OkHttpEngine
|
|
|
|
-dontwarn org.oscim.tiling.source.OkHttpEngine$OkHttpFactory
|
|
|
|
|
2014-04-23 21:27:33 +02:00
|
|
|
# Disable ProGuard Notes, they won't help here
|
|
|
|
-dontnote
|
|
|
|
|
|
|
|
# Keep dynamically loaded GMS classes
|
2016-04-14 21:51:21 +02:00
|
|
|
-keep public class com.google.android.gms.maps.internal.CreatorImpl { public *; }
|
|
|
|
-keep public class com.google.android.gms.common.security.ProviderInstallerImpl { public *; }
|
|
|
|
-keep public class com.google.android.gms.plus.plusone.PlusOneButtonCreatorImpl { public *; }
|
2016-03-05 21:44:58 +01:00
|
|
|
|
|
|
|
# Keep AutoSafeParcelables
|
2016-04-14 21:51:21 +02:00
|
|
|
-keep public class * extends org.microg.safeparcel.AutoSafeParcelable {
|
2016-03-05 21:44:58 +01:00
|
|
|
@org.microg.safeparcel.SafeParceled *;
|
2016-03-05 13:47:43 +01:00
|
|
|
}
|
|
|
|
|
2016-04-14 21:51:21 +02:00
|
|
|
# Keep asInterface method cause it's accessed from SafeParcel
|
|
|
|
-keepattributes InnerClasses
|
|
|
|
-keepclassmembers interface * extends android.os.IInterface {
|
|
|
|
public static class *;
|
|
|
|
}
|
|
|
|
-keep public class * extends android.os.Binder { public static *; }
|
|
|
|
|
2016-03-05 13:47:43 +01:00
|
|
|
# Keep library info
|
2016-04-14 21:51:21 +02:00
|
|
|
-keep class **.BuildConfig { *; }
|
2016-03-05 13:47:43 +01:00
|
|
|
|
|
|
|
# Keep protobuf class builders
|
|
|
|
-keep public class * extends com.squareup.wire.Message
|
2016-04-14 21:51:21 +02:00
|
|
|
-keep public class * extends com.squareup.wire.Message$Builder { public <init>(...); }
|