add proguard rules for playservices and checkout

This commit is contained in:
d954mas 2016-12-19 18:35:52 +03:00
parent 6c354803e8
commit b59dfd25f2
3 changed files with 41 additions and 2 deletions

View file

@ -11,7 +11,6 @@ buildscript {
}
dependencies {
classpath 'io.fabric.tools:gradle:1.21.5'
classpath 'me.tatarka:gradle-retrolambda:3.3.1'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
@ -100,7 +99,7 @@ dependencies {
transitive = true
}
compile 'fr.avianey.com.viewpagerindicator:library:2.4.1@aar'
compile 'fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
//RxJava
compile 'io.reactivex:rxandroid:1.2.1'

View file

@ -123,6 +123,41 @@
-keep class com.google.android.gms.ads.** { *; }
#end amplitude
#playservices
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
#end playservices
#checkout
-keep class com.android.vending.billing.**
-assumenosideeffects class org.solovyev.android.checkout.Billing {
public static void debug(...);
public static void warning(...);
public static void error(...);
}
-assumenosideeffects class org.solovyev.android.checkout.Check {
static *;
}
#end chekout
#add warnings here, warnings in proguard is normal
-dontwarn javax.annotation.**
-dontwarn com.squareup.picasso.**

View file

@ -9,7 +9,12 @@ buildscript {
classpath 'com.android.databinding:dataBinder:1.0-rc4'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'me.tatarka:gradle-retrolambda:3.3.1'
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
}
// Exclude the version that the android plugin depends on.
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
}
allprojects {