Created
February 14, 2023 10:12
-
-
Save Suchiq/3d9338ea7fee7ef573d849150e881afd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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