File tree Expand file tree Collapse file tree 4 files changed +15
-13
lines changed
src/main/kotlin/com/google/firebase/sessions/api Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1717@file:Suppress(" UnstableApiUsage" )
1818
1919import org.jetbrains.kotlin.gradle.dsl.JvmTarget
20- import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
2120
2221plugins {
2322 id(" firebase-library" )
@@ -62,7 +61,10 @@ android {
6261 }
6362}
6463
65- kotlin { compilerOptions { jvmTarget = JvmTarget .JVM_1_8 } }
64+ kotlin {
65+ explicitApi()
66+ compilerOptions { jvmTarget = JvmTarget .JVM_1_8 }
67+ }
6668
6769dependencies {
6870 api(libs.firebase.common)
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import com.google.firebase.sessions.SharedSessionRepository
2525 * This object provides a static-like entry point that Crashlytics calls to inform Sessions a fatal
2626 * crash has occurred.
2727 */
28- object CrashEventReceiver {
28+ public object CrashEventReceiver {
2929 @VisibleForTesting internal lateinit var sharedSessionRepository: SharedSessionRepository
3030
3131 /* *
@@ -38,7 +38,7 @@ object CrashEventReceiver {
3838 * @see SharedSessionRepository.appBackground
3939 */
4040 @JvmStatic
41- fun notifyCrashOccurred () {
41+ public fun notifyCrashOccurred () {
4242 try {
4343 if (! ::sharedSessionRepository.isInitialized) {
4444 sharedSessionRepository = SharedSessionRepository .instance
Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ import kotlinx.coroutines.sync.withLock
3030 *
3131 * This is important because the Sessions SDK starts up before dependent SDKs.
3232 */
33- object FirebaseSessionsDependencies {
33+ public object FirebaseSessionsDependencies {
3434 private val dependencies = synchronizedMap(mutableMapOf<SessionSubscriber .Name , Dependency >())
3535
3636 /* *
3737 * Add a subscriber as a dependency to the Sessions SDK. Every dependency must register itself, or
3838 * the Sessions SDK will never generate a session.
3939 */
4040 @JvmStatic
41- fun addDependency (subscriberName : SessionSubscriber .Name ) {
41+ public fun addDependency (subscriberName : SessionSubscriber .Name ) {
4242 if (dependencies.containsKey(subscriberName)) {
4343 Log .d(TAG , " Dependency $subscriberName already added." )
4444 return
@@ -54,7 +54,7 @@ object FirebaseSessionsDependencies {
5454 * return.
5555 */
5656 @JvmStatic
57- fun register (subscriber : SessionSubscriber ) {
57+ public fun register (subscriber : SessionSubscriber ) {
5858 val subscriberName = subscriber.sessionSubscriberName
5959 val dependency = getDependency(subscriberName)
6060
Original file line number Diff line number Diff line change @@ -19,20 +19,20 @@ package com.google.firebase.sessions.api
1919import androidx.annotation.Discouraged
2020
2121/* * [SessionSubscriber] is an interface that dependent SDKs must implement. */
22- interface SessionSubscriber {
22+ public interface SessionSubscriber {
2323 /* * [SessionSubscriber.Name]s are used for identifying subscribers. */
24- enum class Name {
24+ public enum class Name {
2525 CRASHLYTICS ,
2626 PERFORMANCE ,
2727 @Discouraged(message = " This is for testing purposes only." ) MATT_SAYS_HI ,
2828 }
2929
3030 /* * [SessionDetails] contains session data passed to subscribers whenever the session changes */
31- data class SessionDetails (val sessionId : String )
31+ public data class SessionDetails (val sessionId : String )
3232
33- fun onSessionChanged (sessionDetails : SessionDetails )
33+ public fun onSessionChanged (sessionDetails : SessionDetails )
3434
35- val isDataCollectionEnabled: Boolean
35+ public val isDataCollectionEnabled: Boolean
3636
37- val sessionSubscriberName: Name
37+ public val sessionSubscriberName: Name
3838}
You can’t perform that action at this time.
0 commit comments