-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add proguard initial step into Flank configuration (#1078)
* Added proguard with default setup * Added proguard config options for succesful build * Update test_runner/proguard/config.pro Co-authored-by: Jan Góral <[email protected]> * added minimization Co-authored-by: Jan Góral <[email protected]>
- Loading branch information
Showing
3 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
-dontobfuscate | ||
-allowaccessmodification | ||
-keepattributes SourceFile, LineNumberTable | ||
-dontwarn | ||
-verbose | ||
-dontoptimize | ||
-dontnote kotlin.** | ||
-dontnote kotlinx.** | ||
-dontnote com.google.gson.** | ||
-dontnote proguard.configuration.ConfigurationLogger | ||
|
||
-keep class ftl.Main { | ||
public static void main(java.lang.String[]); | ||
} | ||
|
||
#Kotlin | ||
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} | ||
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {} | ||
-keepnames class kotlinx.coroutines.android.AndroidExceptionPreHandler {} | ||
-keepnames class kotlinx.coroutines.android.AndroidDispatcherFactory {} | ||
|
||
-keep class kotlinx.coroutines.internal.MainDispatcherFactory {} | ||
-keep class kotlinx.coroutines.CoroutineExceptionHandler {} | ||
-keep class kotlinx.coroutines.android.AndroidExceptionPreHandler {} | ||
-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {} | ||
|
||
# Most of volatile fields are updated with AFU and should not be mangled | ||
-keepclassmembernames class kotlinx.** { | ||
volatile <fields>; | ||
} | ||
|
||
# Proguard configuration for Jackson 2.x | ||
-keep class com.fasterxml.jackson.databind.ObjectMapper { | ||
public <methods>; | ||
protected <methods>; | ||
} | ||
-keep class com.fasterxml.jackson.databind.ObjectWriter { | ||
public ** writeValueAsString(**); | ||
} | ||
-keepnames class com.fasterxml.jackson.** { *; } | ||
-keep class kotlin.Metadata { *; } | ||
-keep class kotlin.reflect.** { *; } | ||
|
||
-keepclassmembers enum * { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
-keep class com.bugsnag.android.NativeInterface { *; } | ||
-keep class com.bugsnag.android.Breadcrumb { *; } | ||
-keep class com.bugsnag.android.Breadcrumbs { *; } | ||
-keep class com.bugsnag.android.Breadcrumbs$Breadcrumb { *; } | ||
-keep class com.bugsnag.android.BreadcrumbType { *; } | ||
-keep class com.bugsnag.android.Severity { *; } | ||
-keep class com.bugsnag.android.ndk.BugsnagObserver { *; } | ||
# Picocli | ||
-keep class picocli.** { *; } | ||
-keep interface picocli.** { *; } | ||
|
||
#ftl | ||
-keep class ftl.** { *; } | ||
-keep interface ftl.** { *; } | ||
|
||
#google auth | ||
-keep class com.google.auth.** { *; } | ||
-keep interface com.google.auth.** { *; } | ||
|
||
#ctc wstx | ||
-keep class com.ctc.wstx.** { *; } | ||
-keep interface com.ctc.wstx.** { *; } |