diff --git a/.idea/misc.xml b/.idea/misc.xml index 0ad17cb..74dd639 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,7 +1,7 @@ - + diff --git a/firebaseConfigs/src/main/java/com/remote/firebaseconfigs/SdkRemoteConfigController.kt b/firebaseConfigs/src/main/java/com/remote/firebaseconfigs/SdkRemoteConfigController.kt index f862072..8f66f48 100644 --- a/firebaseConfigs/src/main/java/com/remote/firebaseconfigs/SdkRemoteConfigController.kt +++ b/firebaseConfigs/src/main/java/com/remote/firebaseconfigs/SdkRemoteConfigController.kt @@ -69,6 +69,7 @@ object SdkRemoteConfigController { callback: SdkConfigListener?, fetchOutTimeInSeconds: Long = 8, handlerDelayInSeconds: Long = 8, + fetchIntervalInSeconds: Long = 1, onUpdate: () -> Unit, ) { try { @@ -83,9 +84,7 @@ object SdkRemoteConfigController { ) val remoteConfigBuilder = FirebaseRemoteConfigSettings.Builder() remoteConfigBuilder.fetchTimeoutInSeconds = fetchOutTimeInSeconds - if (com.google.firebase.remoteconfig.BuildConfig.DEBUG) { - remoteConfigBuilder.setMinimumFetchIntervalInSeconds(0) - } + remoteConfigBuilder.setMinimumFetchIntervalInSeconds(fetchIntervalInSeconds) remoteConfig?.setConfigSettingsAsync( remoteConfigBuilder.build() )