File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
main/java/com/google/firebase/perf
test/java/com/google/firebase/perf/session Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class FirebaseSessionsEnforcementCheck {
25
25
@JvmStatic var enforcement: Boolean = false
26
26
private var logger: AndroidLogger = AndroidLogger .getInstance()
27
27
28
+ @JvmStatic
28
29
fun checkSession (session : PerfSession , failureMessage : String ) {
29
30
if (session.isLegacy()) {
30
31
logger.debug(" legacy session ${session.sessionId()} : $failureMessage " )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static SessionManager getInstance() {
49
49
50
50
/** Returns the currently active PerfSession. */
51
51
public final PerfSession perfSession () {
52
- FirebaseSessionsEnforcementCheck .Companion . checkSession (
52
+ FirebaseSessionsEnforcementCheck .checkSession (
53
53
perfSession , "Access perf session from manger without aqs ready" );
54
54
55
55
return perfSession ;
@@ -82,7 +82,7 @@ public void setApplicationContext(final Context appContext) {
82
82
* @see PerfSession#isSessionRunningTooLong()
83
83
*/
84
84
public void stopGaugeCollectionIfSessionRunningTooLong () {
85
- FirebaseSessionsEnforcementCheck .Companion . checkSession (
85
+ FirebaseSessionsEnforcementCheck .checkSession (
86
86
perfSession ,
87
87
"Session is not ready while trying to stopGaugeCollectionIfSessionRunningTooLong" );
88
88
@@ -161,7 +161,7 @@ public void unregisterForSessionUpdates(WeakReference<SessionAwareObject> client
161
161
}
162
162
163
163
private void startOrStopCollectingGauges (ApplicationProcessState appState ) {
164
- FirebaseSessionsEnforcementCheck .Companion . checkSession (
164
+ FirebaseSessionsEnforcementCheck .checkSession (
165
165
perfSession , "Session is not ready while trying to startOrStopCollectingGauges" );
166
166
167
167
if (perfSession .isGaugeAndEventCollectionEnabled ()) {
Original file line number Diff line number Diff line change @@ -24,6 +24,4 @@ fun createTestSession(suffix: Int): PerfSession {
24
24
return PerfSession (testSessionId(suffix), Clock ())
25
25
}
26
26
27
- fun testSessionId (suffix : Int ): String {
28
- return " abc$suffix "
29
- }
27
+ fun testSessionId (suffix : Int ): String = " abc$suffix "
You can’t perform that action at this time.
0 commit comments