diff --git a/app/build.gradle b/app/build.gradle index 84839e3..f25e6e0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,13 +12,13 @@ plugins { } android { - compileSdkVersion 30 + compileSdkVersion 31 buildToolsVersion "30.0.3" defaultConfig { applicationId "com.example.todoapp" minSdkVersion 26 - targetSdkVersion 30 + targetSdkVersion 31 versionCode 1 versionName "1.0" @@ -49,9 +49,9 @@ android { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation 'androidx.core:core-ktx:1.6.0' - implementation 'androidx.appcompat:appcompat:1.3.1' - implementation 'androidx.constraintlayout:constraintlayout:2.1.0' + implementation 'androidx.core:core-ktx:1.7.0' + implementation 'androidx.appcompat:appcompat:1.4.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.2' implementation 'androidx.legacy:legacy-support-v4:1.0.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' @@ -62,18 +62,18 @@ dependencies { implementation 'androidx.navigation:navigation-ui-ktx:2.3.5' // Room components - implementation "androidx.room:room-runtime:2.3.0" - kapt "androidx.room:room-compiler:2.3.0" - implementation "androidx.room:room-ktx:2.3.0" - androidTestImplementation "androidx.room:room-testing:2.3.0" + implementation "androidx.room:room-runtime:2.4.0-beta02" + kapt "androidx.room:room-compiler:2.4.0-beta02" + implementation "androidx.room:room-ktx:2.4.0-beta02" + androidTestImplementation "androidx.room:room-testing:2.4.0-beta02" // Lifecycle components implementation "androidx.lifecycle:lifecycle-extensions:2.2.0" - implementation "androidx.lifecycle:lifecycle-common-java8:2.3.1" - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1" + implementation "androidx.lifecycle:lifecycle-common-java8:2.4.0" + implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0" // Kotlin components - api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0" - api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0" + api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" + api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2" } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 16c1288..465af79 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -11,6 +11,7 @@ android:supportsRtl="true" android:theme="@style/AppTheme"> diff --git a/app/src/main/java/com/example/todoapp/fragments/BindingAdapters.kt b/app/src/main/java/com/example/todoapp/fragments/BindingAdapters.kt index 4192420..4cf19cd 100644 --- a/app/src/main/java/com/example/todoapp/fragments/BindingAdapters.kt +++ b/app/src/main/java/com/example/todoapp/fragments/BindingAdapters.kt @@ -32,6 +32,7 @@ class BindingAdapters { when(emptyDatabase.value){ true -> view.visibility = View.VISIBLE false -> view.visibility = View.INVISIBLE + else -> {} } } @BindingAdapter("android:parsePriorityToInt") diff --git a/build.gradle b/build.gradle index 6068c51..013b8eb 100644 --- a/build.gradle +++ b/build.gradle @@ -6,9 +6,9 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.0.0' + classpath 'com.android.tools.build:gradle:7.0.3' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files