diff --git a/config/app/build.gradle b/config/app/build.gradle index 58a6fcd2c..e334c9f02 100644 --- a/config/app/build.gradle +++ b/config/app/build.gradle @@ -39,10 +39,10 @@ dependencies { implementation 'com.google.android.material:material:1.7.0' // Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom) - implementation platform('com.google.firebase:firebase-bom:31.1.1') + implementation platform('com.google.firebase:firebase-bom:31.2.0') // Firebase Remote Config (Java) - implementation 'com.google.firebase:firebase-config' + implementation 'com.google.firebase:firebase-config:21.2.1' // Firebase Remote Config (Kotlin) implementation 'com.google.firebase:firebase-config-ktx' @@ -50,6 +50,11 @@ dependencies { // For an optimal experience using Remote Config, add the Firebase SDK // for Google Analytics. This is recommended, but not required. implementation 'com.google.firebase:firebase-analytics' + implementation 'com.google.firebase:firebase-core:21.1.1' + implementation 'com.google.firebase:firebase-annotations:16.2.0' + + implementation 'com.google.firebase:firebase-installations-interop:17.1.0' + implementation 'com.google.firebase:firebase-installations:17.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' androidTestImplementation 'androidx.test:rules:1.5.0' diff --git a/config/app/src/main/AndroidManifest.xml b/config/app/src/main/AndroidManifest.xml index 6065a87b1..3cb31564b 100644 --- a/config/app/src/main/AndroidManifest.xml +++ b/config/app/src/main/AndroidManifest.xml @@ -1,5 +1,6 @@ + { + displayWelcomeMessage(); + return Tasks.forResult(null); + }); + } + + @Override + public void onError(FirebaseRemoteConfigException error) { + Log.i(TAG, "Got error: " + error.toString()); + } + }); } /** diff --git a/config/build.gradle b/config/build.gradle index 6ba9a3566..8e9db6622 100644 --- a/config/build.gradle +++ b/config/build.gradle @@ -3,11 +3,14 @@ buildscript { repositories { mavenLocal() + maven { + url '.m2/repository' + } google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.4.0' + classpath 'com.android.tools.build:gradle:7.3.1' classpath 'com.google.gms:google-services:4.3.14' classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0' } @@ -17,6 +20,9 @@ allprojects { repositories { //mavenLocal() must be listed at the top to facilitate testing mavenLocal() + maven { + url '.m2/repository' + } google() mavenCentral() } diff --git a/config/gradle.properties b/config/gradle.properties index aac7c9b46..6dd0218ed 100644 --- a/config/gradle.properties +++ b/config/gradle.properties @@ -10,6 +10,7 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. org.gradle.jvmargs=-Xmx1536m +android.useAndroidX=true # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit