-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement release mode instrumentation with better proguard rules
- Loading branch information
Showing
8 changed files
with
109 additions
and
27 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
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 |
---|---|---|
@@ -1,31 +1,27 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in C:\Program Files (x86)\Android\android-sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle.kts. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# FIXME remove this entire Android 4.2 workaround from 12/3/15 timrae commit for 2.15.x+ | ||
# Samsung Android 4.2 bug workaround | ||
# https://code.google.com/p/android/issues/detail?id=78377 | ||
-keepattributes ** | ||
-keep class !android.support.v7.view.menu.**,!android.support.design.internal.NavigationMenu,!android.support.design.internal.NavigationMenuPresenter,!android.support.design.internal.NavigationSubMenu,** {*;} | ||
#5806 - Class: ActionBarOverflow | ||
-keep public class android.support.v7.internal.view.menu.** { *; } | ||
-keep public class androidx.appcompat.view.menu.** { *; } | ||
-dontpreverify | ||
-dontoptimize | ||
-dontshrink | ||
-dontwarn ** | ||
-dontnote ** | ||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
-keepattributes SourceFile,LineNumberTable | ||
|
||
# Used through Reflection | ||
-keep class com.ichi2.anki.**.*Fragment { *; } | ||
-keep class * extends com.google.protobuf.GeneratedMessageLite { *; } | ||
-keep class androidx.core.app.ActivityCompat$* { *; } | ||
-keep class androidx.concurrent.futures.** { *; } | ||
|
||
# Ignore unused packages | ||
-dontwarn javax.naming.** | ||
-dontwarn org.ietf.jgss.** |
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,11 @@ | ||
# These proguard rules are only needed when building | ||
# for the combination of testing and release mode | ||
# Certain androidx frameworks that are test-only have | ||
# issues with proguard / minimization in release mode | ||
|
||
# Used for testing | ||
-keep class kotlin.test.** { *; } | ||
-keep class **.R$layout { <init> (...); <fields>; } | ||
|
||
# Ignore unused packages | ||
-dontwarn com.google.protobuf.GeneratedMessageLite$* |
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
Binary file not shown.