-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
60 lines (54 loc) · 1.63 KB
/
build.gradle.kts
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
import com.android.build.gradle.TestedExtension
buildscript {
repositories {
jcenter()
google()
mavenCentral()
gradlePluginPortal()
maven(uri("plugin/pluginRepo"))
}
dependencies {
classpath(BuildScriptPlugins.kotlin)
classpath(BuildScriptPlugins.android)
classpath(BuildScriptPlugins.dictionariesGenerator)
}
}
allprojects {
repositories {
jcenter()
google()
mavenCentral()
}
}
subprojects {
afterEvaluate {
extensions
.findByType(TestedExtension::class.java)
?.apply {
compileSdkVersion(28)
buildToolsVersion("28.0.3")
defaultConfig {
minSdkVersion(21)
targetSdkVersion(28)
versionCode = 1
versionName = PluginVersions.SAMPLE
}
buildTypes {
maybeCreate("release").apply {
isDebuggable = false
isMinifyEnabled = true
signingConfig = signingConfigs.getByName("debug")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
File("proguard-rules.pro")
)
}
maybeCreate("debug").apply {
isDebuggable = true
isMinifyEnabled = false
}
}
sourceSets["main"].java.srcDir("src/main/kotlin")
}
}
}