-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
66 lines (54 loc) · 1.67 KB
/
build.gradle
File metadata and controls
66 lines (54 loc) · 1.67 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.1'
// classpath 'org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.13'
}
}
allprojects {
repositories {
jcenter()
}
buildscript {
repositories {
jcenter()
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
kotlinVersion = '1.1.1'
supportLibVersion = '25.3.1'
ankoVersion = '0.10.0-beta-2'
buildToolsVersion = '25.0.2'
compileSdk = 25
targetSdk = 25
minSdk = 15
}
ext.deps = [
kotlin: "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion",
supportFragment: "com.android.support:support-fragment:$supportLibVersion",
appCompat: "com.android.support:appcompat-v7:$supportLibVersion",
anko: "org.jetbrains.anko:anko-common:$ankoVersion",
junit: 'junit:junit:4.12',
robolectric: 'org.robolectric:robolectric:3.2.2',
mockito: 'org.mockito:mockito-core:2.7.2',
mockitoKotlin: 'com.nhaarman:mockito-kotlin:1.2.0'
]
project.ext.preDexLibs = !(System.getenv("CI") ?: "false" .toBoolean())
subprojects {
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
}
apply from: "${rootDir.getAbsolutePath()}/gradle/scripts/version_bump.gradle"