Skip to content

Sample App

kirich1409 edited this page May 18, 2026 · 1 revision

Sample App

The sample module is a Kotlin Multiplatform app (Android + iOS + Desktop) that demonstrates all provider options available in Featured.

Default (DataStore)

No extra configuration required. Run:

./gradlew :sample:assembleDebug

The sample uses DataStoreConfigValueProvider by default.

SharedPreferences provider

To use SharedPreferencesConfigValueProvider instead of DataStore, open SampleApplication.kt and swap the provider inside buildConfigValues(). Rebuild normally.

Running with Firebase Remote Config

Firebase Remote Config requires a google-services.json file from the Firebase console.

  1. Create a Firebase project at console.firebase.google.com.
  2. Register the Android app with package name dev.androidbroadcast.featured.
  3. Download google-services.json and place it at sample/google-services.json.
  4. Build the sample with the hasFirebase flag:
./gradlew :sample:assembleDebug -PhasFirebase=true

The build system detects sample/google-services.json automatically, so step 4 can also be run without -PhasFirebase=true once the file is present.

  1. In SampleApplication.kt, uncomment the FirebaseConfigValueProvider lines inside buildConfigValues() and rebuild.

google-services.json is excluded from version control (.gitignore). Never commit credentials to the repository.

Clone this wiki locally