Skip to content

Commit 219b1d0

Browse files
authored
fix: Restore ProGuard rules to preserve Rokt class members (#590)
1 parent eee1e27 commit 219b1d0

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

android-core/proguard.pro

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,21 @@
208208
-keep class com.mparticle.rokt.RoktLayoutDimensionCallBack { *; }
209209
-keep class com.mparticle.rokt.RoktOptions { *; }
210210

211+
# Preserve annotation classes
212+
-keep class androidx.annotation.NonNull { *; }
213+
-keep class androidx.annotation.Nullable { *; }
214+
-keepclassmembers class com.mparticle.** {
215+
@androidx.annotation.NonNull *;
216+
@androidx.annotation.Nullable *;
217+
}
218+
211219
# Preserve all method signatures in the Rokt class to prevent overload resolution issues
212220
-keepclassmembers class com.mparticle.Rokt {
213-
public void selectPlacements(...);
214-
public void purchaseFinalized(...);
221+
*;
215222
}
223+
-keepclassmembers class com.mparticle.KitIntegration$RoktListener* {
224+
*;
225+
}
216226
-keep public class com.mparticle.audience.* {
217227
*;
218228
}

0 commit comments

Comments
 (0)