Skip to content

Commit

Permalink
fix: use DefaultUserProvider in client by default (#4)
Browse files Browse the repository at this point in the history
* feat: use DefaultUserProvider in client by default

* fix build
  • Loading branch information
bgiori authored Jun 28, 2021
1 parent d455e87 commit 5742e36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ internal class DefaultExperimentClient internal constructor(
private val httpClient: OkHttpClient,
private val storage: Storage,
private val executorService: ScheduledExecutorService,
private var userProvider: ExperimentUserProvider? = null,
) : ExperimentClient {

private var user: ExperimentUser? = null
private var userProvider: ExperimentUserProvider? = null

private val backoffLock = Any()
private var backoff: Backoff? = null
Expand Down
3 changes: 2 additions & 1 deletion sdk/src/main/java/com/amplitude/experiment/Experiment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ object Experiment {
config,
httpClient,
SharedPrefsStorage(application, apiKey, instanceName),
executorService
executorService,
DefaultUserProvider(application),
)
instances[instanceName] = newInstance
newInstance
Expand Down

0 comments on commit 5742e36

Please sign in to comment.