1- # Add project specific ProGuard rules here.
2- # By default, the flags in this file are appended to flags specified
3- # in D:\Mark\Android\sdk/tools/proguard/proguard-android.txt
4- # You can edit the include path and order by changing the proguardFiles
5- # directive in build.gradle.
6- #
7- # For more details, see
8- # http://developer.android.com/guide/developing/tools/proguard.html
9-
10- # Add any project specific keep options here:
11-
12- # If your project uses WebView with JS, uncomment the following
13- # and specify the fully qualified class name to the JavaScript interface
14- # class:
15- #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16- # public *;
17- #}
18-
19- # Uncomment this to preserve the line number information for
20- # debugging stack traces.
21- #-keepattributes SourceFile,LineNumberTable
22-
23- # If you keep the line number information, uncomment this to
24- # hide the original source file name.
25- #-renamesourcefileattribute SourceFile
26-
27- -dontwarn com.squareup.okhttp.**
1+ ############################
2+ # App
3+ ############################
4+ -keep class com.marknjunge.core.model.OrderItem implements android.os.Parcelable {
5+ *;
6+ }
7+
8+ ############################
9+ # Retrofit
10+ ############################
11+ # Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
12+ # EnclosingMethod is required to use InnerClasses.
13+ -keepattributes Signature, InnerClasses, EnclosingMethod
14+
15+ # Retain service method parameters when optimizing.
16+ -keepclassmembers,allowshrinking,allowobfuscation interface * {
17+ @retrofit2.http.* <methods>;
18+ }
19+
20+ # Ignore annotation used for build tooling.
21+ -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
22+
23+ # Ignore JSR 305 annotations for embedding nullability information.
24+ -dontwarn javax.annotation.**
25+
26+ # Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
27+ -dontwarn kotlin.Unit
28+
29+ # Top-level functions that can only be used by Kotlin.
30+ -dontwarn retrofit2.-KotlinExtensions
31+
32+ ############################
33+ # OkHttp
34+ ############################
35+ # JSR 305 annotations are for embedding nullability information.
36+ -dontwarn javax.annotation.**
37+
38+ # A resource is loaded with a relative path so the package of this class must be preserved.
39+ -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
40+
41+ # Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
42+ -dontwarn org.codehaus.mojo.animal_sniffer.*
43+
44+ # OkHttp platform used only on JVM and when Conscrypt dependency is available.
45+ -dontwarn okhttp3.internal.platform.ConscryptPlatform
46+
47+ ############################
48+ # Okio
49+ ############################
50+ # Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
51+ -dontwarn org.codehaus.mojo.animal_sniffer.*
52+
53+
54+ ############################
55+ # Crashlytics
56+ ############################
57+ -keepattributes *Annotation*
58+ -keepattributes SourceFile,LineNumberTable
59+ -keep public class * extends java.lang.Exception
60+
61+ ############################
62+ # Other
63+ ############################
64+ -dontwarn com.google.gson.Gson$6
65+ -dontnote okio.* # Prevents 'duplicate definition of library class'
66+ -dontnote com.google.gson.**
67+ -dontnote com.google.android.gms.**
68+ -keep class com.google.android.gms.** { *; }
0 commit comments