Skip to content

Commit

Permalink
Updated proguard rules for R8 full mode
Browse files Browse the repository at this point in the history
  • Loading branch information
itszechs committed Jun 14, 2023
1 parent 3d5f61f commit d311286
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,20 @@

-keep public class zechs.mpv.MPVLib {
*;
}
}

# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher.
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken

# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items).
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response

# 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 signatures from non-kept items.
-keep,allowobfuscation,allowshrinking class zechs.drive.stream.utils.state.Resource

0 comments on commit d311286

Please sign in to comment.