diff --git a/app/build.gradle b/app/build.gradle index 9adf000..4207e07 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,13 +3,13 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 29 - buildToolsVersion "29.0.3" + compileSdkVersion 31 + buildToolsVersion "31.0.0" defaultConfig { applicationId "com.hoc081098.stateflowsample" minSdkVersion 23 - targetSdkVersion 29 + targetSdkVersion 31 versionCode 1 versionName "1.0" @@ -23,44 +23,38 @@ android { } } -// To inline the bytecode built with JVM target 1.8 into -// bytecode that is being built with JVM target 1.6. (e.g. navArgs) - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 } kotlinOptions { - jvmTarget = "1.8" - } - viewBinding { - enabled = true + jvmTarget = JavaVersion.VERSION_11.toString() } + buildFeatures { viewBinding true } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" - implementation 'androidx.appcompat:appcompat:1.1.0' - implementation 'androidx.core:core-ktx:1.2.0' - implementation 'com.google.android.material:material:1.1.0' + implementation 'androidx.appcompat:appcompat:1.4.0' + implementation 'androidx.core:core-ktx:1.7.0' + implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.2' // viewModels - implementation "androidx.fragment:fragment-ktx:1.2.4" + implementation "androidx.fragment:fragment-ktx:1.4.0" - testImplementation 'junit:junit:4.13' - androidTestImplementation 'androidx.test.ext:junit:1.1.1' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' // coroutines - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6' - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.6' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2' // viewModelScope - implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-alpha02' + implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0' // lifecycleScope - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.0-alpha02' + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 2e5b1bb..041169f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,7 +12,8 @@ + android:theme="@style/AppTheme" + android:exported="true">