@@ -3,13 +3,13 @@ apply plugin: 'kotlin-android'
3
3
apply plugin : ' kotlin-android-extensions'
4
4
5
5
android {
6
- compileSdkVersion 29
7
- buildToolsVersion " 29 .0.3 "
6
+ compileSdkVersion 31
7
+ buildToolsVersion " 31 .0.0 "
8
8
9
9
defaultConfig {
10
10
applicationId " com.hoc081098.stateflowsample"
11
11
minSdkVersion 23
12
- targetSdkVersion 29
12
+ targetSdkVersion 31
13
13
versionCode 1
14
14
versionName " 1.0"
15
15
@@ -23,44 +23,38 @@ android {
23
23
}
24
24
}
25
25
26
- // To inline the bytecode built with JVM target 1.8 into
27
- // bytecode that is being built with JVM target 1.6. (e.g. navArgs)
28
-
29
-
30
26
compileOptions {
31
- sourceCompatibility JavaVersion . VERSION_1_8
32
- targetCompatibility JavaVersion . VERSION_1_8
27
+ sourceCompatibility JavaVersion . VERSION_11
28
+ targetCompatibility JavaVersion . VERSION_11
33
29
}
34
30
kotlinOptions {
35
- jvmTarget = " 1.8"
36
- }
37
- viewBinding {
38
- enabled = true
31
+ jvmTarget = JavaVersion . VERSION_11 . toString()
39
32
}
33
+ buildFeatures { viewBinding true }
40
34
}
41
35
42
36
dependencies {
43
37
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
44
38
implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version "
45
39
46
- implementation ' androidx.appcompat:appcompat:1.1 .0'
47
- implementation ' androidx.core:core-ktx:1.2 .0'
48
- implementation ' com.google.android.material:material:1.1 .0'
40
+ implementation ' androidx.appcompat:appcompat:1.4 .0'
41
+ implementation ' androidx.core:core-ktx:1.7 .0'
42
+ implementation ' com.google.android.material:material:1.4 .0'
49
43
implementation ' androidx.constraintlayout:constraintlayout:2.1.2'
50
44
51
45
// viewModels
52
- implementation " androidx.fragment:fragment-ktx:1.2.4 "
46
+ implementation " androidx.fragment:fragment-ktx:1.4.0 "
53
47
54
- testImplementation ' junit:junit:4.13'
55
- androidTestImplementation ' androidx.test.ext:junit:1.1.1 '
56
- androidTestImplementation ' androidx.test.espresso:espresso-core:3.2 .0'
48
+ testImplementation ' junit:junit:4.13.2 '
49
+ androidTestImplementation ' androidx.test.ext:junit:1.1.3 '
50
+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.4 .0'
57
51
58
52
// coroutines
59
- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6 '
60
- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.6 '
53
+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2 '
54
+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2 '
61
55
62
56
// viewModelScope
63
- implementation ' androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-alpha02 '
57
+ implementation ' androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0 '
64
58
// lifecycleScope
65
- implementation ' androidx.lifecycle:lifecycle-runtime-ktx:2.3.0-alpha02 '
59
+ implementation ' androidx.lifecycle:lifecycle-runtime-ktx:2.4.0 '
66
60
}
0 commit comments