From e73b3bad6be4e51020d503aba4f9c6ac0af61b55 Mon Sep 17 00:00:00 2001 From: Damian Bast Date: Fri, 7 Feb 2025 17:09:48 +0100 Subject: [PATCH] Update consumer-rules.pro for AGP 8.0 --- chargebee/consumer-rules.pro | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/chargebee/consumer-rules.pro b/chargebee/consumer-rules.pro index 83dc4b3..4ceb962 100644 --- a/chargebee/consumer-rules.pro +++ b/chargebee/consumer-rules.pro @@ -1,2 +1,14 @@ # keep the classes when optimizing the code --keep class com.chargebee.android.** { *;} \ No newline at end of file +-keep class com.chargebee.android.** { *;} + +# With R8 full mode generic signatures are stripped for classes that are not +# kept. Suspend functions are wrapped in continuations where the type argument +# is used. +-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation + +# R8 full mode strips generic signatures from return types if not kept. +-if interface * { @retrofit2.http.* public *** *(...); } +-keep,allowoptimization,allowshrinking,allowobfuscation class <3> + +# With R8 full mode generic signatures are stripped for classes that are not kept. +-keep,allowobfuscation,allowshrinking class retrofit2.Response