28 lines
1.1 KiB
Prolog
28 lines
1.1 KiB
Prolog
-keepattributes Signature
|
|
|
|
# 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 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
|
|
|
|
# Deleting all calls Log.v, Log.d, Log.i, Log.w, Log.e, Log.wtf
|
|
-assumenosideeffects class android.util.Log {
|
|
public static *** d(...);
|
|
public static *** e(...);
|
|
public static *** i(...);
|
|
public static *** v(...);
|
|
public static *** w(...);
|
|
public static *** wtf(...);
|
|
}
|