add proguard config

This commit is contained in:
Morten Delenk 2022-08-24 07:45:59 +01:00
parent 105a318fc2
commit 50f0c442e9
No known key found for this signature in database
GPG key ID: 5130416C797067B6
2 changed files with 19 additions and 1 deletions

View file

@ -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 {

View file

@ -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: