File tree Expand file tree Collapse file tree 2 files changed +16
-23
lines changed
firebase-sessions/src/main/kotlin/com/google/firebase/sessions/settings Expand file tree Collapse file tree 2 files changed +16
-23
lines changed Original file line number Diff line number Diff line change @@ -25,25 +25,21 @@ import kotlin.time.DurationUnit
25
25
import kotlin.time.toDuration
26
26
27
27
internal class LocalOverrideSettings (context : Context ) : SettingsProvider {
28
- private val metadata: Bundle
29
-
30
- init {
31
- metadata =
32
- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ) {
33
- context.packageManager.getApplicationInfo(
34
- context.packageName,
35
- PackageManager .ApplicationInfoFlags .of(PackageManager .GET_META_DATA .toLong()),
36
- )
37
- } else {
38
- @Suppress(" DEPRECATION" ) // For older API levels.
39
- context.packageManager.getApplicationInfo(
40
- context.packageName,
41
- PackageManager .GET_META_DATA ,
42
- )
43
- }
44
- .metaData
45
- ? : Bundle .EMPTY
46
- }
28
+ private val metadata =
29
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ) {
30
+ context.packageManager.getApplicationInfo(
31
+ context.packageName,
32
+ PackageManager .ApplicationInfoFlags .of(PackageManager .GET_META_DATA .toLong()),
33
+ )
34
+ } else {
35
+ @Suppress(" DEPRECATION" ) // For older API levels.
36
+ context.packageManager.getApplicationInfo(
37
+ context.packageName,
38
+ PackageManager .GET_META_DATA ,
39
+ )
40
+ }
41
+ .metaData
42
+ ? : Bundle .EMPTY
47
43
48
44
override val sessionEnabled: Boolean?
49
45
get() =
Original file line number Diff line number Diff line change @@ -51,10 +51,7 @@ internal class SessionsSettings(
51
51
),
52
52
dataStore = context.dataStore,
53
53
),
54
- ) {
55
- // This is a load-bearing empty block.
56
- // See go/load-bearing-empty-block for more details.
57
- }
54
+ )
58
55
59
56
// Order of preference for all the configs below:
60
57
// 1. Honor local overrides
You can’t perform that action at this time.
0 commit comments