View on GitHub

Cadabra

A/B testing library for Java/Kotlin/Android

cadabra-firebase / com.fo2rist.cadabra.firebase / FirebaseConfigProvider / <init>

<init>

FirebaseConfigProvider(fetchAutomatically: Boolean = true, useDefaults: Boolean = true, rootElementKey: String? = null)

Create Firebase Config Provider. Be default provider automatically fetches the default config and initiates the remote config loading. If the automatic fetching is turned off or the remote config was updated startExperimentFromRemoteConfig triggers re-loading.

Parameters

fetchAutomatically - automatically fetch and activate latest Firebase Config once attached to Cadabra

useDefaults - automatically load default Firebase Config values once attached to Cadabra

rootElementKey - name of the root element in Firebase Remote Config. If present the element with that key will be fetched from Remote config a single configuration JSON, otherwise will scan all keys in Remote config and match them with registered experiment names.