Skip to content

Commit

Permalink
Add proguard rules for retrofit types
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-lopreiato committed Jan 14, 2024
1 parent 7ee57bb commit c999cd1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion android/proguard-rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,10 @@ public static *** v(...);
# Allow obfuscation of android.support.v7.internal.view.menu.**
# to avoid problem on Samsung 4.2.2 devices with appcompat v21
# see https://code.google.com/p/android/issues/detail?id=78377
-keep,includedescriptorclasses class !android.support.v7.view.menu.*MenuBuilder*, android.support.v7.** { *; }
-keep,includedescriptorclasses class !android.support.v7.view.menu.*MenuBuilder*, android.support.v7.** { *; }

# Rules for Retrofit, see https://github.com/square/retrofit/issues/3751#issuecomment-1192043644
# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>
-keep,allowobfuscation,allowshrinking class retrofit2.Response

0 comments on commit c999cd1

Please sign in to comment.