145 lines
3.4 KiB
Prolog
145 lines
3.4 KiB
Prolog
# Add project specific ProGuard rules here.
|
|
# By default, the flags in this file are appended to flags specified
|
|
# in /Users/jooreill/devtools/adt/sdk/tools/proguard/proguard-android.txt
|
|
# You can edit the include path and order by changing the proguardFiles
|
|
# directive in build.gradle.
|
|
#
|
|
# For more details, see
|
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
|
|
# Add any project specific keep options here:
|
|
|
|
# keep everything in this package from being removed or renamed
|
|
-keep class com.surrus.galwaybus.** { *; }
|
|
|
|
|
|
|
|
# Keep all retrofit classes: https://github.com/square/retrofit/issues/117
|
|
# -keep class retrofit.http.** { *; }
|
|
|
|
# Retrofit 2.X
|
|
## https://square.github.io/retrofit/ ##
|
|
|
|
-dontwarn retrofit2.**
|
|
-keep class retrofit2.** { *; }
|
|
-keepattributes Signature
|
|
-keepattributes Exceptions
|
|
|
|
-keepclasseswithmembers class * {
|
|
@retrofit2.http.* <methods>;
|
|
}
|
|
-dontwarn retrofit2.Platform$Java8
|
|
-dontwarn retrofit2.adapter.rxjava.CompletableHelper$**
|
|
|
|
|
|
-dontwarn rx.Completable**
|
|
|
|
|
|
# okhttp
|
|
-keep class okhttp3.** { *; }
|
|
-keep interface okhttp3.** { *; }
|
|
-dontwarn okhttp3.**
|
|
-dontwarn okio.**
|
|
-dontwarn com.squareup.okhttp.**
|
|
|
|
|
|
-dontnote android.net.http.*
|
|
-dontnote org.apache.commons.codec.**
|
|
-dontnote org.apache.http.**
|
|
|
|
|
|
# dagger
|
|
|
|
-dontwarn com.google.errorprone.annotations.**
|
|
|
|
|
|
# rxjava
|
|
|
|
-dontwarn sun.misc.Unsafe
|
|
-dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry
|
|
|
|
-keep class rx.schedulers.Schedulers {
|
|
public static <methods>;
|
|
}
|
|
-keep class rx.schedulers.ImmediateScheduler {
|
|
public <methods>;
|
|
}
|
|
-keep class rx.schedulers.TestScheduler {
|
|
public <methods>;
|
|
}
|
|
-keep class rx.schedulers.Schedulers {
|
|
public static ** test();
|
|
}
|
|
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
|
|
long producerIndex;
|
|
long consumerIndex;
|
|
}
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
|
|
long producerNode;
|
|
long consumerNode;
|
|
}
|
|
|
|
|
|
|
|
# Play Services
|
|
|
|
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
|
|
public static final *** NULL;
|
|
}
|
|
|
|
-keepnames class * implements android.os.Parcelable
|
|
-keepclassmembers class * implements android.os.Parcelable {
|
|
public static final *** CREATOR;
|
|
}
|
|
|
|
-keep @interface android.support.annotation.Keep
|
|
-keep @android.support.annotation.Keep class *
|
|
-keepclasseswithmembers class * {
|
|
@android.support.annotation.Keep <fields>;
|
|
}
|
|
-keepclasseswithmembers class * {
|
|
@android.support.annotation.Keep <methods>;
|
|
}
|
|
|
|
-keep @interface com.google.android.gms.common.annotation.KeepName
|
|
-keepnames @com.google.android.gms.common.annotation.KeepName class *
|
|
-keepclassmembernames class * {
|
|
@com.google.android.gms.common.annotation.KeepName *;
|
|
}
|
|
|
|
-keep @interface com.google.android.gms.common.util.DynamiteApi
|
|
-keep public @com.google.android.gms.common.util.DynamiteApi class * {
|
|
public <fields>;
|
|
public <methods>;
|
|
}
|
|
|
|
-dontwarn android.security.NetworkSecurityPolicy
|
|
|
|
-keep class com.stripe.** { *; }
|
|
-keep class com.google.android.gms.** { *; }
|
|
-dontwarn com.google.android.gms.**
|
|
|
|
-dontwarn android.content.**
|
|
-keep class android.content.**
|
|
|
|
-keep class android.support.** { *; }
|
|
-keep interface android.support.** { *; }
|
|
|
|
-renamesourcefileattribute SourceFile
|
|
-keepattributes SourceFile,LineNumberTable
|
|
|
|
# Firebase Authentication
|
|
-keepattributes Signature
|
|
-keepattributes *Annotation*
|
|
|
|
|
|
-keep class com.crashlytics.** { *; }
|
|
-dontwarn com.crashlytics.**
|
|
|
|
#Kotlin
|
|
|
|
-dontwarn kotlin.**
|
|
-dontwarn org.jetbrains.annotations.NotNull
|
|
|
|
|