|
| 1 | +##---------------Begin: proguard configuration for android-core ---------- |
| 2 | + |
1 | 3 | ##---------------Begin: proguard configuration for androidx.core ---------- |
2 | 4 | -keep class androidx.core.view.GestureDetectorCompat { <init>(...); } |
3 | 5 | -keep class androidx.core.app.FrameMetricsAggregator { <init>(...); } |
4 | 6 | -keep interface androidx.core.view.ScrollingView { *; } |
5 | 7 | ##---------------End: proguard configuration for androidx.core ---------- |
6 | 8 |
|
7 | | -##---------------Begin: proguard configuration for Gson ---------- |
8 | | -# Gson uses generic type information stored in a class file when working with fields. Proguard |
9 | | -# removes such information by default, so configure it to keep all of it. |
10 | | --keepattributes Signature |
11 | | - |
12 | | -# For using GSON @Expose annotation |
13 | | --keepattributes *Annotation* |
14 | | - |
15 | | -# Application classes that will be serialized/deserialized |
16 | | --keep class io.sentry.** { *; } |
17 | | --keepclassmembers enum io.sentry.** { *; } |
18 | | --keep class io.sentry.android.core.** { *; } |
| 9 | +##---------------Begin: proguard configuration for androidx.lifecycle ---------- |
| 10 | +-keep interface androidx.lifecycle.DefaultLifecycleObserver { *; } |
| 11 | +-keep class androidx.lifecycle.ProcessLifecycleOwner { <init>(...); } |
| 12 | +##---------------End: proguard configuration for androidx.lifecycle ---------- |
19 | 13 |
|
20 | 14 | # don't warn jetbrains annotations |
21 | 15 | -dontwarn org.jetbrains.annotations.** |
22 | | - |
23 | | -# R8: Attribute Signature requires InnerClasses attribute. Check -keepattributes directive. |
24 | | --keepattributes InnerClasses |
| 16 | +# don't warn about missing classes (mainly for Guardsquare's proguard). |
| 17 | +# We are checking for their presence at runtime |
| 18 | +-dontwarn io.sentry.android.timber.SentryTimberIntegration |
| 19 | +-dontwarn io.sentry.android.fragment.FragmentLifecycleIntegration |
25 | 20 |
|
26 | 21 | # To ensure that stack traces is unambiguous |
27 | 22 | # https://developer.android.com/studio/build/shrink-code#decode-stack-trace |
28 | 23 | -keepattributes LineNumberTable,SourceFile |
| 24 | + |
| 25 | +##---------------End: proguard configuration for android-core ---------- |
0 commit comments