mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-06 10:45:20 +08:00
Merge R8 Rules
This commit is contained in:
@@ -25,6 +25,14 @@ android {
|
|||||||
versionCode rootProject.ext.appVersionCode
|
versionCode rootProject.ext.appVersionCode
|
||||||
versionName rootProject.ext.appVersionName
|
versionName rootProject.ext.appVersionName
|
||||||
|
|
||||||
|
kotlinOptions {
|
||||||
|
freeCompilerArgs = [
|
||||||
|
'-Xno-param-assertions',
|
||||||
|
'-Xno-call-assertions',
|
||||||
|
'-Xno-receiver-assertions'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
18
app/proguard-rules.pro
vendored
18
app/proguard-rules.pro
vendored
@@ -27,22 +27,26 @@
|
|||||||
-dontoptimize
|
-dontoptimize
|
||||||
-verbose
|
-verbose
|
||||||
-overloadaggressively
|
-overloadaggressively
|
||||||
-repackageclasses o
|
|
||||||
-allowaccessmodification
|
-allowaccessmodification
|
||||||
-adaptclassstrings
|
-adaptclassstrings
|
||||||
-adaptresourcefilenames
|
-adaptresourcefilenames
|
||||||
-adaptresourcefilecontents
|
-adaptresourcefilecontents
|
||||||
|
|
||||||
#-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
|
-renamesourcefileattribute P
|
||||||
-renamesourcefileattribute H
|
|
||||||
-keepattributes SourceFile,LineNumberTable
|
-keepattributes SourceFile,LineNumberTable
|
||||||
|
|
||||||
-keep class android.support**
|
|
||||||
-keep class androidx**
|
|
||||||
|
|
||||||
-keep public class * extends android.app.Activity
|
-keep public class * extends android.app.Activity
|
||||||
-keep public class * extends android.app.Application
|
-keep public class * extends android.app.Application
|
||||||
-keep public class * extends android.app.Service
|
-keep public class * extends android.app.Service
|
||||||
-keep public class * extends android.content.ContentProvider
|
-keep public class * extends android.content.ContentProvider
|
||||||
-keep public class * extends android.app.backup.BackupAgentHelper
|
-keep public class * extends android.app.backup.BackupAgentHelper
|
||||||
-keep public class * extends android.preference.Preference
|
-keep public class * extends android.preference.Preference
|
||||||
|
|
||||||
|
-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
|
||||||
|
public static *** throwUninitializedProperty(...);
|
||||||
|
public static *** throwUninitializedPropertyAccessException(...);
|
||||||
|
}
|
||||||
|
|
||||||
|
-keepclassmembers class * implements androidx.viewbinding.ViewBinding {
|
||||||
|
*** inflate(android.view.LayoutInflater);
|
||||||
|
}
|
Reference in New Issue
Block a user