build: update dependencies
authorDa Risk <da_risk@geekorum.com>
Tue, 16 Jan 2024 16:50:07 -0400
changeset 63 a1b9ef3d8ef3
parent 62 b74cc479525d
child 64 5db96a3b9aa3
build: update dependencies
buildSrc/build.gradle.kts
geekdroid/src/androidTest/java/com/geekorum/geekdroid/ExampleInstrumentedTest.java
gradle/libs.versions.toml
--- a/buildSrc/build.gradle.kts	Mon Jan 08 14:09:00 2024 -0400
+++ b/buildSrc/build.gradle.kts	Tue Jan 16 16:50:07 2024 -0400
@@ -56,8 +56,8 @@
 }
 
 dependencies {
-    implementation("com.android.tools.build:gradle:8.2.0")
-    implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
+    implementation("com.android.tools.build:gradle:8.2.1")
+    implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22")
     implementation("gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1")
     implementation("com.github.triplet.gradle:play-publisher:3.7.0")
 
--- a/geekdroid/src/androidTest/java/com/geekorum/geekdroid/ExampleInstrumentedTest.java	Mon Jan 08 14:09:00 2024 -0400
+++ b/geekdroid/src/androidTest/java/com/geekorum/geekdroid/ExampleInstrumentedTest.java	Tue Jan 16 16:50:07 2024 -0400
@@ -21,15 +21,16 @@
  */
 package com.geekorum.geekdroid;
 
+import static org.junit.Assert.assertEquals;
+
 import android.content.Context;
-import androidx.test.InstrumentationRegistry;
-import androidx.test.runner.AndroidJUnit4;
+
+import androidx.test.core.app.ApplicationProvider;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
 
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import static org.junit.Assert.*;
-
 /**
  * Instrumentation test, which will execute on an Android device.
  *
@@ -40,7 +41,7 @@
     @Test
     public void useAppContext() throws Exception {
         // Context of the app under test.
-        Context appContext = InstrumentationRegistry.getTargetContext();
+        Context appContext = ApplicationProvider.getApplicationContext();
 
         assertEquals("com.geekorum.geekdroid.test", appContext.getPackageName());
     }
--- a/gradle/libs.versions.toml	Mon Jan 08 14:09:00 2024 -0400
+++ b/gradle/libs.versions.toml	Tue Jan 16 16:50:07 2024 -0400
@@ -1,31 +1,30 @@
 [versions]
-annotation = "1.6.0"
-appcompat = "1.6.1"
-browser = "1.5.0"
+annotation = "1.7.1"
+browser = "1.7.0"
 constraintlayout = "2.1.4"
 coordinatorlayout = "1.2.0"
-core-ktx = "1.10.1"
+core-ktx = "1.12.0"
 core-testing = "2.2.0"
-dagger = "2.47"
-firebase-bom = "32.2.1"
-fragment = "1.6.1"
+dagger = "2.50"
+firebase-bom = "32.7.1"
+fragment = "1.6.2"
 kotlinx-coroutines-bom = "1.7.3"
-lifecycle = "2.6.1"
-material = "1.9.0"
-navigation = "2.6.0"
-okhttp = "4.10.0"
-paging-runtime-ktx = "3.2.0"
-play-services-location = "21.0.1"
-recyclerview = "1.3.1"
-room = "2.5.2"
+lifecycle = "2.7.0"
+material = "1.11.0"
+navigation = "2.7.6"
+okhttp = "4.12.0"
+paging-runtime-ktx = "3.2.1"
+play-services-location = "21.1.0"
+preference = "1.2.1"
+recyclerview = "1.3.2"
+room = "2.6.1"
 timber = "5.0.1"
-workmanager = "2.8.1"
+workmanager = "2.9.0"
 
 [plugins]
 
 [libraries]
 annotation = { module = "androidx.annotation:annotation", version.ref = "annotation" }
-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
 browser = { module = "androidx.browser:browser", version.ref = "browser" }
 constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" }
 coordinatorlayout = { module = "androidx.coordinatorlayout:coordinatorlayout", version.ref = "coordinatorlayout" }
@@ -50,6 +49,7 @@
 okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
 paging-runtime-ktx = { module = "androidx.paging:paging-runtime-ktx", version.ref = "paging-runtime-ktx" }
 play-services-location = { module = "com.google.android.gms:play-services-location", version.ref = "play-services-location" }
+preference-ktx = { module = "androidx.preference:preference-ktx", version.ref = "preference" }
 recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "recyclerview" }
 room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
 timber = { module = "com.jakewharton.timber:timber", version.ref = "timber" }