Skip to content

Commit da24bc9

Browse files
committed
Try the -android target again
1 parent 637b000 commit da24bc9

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

firebase-sessions/firebase-sessions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencies {
7373
api("com.google.firebase:firebase-encoders:17.0.0")
7474
api("com.google.firebase:firebase-encoders-json:18.0.1")
7575
implementation(libs.androidx.annotation)
76-
implementation(libs.androidx.datastore.preferences)
76+
implementation("androidx.datastore:datastore-preferences-android:1.1.2")
7777
compileOnly(libs.errorprone.annotations)
7878

7979
runtimeOnly("com.google.firebase:firebase-installations:18.0.0") {

firebase-sessions/src/main/java/com/google/firebase/sessions/Eh.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,22 @@
1717
package com.google.firebase.sessions;
1818

1919
import androidx.annotation.NonNull;
20+
import androidx.datastore.DataStoreFile;
2021
import androidx.datastore.preferences.PreferenceDataStoreDelegateKt;
2122

2223
public class Eh {
2324

2425
@NonNull
25-
public static String getMissingClassName() {
26+
public static String getMissingClassName0() {
27+
try {
28+
return DataStoreFile.class.getName();
29+
} catch (Exception ex) {
30+
return "oops: " + ex.getMessage();
31+
}
32+
}
33+
34+
@NonNull
35+
public static String getMissingClassName1() {
2636
try {
2737
return PreferenceDataStoreDelegateKt.class.getName();
2838
} catch (Exception ex) {

firebase-sessions/src/main/kotlin/com/google/firebase/sessions/FirebaseSessionsRegistrar.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ import kotlinx.coroutines.CoroutineDispatcher
4141
internal class FirebaseSessionsRegistrar : ComponentRegistrar {
4242
override fun getComponents(): List<Component<out Any>> {
4343
Log.w("find me", "this is the modified aqs: " + BuildConfig.VERSION_NAME)
44-
Log.w("find me", "the missing class name: ${Eh.getMissingClassName()}")
44+
Log.w("find me", "the missing class name 0: ${Eh.getMissingClassName0()}")
45+
Log.w("find me", "the missing class name 1: ${Eh.getMissingClassName1()}")
4546
return listOf(
4647
Component.builder(FirebaseSessions::class.java)
4748
.name(LIBRARY_NAME)

0 commit comments

Comments
 (0)