1
- apply plugin : ' com.android.application'
2
-
3
- apply plugin : ' kotlin-android'
4
-
5
- apply plugin : ' kotlin-android-extensions'
6
-
7
- apply plugin : ' kotlin-kapt'
8
-
1
+ plugins {
2
+ id(" com.android.application" )
3
+ kotlin(" android" )
4
+ kotlin(" android.extensions" )
5
+ kotlin(" kapt" )
6
+ }
9
7
10
8
android {
11
- compileOptions {
12
- sourceCompatibility = JavaVersion . VERSION_1_8
13
- targetCompatibility = JavaVersion . VERSION_1_8
14
- }
15
9
compileSdkVersion(29 )
16
10
defaultConfig {
17
11
applicationId = " org.reduxkotlin.example.counter"
@@ -21,27 +15,30 @@ android {
21
15
versionName = " 1.0"
22
16
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
23
17
}
18
+ compileOptions {
19
+ sourceCompatibility = JavaVersion .VERSION_1_8
20
+ targetCompatibility = JavaVersion .VERSION_1_8
21
+ }
24
22
buildTypes {
25
- release {
26
- minifyEnabled = false
27
- proguardFiles(getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro' )
23
+ getByName( " release" ) {
24
+ isMinifyEnabled = false
25
+ proguardFiles(getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro" )
28
26
}
29
- debug {
27
+ getByName( " debug" ) {
30
28
// MPP libraries don't currently get this resolution automatically
31
- matchingFallbacks = [ ' release' ]
29
+ matchingFallbacks = listOf ( " release" )
32
30
}
33
31
}
34
32
packagingOptions {
35
- exclude ' META-INF/*.kotlin_module'
33
+ exclude( " META-INF/*.kotlin_module" )
36
34
}
37
- tasks. lint. enabled = false
38
35
}
39
36
40
37
41
38
dependencies {
42
39
implementation(Libs .kotlin_stdlib_jdk8)
43
40
implementation(Libs .appcompat)
44
41
45
- implementation(project(' :examples:counter:common' ))
46
- implementation(project(' :lib' ))
42
+ implementation(project(" :examples:counter:common" ))
43
+ implementation(project(" :lib" ))
47
44
}
0 commit comments