Skip to content

Commit a40245a

Browse files
committed
Try printing the missing class name?
1 parent cca6057 commit a40245a

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.firebase.sessions;
18+
19+
import androidx.annotation.NonNull;
20+
import androidx.datastore.preferences.PreferenceDataStoreDelegateKt;
21+
22+
public class Eh {
23+
24+
@NonNull
25+
public static String getMissingClassName() {
26+
return PreferenceDataStoreDelegateKt.class.getName();
27+
}
28+
}

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.google.firebase.sessions
1818

19+
import android.util.Log
1920
import androidx.annotation.Keep
2021
import com.google.android.datatransport.TransportFactory
2122
import com.google.firebase.FirebaseApp
@@ -38,8 +39,9 @@ import kotlinx.coroutines.CoroutineDispatcher
3839
*/
3940
@Keep
4041
internal class FirebaseSessionsRegistrar : ComponentRegistrar {
41-
override fun getComponents() =
42-
listOf(
42+
override fun getComponents(): List<Component<out Any>> {
43+
Log.w("find me", "the missing class name: ${Eh.getMissingClassName()}")
44+
return listOf(
4345
Component.builder(FirebaseSessions::class.java)
4446
.name(LIBRARY_NAME)
4547
.add(Dependency.required(firebaseApp))
@@ -110,6 +112,7 @@ internal class FirebaseSessionsRegistrar : ComponentRegistrar {
110112
.build(),
111113
LibraryVersionComponent.create(LIBRARY_NAME, BuildConfig.VERSION_NAME),
112114
)
115+
}
113116

114117
private companion object {
115118
private const val LIBRARY_NAME = "fire-sessions"

0 commit comments

Comments
 (0)