-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconsumer-rules.pro
More file actions
79 lines (67 loc) · 2.87 KB
/
consumer-rules.pro
File metadata and controls
79 lines (67 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Keep JavaScript interface for WebView communication
# CRITICAL: This must match the actual package path or JS bridge will break in release builds
-keepclassmembers class com.superwall.sdk.paywall.view.webview.messaging.PaywallMessageHandler {
public *;
}
# Keep the @JavascriptInterface annotation and all annotated methods
-keepattributes JavascriptInterface
-keepclassmembers class * {
@android.webkit.JavascriptInterface <methods>;
}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keep class com.superwall.** { *; }
-keep class androidx.lifecycle.DefaultLifecycleObserver
-keep class com.google.gson.reflect.TypeToken
-keep class * extends com.google.gson.reflect.TypeToken
-keep public class * implements java.lang.reflect.Type
# Keep `Companion` object fields of serializable classes.
# This avoids serializer lookup through `getDeclaredClasses` as done for named companion objects.
-if @kotlinx.serialization.Serializable class **
-keepclassmembers class <1> {
static <1>$Companion Companion;
}
-keep class com.sun.jna.** { *; }
-keep class org.libusb.** { *; }
-keep class com.superwall.supercel.** { *; }
-keepclassmembers class * extends com.sun.jna.** {
<fields>;
<methods>;
}
-keep class * implements com.sun.jna.** { *; }
# Keep `serializer()` on companion objects (both default and named) of serializable classes.
-if @kotlinx.serialization.Serializable class ** {
static **$* *;
}
-keepclassmembers class <2>$<3> {
kotlinx.serialization.KSerializer serializer(...);
}
# Keep `INSTANCE.serializer()` of serializable objects.
-if @kotlinx.serialization.Serializable class ** {
public static ** INSTANCE;
}
-keepclassmembers class <1> {
public static <1> INSTANCE;
kotlinx.serialization.KSerializer serializer(...);
}
-dontwarn java.awt.*
# @Serializable and @Polymorphic are used at runtime for polymorphic serialization.
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault
# Don't print notes about potential mistakes or omissions in the configuration for kotlinx-serialization classes
# See also https://github.com/Kotlin/kotlinx.serialization/issues/1900
-dontnote kotlinx.serialization.**
# Serialization core uses `java.lang.ClassValue` for caching inside these specified classes.
# If kotlinx-serialization-cbor is in the classpath, it gets picked as a serialization strategy.
# Don't warn about these two things.
-dontwarn java.lang.ClassValue
-dontwarn org.jetbrains.annotations.ReadOnly