-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.gradle
60 lines (51 loc) · 1.57 KB
/
common.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
apply plugin: Plugins.kotlinAndroid
apply plugin: Plugins.kotlinAndroidExtensions
apply plugin: Plugins.kotlinKapt
apply from: "$rootDir/test-dependencies.gradle"
android {
compileSdkVersion Config.compileSdkVersion
buildToolsVersion Config.buildToolsVersion
defaultConfig {
versionName Config.versionName
versionCode Config.versionCode
minSdkVersion Config.minSdkVersion
targetSdkVersion Config.targetSdkVersion
minSdkVersion Config.minSdkVersion
targetSdkVersion Config.targetSdkVersion
testInstrumentationRunner Config.testInstrumentationRunner
}
compileOptions {
sourceCompatibility Versions.sourceCompatibilityVersion
targetCompatibility Versions.targetCompatibilityVersion
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
// no-op
}
}
lintOptions {
abortOnError false
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
dependencies {
implementation CoreLibraries.kotlin
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'org.jetbrains.kotlin') {
details.useVersion Versions.kotlinVersion
} else if (requested.group == 'com.android.support') {
details.useVersion Versions.appCompatVersion
}
}
}