Added Progaurd rules

This commit is contained in:
h4h13 2020-01-05 21:44:41 +05:30
parent 9abb306025
commit 79bdd49547
3 changed files with 22 additions and 1 deletions

View file

@ -2,6 +2,15 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-kapt'
apply plugin: "ru.cleverpumpkin.proguard-dictionaries-generator"
proguardDictionaries {
dictionaryNames = [
"build/class-dictionary",
"build/package-dictionary",
"build/obfuscation-dictionary"
]
}
android { android {
compileSdkVersion 29 compileSdkVersion 29

View file

@ -68,3 +68,11 @@
-keep class android.support.** { *; } -keep class android.support.** { *; }
-keep class com.google.** { *; } -keep class com.google.** { *; }
-keep class java.nio.file.** { *; } -keep class java.nio.file.** { *; }
-obfuscationdictionary build/obfuscation-dictionary.txt
-classobfuscationdictionary build/class-dictionary.txt
-packageobfuscationdictionary build/package-dictionary.txt
# Move all classes and packages into the root package.
-repackageclasses ''
-flattenpackagehierarchy

View file

@ -5,11 +5,15 @@ buildscript {
repositories { repositories {
jcenter() jcenter()
google() google()
maven {
url "https://plugins.gradle.org/m2/"
}
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.5.2' classpath 'com.android.tools.build:gradle:3.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:bundletool:0.9.0' classpath 'com.android.tools.build:bundletool:0.9.0'
classpath "gradle.plugin.ru.cleverpumpkin.proguard-dictionaries-generator:plugin:1.0.7"
} }
} }