-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove passthrough register
method from FirebaseSessions
since `F…
#5452
Conversation
…irebaseSessionsDependencies` can be accessed directly.
The public api surface has changed for the subproject firebase-sessions: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
Size Report 1Affected Products
Test Logs |
@@ -59,6 +59,7 @@ thirdPartyLicenses { | |||
} | |||
|
|||
dependencies { | |||
implementation libs.firebase.sessions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should add sessions like this since we depend on it via implementation(project(':firebase-sessions'))
so we can make changes to sessions and crashlytics together easily.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, android studio did this for some reason and it works without it. I'm switching to vim.
firebase-sessions/api.txt
Outdated
@@ -3,16 +3,50 @@ package com.google.firebase.sessions { | |||
|
|||
public final class FirebaseSessions { | |||
method @NonNull public static com.google.firebase.sessions.FirebaseSessions getInstance(); | |||
method @NonNull public static com.google.firebase.sessions.FirebaseSessions getInstance(@NonNull com.google.firebase.FirebaseApp app); | |||
method public void register(@NonNull com.google.firebase.sessions.api.SessionSubscriber subscriber); | |||
method @Deprecated @NonNull public static com.google.firebase.sessions.FirebaseSessions getInstance(@NonNull com.google.firebase.FirebaseApp app); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we can just remove these instance and getInstance methods? Now there is no useful public api in this class anymore. Maybe even make FirebaseSessions internal. And only the stuff in the api package be public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it!
"data collection enabled: ${subscriber.isDataCollectionEnabled}" | ||
) | ||
} | ||
|
||
/** Calculate whether we should sample events using [sessionSettings] data. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is left over from an earlier change. Can you delete it since you're already working in this file?
gradle/libs.versions.toml
Outdated
@@ -59,6 +59,7 @@ kotest-runner = { module = "io.kotest:kotest-runner-junit4-jvm", version.ref = " | |||
kotest-assertions = { module = "io.kotest:kotest-assertions-core-jvm", version.ref = "kotest" } | |||
kotest-property = { module = "io.kotest:kotest-property-jvm", version.ref = "kotest" } | |||
quickcheck = { module = "net.java:quickcheck", version.ref = "quickcheck" } | |||
firebase-sessions = { group = "com.google.firebase", name = "firebase-sessions", version = "1.0.2" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
…irebaseSessionsDependencies` can be accessed directly.