forked from 1hakr/AnExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
116 lines (107 loc) · 3.6 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
applicationVariants.all { variant ->
variant.outputs.each { output ->
def newApkName = "${parent.name}-${output.baseName}-${variant.versionName}.apk"
output.outputFile = new File(output.outputFile.parent, newApkName)
}
}
defaultConfig {
versionName "3.6"
versionCode = 58
minSdkVersion 17
targetSdkVersion 25
vectorDrawables.useSupportLibrary = true
}
signingConfigs {
release
}
buildTypes {
debug {
minifyEnabled false
shrinkResources false
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard/proguard-project.pro',
'proguard/proguard-google-play-services.pro'
}
release {
signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
getDefaultProguardFile('proguard-android-optimize.txt'),
'proguard/proguard-project.pro',
'proguard/proguard-google-play-services.pro'
}
}
flavorDimensions "release", "default"
productFlavors {
free {
applicationId "dev.dworks.apps.anexplorer"
dimension "default"
}
pro {
applicationId "dev.dworks.apps.anexplorer.pro"
dimension "default"
}
underground {
applicationId "dev.dworks.apps.anexplorer.underground"
dimension "default"
}
google {
dimension "release"
}
amazon {
dimension "release"
}
other {
dimension "release"
}
}
variantFilter { variant ->
def names = variant.flavors*.name
if (names.contains("underground") && (names.contains("google") || names.contains("other"))) {
variant.ignore = true
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
}
lintOptions {
abortOnError false
}
aaptOptions {
noCompress 'apk'
}
}
ext {
supportLibVersion = '25.1.1'
gmsVersion = '10.2.0'
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.jaredrummler:android-processes:+'
compile 'com.github.mjdev:libaums:+'
compile 'org.apache.ftpserver:ftpserver-core:+'
compile 'commons-net:commons-net:+'
compile "com.android.support:appcompat-v7:${supportLibVersion}"
compile "com.android.support:cardview-v7:${supportLibVersion}"
compile "com.android.support:design:${supportLibVersion}"
compile "com.android.support:exifinterface:${supportLibVersion}"
freeCompile "com.google.firebase:firebase-crash:${gmsVersion}"
freeCompile "com.google.firebase:firebase-ads:${gmsVersion}"
debugCompile 'com.squareup.leakcanary:leakcanary-android:+'
}
def props = new Properties()
props.load(new FileInputStream(rootProject.file("keystore.properties")))
android.signingConfigs.release.storeFile rootProject.file(props.keyStore)
android.signingConfigs.release.storePassword props.keyStorePassword
android.signingConfigs.release.keyAlias props.keyAlias
android.signingConfigs.release.keyPassword props.keyAliasPassword
if (getGradle().getStartParameter().getTaskRequests().toString().contains("Free")) {
apply plugin: 'com.google.gms.google-services'
}