forked from gradle/gradle
/
build.gradle.kts
32 lines (29 loc) · 986 Bytes
/
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
plugins {
id("com.android.application")
}
android {
compileSdk = 30
buildToolsVersion = "30.0.2"
defaultConfig {
minSdk = 16
targetSdk = 30
versionCode = 1
versionName = "1.0"
}
flavorDimensions.add("org.gradle.example.my-own-flavor")
productFlavors {
create("full") {
dimension = "org.gradle.example.my-own-flavor"
versionNameSuffix = "-full"
}
}
}
dependencies {
implementation("example:java-library:1.0")
implementation("example:kotlin-library:1.0")
implementation("example:android-kotlin-library:1.0")
implementation("example:android-library:1.0") // automatically selects right flavor based on own flavor
implementation("example:android-library-single-variant:1.0")
implementation("example:kotlin-multiplatform-library:1.0") // selects JVM variant because of 'usage' attribute
implementation("example:kotlin-multiplatform-android-library:1.0")
}