diff --git a/admob/app/build.gradle.kts b/admob/app/build.gradle.kts index e914ec6b0..973913740 100644 --- a/admob/app/build.gradle.kts +++ b/admob/app/build.gradle.kts @@ -36,16 +36,16 @@ dependencies { implementation("androidx.legacy:legacy-support-v4:1.0.0") implementation("androidx.browser:browser:1.5.0") implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.firebase:firebase-ads:23.0.0") + implementation("com.google.firebase:firebase-ads:23.1.0") implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation("androidx.multidex:multidex:2.0.1") // [START gradle_play_config] - implementation("com.google.android.gms:play-services-ads:23.0.0") + implementation("com.google.android.gms:play-services-ads:23.1.0") // [END gradle_play_config] // Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom) - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // For an optimal experience using AdMob, add the Firebase SDK // for Google Analytics. This is recommended, but not required. diff --git a/analytics/app/build.gradle.kts b/analytics/app/build.gradle.kts index f6b58e147..8cdc71d5a 100644 --- a/analytics/app/build.gradle.kts +++ b/analytics/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "com.google.firebase.example.analytics" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -35,7 +35,7 @@ android { dependencies { implementation("androidx.legacy:legacy-support-v4:1.0.0") implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.firebase:firebase-analytics:21.6.2") + implementation("com.google.firebase:firebase-analytics:22.0.0") // Ironsource and AppLovin libraries used for ad_impression snippets implementation("com.applovin:applovin-sdk:11.5.1") implementation("com.ironsource.sdk:mediationsdk:7.2.4.1") diff --git a/appcheck/app/build.gradle.kts b/appcheck/app/build.gradle.kts index 866c405ca..b789d03d9 100644 --- a/appcheck/app/build.gradle.kts +++ b/appcheck/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "com.google.firebase.example.appcheck" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -35,15 +35,15 @@ android { dependencies { implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.12.0") implementation("androidx.constraintlayout:constraintlayout:2.1.4") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) implementation("com.google.firebase:firebase-appcheck") implementation("com.google.firebase:firebase-appcheck-playintegrity") implementation("com.google.firebase:firebase-appcheck-debug") implementation("com.squareup.retrofit2:retrofit:2.11.0") - implementation("androidx.core:core-ktx:1.13.0") + implementation("androidx.core:core-ktx:1.13.1") } \ No newline at end of file diff --git a/auth/app/build.gradle.kts b/auth/app/build.gradle.kts index a9bae84a6..0ede03310 100644 --- a/auth/app/build.gradle.kts +++ b/auth/app/build.gradle.kts @@ -9,7 +9,7 @@ android { defaultConfig { applicationId = "com.google.firebase.quickstart.auth" - minSdk = 19 + minSdk = 23 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -36,11 +36,11 @@ dependencies { implementation("androidx.browser:browser:1.0.0") implementation("androidx.cardview:cardview:1.0.0") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.12.0") implementation("androidx.activity:activity-ktx:1.9.0") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Add the dependency for the Firebase Authentication library // When using the BoM, you don't specify versions in Firebase library dependencies diff --git a/build.gradle.kts b/build.gradle.kts index a8a68f442..d23591e44 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { id("com.android.library") version "8.4.0" apply false id("org.jetbrains.kotlin.android") version "1.9.23" apply false id("com.google.gms.google-services") version "4.4.1" apply false - id("com.google.firebase.crashlytics") version "2.9.9" apply false + id("com.google.firebase.crashlytics") version "3.0.1" apply false id("com.google.firebase.firebase-perf") version "1.4.2" apply false id("androidx.navigation.safeargs") version "2.7.7" apply false id("com.github.ben-manes.versions") version "0.51.0" apply true diff --git a/config/app/build.gradle.kts b/config/app/build.gradle.kts index 13c584d19..e2b9c530c 100644 --- a/config/app/build.gradle.kts +++ b/config/app/build.gradle.kts @@ -9,7 +9,7 @@ android { defaultConfig { applicationId = "com.google.firebase.quickstart.config" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -32,13 +32,13 @@ android { } dependencies { - implementation("androidx.core:core-ktx:1.13.0") + implementation("androidx.core:core-ktx:1.13.1") implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.12.0") implementation("androidx.constraintlayout:constraintlayout:2.1.4") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Add the dependencies for the Remote Config and Analytics libraries // When using the BoM, you don't specify versions in Firebase library dependencies diff --git a/crashlytics/app/build.gradle.kts b/crashlytics/app/build.gradle.kts index 7860f8950..8a44aa7d7 100644 --- a/crashlytics/app/build.gradle.kts +++ b/crashlytics/app/build.gradle.kts @@ -11,7 +11,7 @@ android { defaultConfig { applicationId = "com.google.firebase.example.crashlytics" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -38,7 +38,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Add the dependencies for the Crashlytics and Analytics libraries // When using the BoM, you don't specify versions in Firebase library dependencies diff --git a/crashlytics/build.gradle.kts b/crashlytics/build.gradle.kts index 52f54c16d..bc2dc7b62 100644 --- a/crashlytics/build.gradle.kts +++ b/crashlytics/build.gradle.kts @@ -5,7 +5,7 @@ plugins { id("com.android.library") version "8.4.0" apply false id("org.jetbrains.kotlin.android") version "1.9.23" apply false id("com.google.gms.google-services") version "4.4.1" apply false - id("com.google.firebase.crashlytics") version "2.9.9" apply false + id("com.google.firebase.crashlytics") version "3.0.1" apply false } allprojects { diff --git a/database/app/build.gradle.kts b/database/app/build.gradle.kts index 2bbba39ec..b3593e5a5 100644 --- a/database/app/build.gradle.kts +++ b/database/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "com.google.firebase.referencecode.database" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -43,7 +43,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Add the dependency for the Realtime Database library // When using the BoM, you don't specify versions in Firebase library dependencies diff --git a/dl-invites/app/build.gradle.kts b/dl-invites/app/build.gradle.kts index 61e8b805b..ede46f67d 100644 --- a/dl-invites/app/build.gradle.kts +++ b/dl-invites/app/build.gradle.kts @@ -9,7 +9,7 @@ android { defaultConfig { applicationId = "com.google.firebase.dynamicinvites" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -36,11 +36,11 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.cardview:cardview:1.0.0") implementation("androidx.recyclerview:recyclerview:1.3.2") - implementation("com.google.android.material:material:1.11.0") + implementation("com.google.android.material:material:1.12.0") implementation("androidx.constraintlayout:constraintlayout:2.1.4") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Add the dependency for the Dynamic Links library // When using the BoM, you don't specify versions in Firebase library dependencies diff --git a/dynamic-links/app/build.gradle.kts b/dynamic-links/app/build.gradle.kts index 603755ba2..913b22661 100644 --- a/dynamic-links/app/build.gradle.kts +++ b/dynamic-links/app/build.gradle.kts @@ -9,7 +9,7 @@ android { defaultConfig { applicationId = "com.google.firebase.quickstart.dynamiclinks" - minSdk = 19 + minSdk = 23 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -36,7 +36,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // When using the BoM, you don't specify versions in Firebase library dependencies implementation("com.google.firebase:firebase-auth") diff --git a/firebaseoptions/app/build.gradle.kts b/firebaseoptions/app/build.gradle.kts index d396223f3..729375838 100644 --- a/firebaseoptions/app/build.gradle.kts +++ b/firebaseoptions/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "devrel.firebase.google.com.firebaseoptions" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -36,7 +36,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) implementation("com.google.firebase:firebase-database") implementation("com.google.firebase:firebase-common") } diff --git a/firestore/app/build.gradle.kts b/firestore/app/build.gradle.kts index 06256c03a..d46cb112f 100644 --- a/firestore/app/build.gradle.kts +++ b/firestore/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "com.google.example.firestore" - minSdk = 19 + minSdk = 23 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -42,7 +42,7 @@ dependencies { implementation("androidx.multidex:multidex:2.0.1") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Declare the dependency for the Cloud Firestore library // When using the BoM, you don't specify versions in Firebase library dependencies @@ -50,7 +50,7 @@ dependencies { // Firebase / Play Services implementation("com.google.firebase:firebase-auth") - implementation("com.google.android.gms:play-services-auth:21.1.0") + implementation("com.google.android.gms:play-services-auth:21.1.1") implementation("com.google.firebase:firebase-functions") // GeoFire (for Geoqueries solution) diff --git a/functions/app/build.gradle.kts b/functions/app/build.gradle.kts index c987ca2a3..4603471a9 100644 --- a/functions/app/build.gradle.kts +++ b/functions/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "devrel.firebase.google.com.functions" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -36,7 +36,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Add the dependency for the Cloud Functions library // When using the BoM, you don't specify versions in Firebase library dependencies diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 222fddd5c..7c5014d16 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -10,7 +10,7 @@ lifecycleRuntimeKtx = "2.7.0" activityCompose = "1.9.0" composeBom = "2024.05.00" reactiveStreams = "1.0.4" -vertexAI = "16.0.0-alpha03" +vertexAI = "16.0.0-beta01" [libraries] androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } diff --git a/inappmessaging/app/build.gradle.kts b/inappmessaging/app/build.gradle.kts index feaa28274..18cfda521 100644 --- a/inappmessaging/app/build.gradle.kts +++ b/inappmessaging/app/build.gradle.kts @@ -9,7 +9,7 @@ android { defaultConfig { applicationId = "com.google.firebase.example.inappmessaging" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -44,7 +44,7 @@ dependencies { implementation("androidx.browser:browser:1.5.0") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Add the dependencies for the In-App Messaging and Analytics libraries // When using the BoM, you don't specify versions in Firebase library dependencies diff --git a/installations/app/build.gradle.kts b/installations/app/build.gradle.kts index d94ab15f3..d3df400b1 100644 --- a/installations/app/build.gradle.kts +++ b/installations/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "com.google.samples.snippet" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -33,9 +33,9 @@ android { dependencies { implementation(fileTree("libs").include("*.jar")) - implementation("androidx.core:core-ktx:1.13.0") + implementation("androidx.core:core-ktx:1.13.1") implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.firebase:firebase-installations:17.2.0") + implementation("com.google.firebase:firebase-installations:18.0.0") } \ No newline at end of file diff --git a/messaging/app/build.gradle.kts b/messaging/app/build.gradle.kts index 089ce40ec..a4512f3e8 100644 --- a/messaging/app/build.gradle.kts +++ b/messaging/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "com.google.firebase.example.messaging" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -37,7 +37,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom) - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Import Firebase Cloud Messaging library implementation("com.google.firebase:firebase-messaging") @@ -51,7 +51,7 @@ dependencies { // See: https://firebase.google.com/docs/cloud-messaging/manage-tokens implementation("com.google.firebase:firebase-firestore") - implementation("com.google.android.gms:play-services-auth:21.1.0") + implementation("com.google.android.gms:play-services-auth:21.1.1") implementation("androidx.work:work-runtime-ktx:2.9.0") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0") } diff --git a/ml-functions/app/build.gradle.kts b/ml-functions/app/build.gradle.kts index 7ad72e445..74e3a53bc 100644 --- a/ml-functions/app/build.gradle.kts +++ b/ml-functions/app/build.gradle.kts @@ -43,7 +43,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom) - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Cloud Functions for Firebase implementation("com.google.firebase:firebase-functions") diff --git a/mlkit/app/build.gradle.kts b/mlkit/app/build.gradle.kts index 3545b3ffa..f8cbc5fd3 100644 --- a/mlkit/app/build.gradle.kts +++ b/mlkit/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "com.google.firebase.example.mlkit" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" diff --git a/perf/app/build.gradle.kts b/perf/app/build.gradle.kts index 6ecee0230..b397768c8 100644 --- a/perf/app/build.gradle.kts +++ b/perf/app/build.gradle.kts @@ -11,7 +11,7 @@ android { defaultConfig { applicationId = "com.google.firebase.example.perf" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -38,7 +38,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Add the dependency for the Performance Monitoring library // When using the BoM, you don't specify versions in Firebase library dependencies diff --git a/storage/app/build.gradle.kts b/storage/app/build.gradle.kts index 1f83716d6..f1ba231cf 100644 --- a/storage/app/build.gradle.kts +++ b/storage/app/build.gradle.kts @@ -11,7 +11,7 @@ android { defaultConfig { applicationId = "com.google.firebase.referencecode.storage" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -41,7 +41,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the BoM for the Firebase platform - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Add the dependency for the Cloud Storage library // When using the BoM, you don't specify versions in Firebase library dependencies diff --git a/tasks/app/build.gradle.kts b/tasks/app/build.gradle.kts index 7ccfe2b17..010c2fc2e 100644 --- a/tasks/app/build.gradle.kts +++ b/tasks/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "com.google.firebase.quickstart.tasks" - minSdk = 19 + minSdk = 23 targetSdk = 34 versionCode = 1 versionName = "1.0" @@ -36,7 +36,7 @@ dependencies { implementation("androidx.appcompat:appcompat:1.6.1") // Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom) - implementation(platform("com.google.firebase:firebase-bom:32.8.1")) + implementation(platform("com.google.firebase:firebase-bom:33.0.0")) // Import Firebase Authentication library implementation("com.google.firebase:firebase-auth") diff --git a/test-lab/app/build.gradle.kts b/test-lab/app/build.gradle.kts index 66486ef2e..f286ad4c2 100644 --- a/test-lab/app/build.gradle.kts +++ b/test-lab/app/build.gradle.kts @@ -10,7 +10,7 @@ android { defaultConfig { applicationId = "com.google.firebase.example.testlab" - minSdk = 19 + minSdk = 21 targetSdk = 34 versionCode = 1 versionName = "1.0" diff --git a/vertexai/app/src/main/java/com/google/firebase/example/vertexai/kotlin/FunctionCallViewModel.kt b/vertexai/app/src/main/java/com/google/firebase/example/vertexai/kotlin/FunctionCallViewModel.kt index 5dac6234e..35600a66c 100644 --- a/vertexai/app/src/main/java/com/google/firebase/example/vertexai/kotlin/FunctionCallViewModel.kt +++ b/vertexai/app/src/main/java/com/google/firebase/example/vertexai/kotlin/FunctionCallViewModel.kt @@ -63,7 +63,7 @@ class FunctionCallViewModel : ViewModel() { var response = chat.sendMessage(prompt) // Check if the model responded with a function call - response.functionCall?.let { functionCall -> + response.functionCalls.firstOrNull()?.let { functionCall -> // Try to retrieve the stored lambda from the model's tools and // throw an exception if the returned function was not declared val matchedFunction = generativeModel.tools?.flatMap { it.functionDeclarations }