Skip to content

Commit f7e98b8

Browse files
authored
dataconnect: demo: upgrade versions in build.gradle.kts (#6776)
1 parent b9be9f1 commit f7e98b8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

firebase-dataconnect/demo/build.gradle.kts

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ import java.nio.charset.StandardCharsets
1919

2020
plugins {
2121
// Use whichever versions of these dependencies suit your application.
22-
// The versions shown here were the latest versions as of December 03, 2024.
22+
// The versions shown here were the latest versions as of March 05, 2025.
2323
// Note, however, that the version of kotlin("plugin.serialization") _must_,
2424
// in general, match the version of kotlin("android").
25-
id("com.android.application") version "8.7.3"
25+
id("com.android.application") version "8.9.0"
2626
id("com.google.gms.google-services") version "4.4.2"
27-
val kotlinVersion = "2.1.0"
27+
val kotlinVersion = "2.1.10"
2828
kotlin("android") version kotlinVersion
2929
kotlin("plugin.serialization") version kotlinVersion
3030

@@ -35,19 +35,19 @@ plugins {
3535

3636
dependencies {
3737
// Use whichever versions of these dependencies suit your application.
38-
// The versions shown here were the latest versions as of December 03, 2024.
39-
implementation("com.google.firebase:firebase-dataconnect:16.0.0-beta03")
40-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
41-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
42-
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.7.3")
38+
// The versions shown here were the latest versions as of March 05, 2025.
39+
implementation("com.google.firebase:firebase-dataconnect:16.0.0-beta04")
40+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
41+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1")
42+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.8.0")
4343
implementation("androidx.appcompat:appcompat:1.7.0")
44-
implementation("androidx.activity:activity-ktx:1.9.3")
44+
implementation("androidx.activity:activity-ktx:1.10.1")
4545
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7")
4646
implementation("com.google.android.material:material:1.12.0")
4747

4848
// The following code in this "dependencies" block can be omitted from customer
4949
// facing documentation as it is an implementation detail of this application.
50-
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.3")
50+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
5151
implementation("io.kotest:kotest-property:5.9.1")
5252
implementation("io.kotest.extensions:kotest-property-arbs:2.1.2")
5353
}

firebase-dataconnect/demo/src/main/kotlin/com/google/firebase/dataconnect/minimaldemo/MyApplication.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class MyApplication : Application() {
6161
}
6262
)
6363

64-
private val initialLogLevel = FirebaseDataConnect.logLevel
64+
private val initialLogLevel = FirebaseDataConnect.logLevel.value
6565
private val connectorMutex = Mutex()
6666
private var connector: Ctry3q3tp6kzxConnector? = null
6767

@@ -70,7 +70,7 @@ class MyApplication : Application() {
7070

7171
coroutineScope.launch {
7272
if (getDataConnectDebugLoggingEnabled()) {
73-
FirebaseDataConnect.logLevel = LogLevel.DEBUG
73+
FirebaseDataConnect.logLevel.value = LogLevel.DEBUG
7474
}
7575
}
7676
}
@@ -102,7 +102,7 @@ class MyApplication : Application() {
102102
getSharedPreferences().all[SharedPrefsKeys.IS_DATA_CONNECT_LOGGING_ENABLED] as? Boolean ?: false
103103

104104
suspend fun setDataConnectDebugLoggingEnabled(enabled: Boolean) {
105-
FirebaseDataConnect.logLevel = if (enabled) LogLevel.DEBUG else initialLogLevel
105+
FirebaseDataConnect.logLevel.value = if (enabled) LogLevel.DEBUG else initialLogLevel
106106
editSharedPreferences { putBoolean(SharedPrefsKeys.IS_DATA_CONNECT_LOGGING_ENABLED, enabled) }
107107
}
108108

0 commit comments

Comments
 (0)