File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
main/kotlin/com/google/firebase/sessions
test/kotlin/com/google/firebase/sessions Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,16 @@ import kotlin.time.Duration.Companion.minutes
26
26
*/
27
27
internal class SessionsSettings {
28
28
// Setting to qualify if sessions service is enabled.
29
- internal val sessionsEnabled: Boolean get() {
30
- return true
31
- }
29
+ internal val sessionsEnabled: Boolean
30
+ get() {
31
+ return true
32
+ }
32
33
33
34
// Setting that provides the sessions sampling rate.
34
- internal val samplingRate: Double get() {
35
- return 1.0
36
- }
35
+ internal val samplingRate: Double
36
+ get() {
37
+ return 1.0
38
+ }
37
39
38
40
// Background timeout config value before which a new session is generated
39
41
val sessionRestartTimeout: Duration
@@ -44,4 +46,4 @@ internal class SessionsSettings {
44
46
// Placeholder to initiate settings update on different sources
45
47
// Expected sources: RemoteSettings, ManifestOverrides, SDK Defaults
46
48
}
47
- }
49
+ }
Original file line number Diff line number Diff line change 17
17
package com.google.firebase.sessions
18
18
19
19
import com.google.common.truth.Truth.assertThat
20
- import org.junit.Test
21
20
import kotlin.time.Duration.Companion.minutes
21
+ import org.junit.Test
22
22
23
23
class SessionsSettingsTest {
24
24
@@ -28,4 +28,4 @@ class SessionsSettingsTest {
28
28
assertThat(SessionsSettings ().samplingRate).isEqualTo(1.0 )
29
29
assertThat(SessionsSettings ().sessionRestartTimeout).isEqualTo(30 .minutes)
30
30
}
31
- }
31
+ }
You can’t perform that action at this time.
0 commit comments