add proguard config
This commit is contained in:
parent
105a318fc2
commit
50f0c442e9
2 changed files with 19 additions and 1 deletions
|
@ -15,6 +15,14 @@ plugins {
|
|||
}
|
||||
|
||||
android {
|
||||
signingConfigs {
|
||||
release {
|
||||
storeFile file('/home/darkkirb/teststore.jks')
|
||||
storePassword '123456'
|
||||
keyAlias 'key0'
|
||||
keyPassword '123456'
|
||||
}
|
||||
}
|
||||
compileSdk 33
|
||||
|
||||
defaultConfig {
|
||||
|
@ -25,12 +33,14 @@ android {
|
|||
versionName "1.0"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
signingConfig null
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
|
|
8
app/proguard-rules.pro
vendored
8
app/proguard-rules.pro
vendored
|
@ -5,6 +5,14 @@
|
|||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
-keepclassmembers class * implements androidx.viewbinding.ViewBinding {
|
||||
public static *** inflate(android.view.LayoutInflater, android.view.ViewGroup, boolean);
|
||||
}
|
||||
|
||||
-keepclasseswithmembernames class * implements rs.chir.utils.xml.XMLSerializable {
|
||||
public static final rs.chir.utils.xml.XMLSerializable$XMLDeserializable DESERIALIZER;
|
||||
}
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
|
|
Loading…
Reference in a new issue