-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
60 lines (48 loc) · 1.46 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
buildscript {
ext {
preDexLibs = !project.hasProperty('disablePreDex')
version = '3.0.0'
versionCode = 11
minSdkVersion = 14
targetSdkVersion = 26
compileSdkVersion = 26
buildToolsVersion = '26.0.1'
androidPluginVersion = '3.0.0-alpha9'
freefairPluginsVersion = '1.0.0'
supportLibraryVersion = '26.0.0'
deps = [
supportAppCompat : "com.android.support:appcompat-v7:$supportLibraryVersion",
supportRecyclerView: "com.android.support:recyclerview-v7:$supportLibraryVersion",
supportAnnotations : "com.android.support:support-annotations:$supportLibraryVersion"
]
}
repositories {
jcenter()
google()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidPluginVersion"
}
}
allprojects {
version = rootProject.ext.version
repositories {
jcenter()
google()
}
}
subprojects {
def appPlugin = "com.android.build.gradle.AppPlugin"
def libraryPlugin = "com.android.build.gradle.LibraryPlugin"
project.plugins.whenPluginAdded { plugin ->
if (appPlugin == plugin.class.name || libraryPlugin == plugin.class.name) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}