File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
unleashandroidsdk/src/main/java/io/getunleash/android Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -145,10 +145,10 @@ class DefaultUnleash(
145145 }
146146 }
147147
148- fun start (
149- eventListeners : List <UnleashListener > = emptyList() ,
150- bootstrapFile : File ? = null ,
151- bootstrap : List <Toggle > = emptyList()
148+ override fun start (
149+ eventListeners : List <UnleashListener >,
150+ bootstrapFile : File ? ,
151+ bootstrap : List <Toggle >
152152 ) {
153153 if (! started.compareAndSet(false , true )) {
154154 Log .w(TAG , " Unleash already started, ignoring start call" )
Original file line number Diff line number Diff line change 11package io.getunleash.android
22
3+ import io.getunleash.android.data.Toggle
34import io.getunleash.android.data.UnleashContext
45import io.getunleash.android.data.Variant
56import io.getunleash.android.events.UnleashListener
67import java.io.Closeable
8+ import java.io.File
79
810val disabledVariant = Variant (" disabled" )
911
@@ -70,4 +72,13 @@ interface Unleash: Closeable {
7072 * once the initial fetch of toggles has been completed or failed.
7173 */
7274 fun isReady (): Boolean
75+
76+ /* *
77+ * Starts Unleash manually
78+ */
79+ fun start (
80+ eventListeners : List <UnleashListener > = emptyList(),
81+ bootstrapFile : File ? = null,
82+ bootstrap : List <Toggle > = emptyList()
83+ )
7384}
You can’t perform that action at this time.
0 commit comments