File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
firebase-remoteconfig/src
androidMain/kotlin/dev/gitlive/firebase/remoteconfig
commonMain/kotlin/dev/gitlive/firebase/remoteconfig
iosMain/kotlin/dev/gitlive/firebase/remoteconfig
jsMain/kotlin/dev/gitlive/firebase/remoteconfig Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ actual class FirebaseRemoteConfig internal constructor(val android: AndroidFireb
26
26
actual val info: FirebaseRemoteConfigInfo
27
27
get() = android.info.asCommon()
28
28
29
- actual suspend fun settings (build : FirebaseRemoteConfigSettings .() -> Unit ) {
30
- val settings = FirebaseRemoteConfigSettings ().apply (build )
29
+ actual suspend fun settings (init : FirebaseRemoteConfigSettings .() -> Unit ) {
30
+ val settings = FirebaseRemoteConfigSettings ().apply (init )
31
31
val androidSettings = remoteConfigSettings {
32
32
minimumFetchIntervalInSeconds = settings.minimumFetchIntervalInSeconds
33
33
fetchTimeoutInSeconds = settings.fetchTimeoutInSeconds
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ expect class FirebaseRemoteConfig {
23
23
fun getString (key : String ): String
24
24
operator fun get (key : String ): FirebaseRemoteConfigValue
25
25
suspend fun reset ()
26
- suspend fun settings (build : FirebaseRemoteConfigSettings .() -> Unit )
26
+ suspend fun settings (init : FirebaseRemoteConfigSettings .() -> Unit )
27
27
suspend fun setDefaults (vararg defaults : Pair <String , Any ?>)
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ actual class FirebaseRemoteConfig internal constructor(val ios: FIRRemoteConfig)
85
85
// not implemented for iOS target
86
86
}
87
87
88
- actual suspend fun settings (build : FirebaseRemoteConfigSettings .() -> Unit ) {
89
- val settings = FirebaseRemoteConfigSettings ().apply (build )
88
+ actual suspend fun settings (init : FirebaseRemoteConfigSettings .() -> Unit ) {
89
+ val settings = FirebaseRemoteConfigSettings ().apply (init )
90
90
val iosSettings = FIRRemoteConfigSettings ().apply {
91
91
minimumFetchInterval = settings.minimumFetchIntervalInSeconds.toDouble()
92
92
fetchTimeout = settings.fetchTimeoutInSeconds.toDouble()
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ actual class FirebaseRemoteConfig internal constructor(val js: firebase.remoteCo
60
60
// not implemented for JS target
61
61
}
62
62
63
- actual suspend fun configSettings (init : FirebaseRemoteConfigSettings .() -> Unit ) {
63
+ actual suspend fun settings (init : FirebaseRemoteConfigSettings .() -> Unit ) {
64
64
val settings = FirebaseRemoteConfigSettings ().apply (init )
65
65
js.settings.apply {
66
66
fetchTimeoutMillis = settings.fetchTimeoutInSeconds * 1000
You can’t perform that action at this time.
0 commit comments