Skip to content

Instantly share code, notes, and snippets.

@manoj-mili
Last active March 27, 2022 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-mili/51436ab2010a121886ad7054ec3118a1 to your computer and use it in GitHub Desktop.
Save manoj-mili/51436ab2010a121886ad7054ec3118a1 to your computer and use it in GitHub Desktop.
class ConfigProviderImpl(private val remoteConfig: FirebaseRemoteConfig) :
IConfigProvider() {
override fun getString(key: String): String {
return remoteConfig.getString(key)
}
override fun getBoolean(key: String): Boolean {
return remoteConfig.getBoolean(key)
}
override fun getDouble(key: String): Double {
return remoteConfig.getDouble(key)
}
//and other implementations
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment