-
-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathDistributionInternal.kt
More file actions
28 lines (22 loc) · 822 Bytes
/
DistributionInternal.kt
File metadata and controls
28 lines (22 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package io.sentry.android.distribution.internal
import android.content.Context
import io.sentry.android.distribution.DistributionOptions
import io.sentry.android.distribution.UpdateStatus
/** Internal implementation for build distribution functionality. */
internal object DistributionInternal {
private var isInitialized = false
@Synchronized
fun init(context: Context, distributionOptions: DistributionOptions) {
// TODO: Implementation will be added in future PR
isInitialized = true
}
fun isEnabled(): Boolean {
return isInitialized
}
fun checkForUpdateBlocking(context: Context): UpdateStatus {
return UpdateStatus.Error("Implementation coming in future PR")
}
fun checkForUpdateAsync(context: Context, onResult: (UpdateStatus) -> Unit) {
throw NotImplementedError()
}
}