-
Notifications
You must be signed in to change notification settings - Fork 0
Sample App
kirich1409 edited this page May 18, 2026
·
1 revision
The sample module is a Kotlin Multiplatform app (Android + iOS + Desktop) that demonstrates all provider options available in Featured.
No extra configuration required. Run:
./gradlew :sample:assembleDebugThe sample uses DataStoreConfigValueProvider by default.
To use SharedPreferencesConfigValueProvider instead of DataStore, open SampleApplication.kt and swap the provider inside buildConfigValues(). Rebuild normally.
Firebase Remote Config requires a google-services.json file from the Firebase console.
- Create a Firebase project at console.firebase.google.com.
- Register the Android app with package name
dev.androidbroadcast.featured. - Download
google-services.jsonand place it atsample/google-services.json. - Build the sample with the
hasFirebaseflag:
./gradlew :sample:assembleDebug -PhasFirebase=trueThe build system detects sample/google-services.json automatically, so step 4 can also be run without -PhasFirebase=true once the file is present.
- In
SampleApplication.kt, uncomment theFirebaseConfigValueProviderlines insidebuildConfigValues()and rebuild.
google-services.jsonis excluded from version control (.gitignore). Never commit credentials to the repository.