forked from Guardsquare/proguard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
73 lines (65 loc) · 1.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// This build file illustrates how to apply ProGuard in the Android build
// process, with ProGuard's own plugin instead of the built-in minification
// support of the Android Gradle plugin.
buildscript {
repositories {
mavenLocal() // For local testing
google() // For the Android Gradle plugin.
mavenCentral() // For the ProGuard Gradle Plugin and anything else.
}
dependencies {
classpath 'com.guardsquare:proguard-gradle:7.1.0'
classpath 'com.android.tools.build:gradle:7.0.0-beta02'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.guardsquare.proguard'
repositories {
google() // For the Android plugin.
mavenCentral() // For anything else.
}
android {
compileSdkVersion 28
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
defaultConfig {
minSdkVersion 11
targetSdkVersion 29
signingConfig signingConfigs.debug
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
buildTypes {
debug {
// Disable the built-in minification
minifyEnabled false
}
release {
// Disable the built-in minification
minifyEnabled false
}
}
}
proguard {
configurations {
release {
defaultConfiguration 'proguard-android-optimize.txt'
configuration 'proguard-project.txt'
}
}
}