Skip to content

Instantly share code, notes, and snippets.

@Suchiq
Created February 14, 2023 10:12
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 Suchiq/3d9338ea7fee7ef573d849150e881afd to your computer and use it in GitHub Desktop.
Save Suchiq/3d9338ea7fee7ef573d849150e881afd to your computer and use it in GitHub Desktop.
package com.example.featureflaglibrary
import android.content.Context
import com.example.featureflaglibrary.FeatureFlagManager
class FeatureFlagProvider {
lateinit var flagManager: FeatureFlagManager
fun init(applicationContext: Context) {
flagManager = FeatureFlagManager()
flagManager.init(context = applicationContext)
}
fun setKeyValue(key: String, value: Boolean) {
flagManager.setKeyValue(key, value)
}
fun getValue(key: String): Boolean {
return flagManager.getValue(key)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment