amplitude / experiment-ios-client

MIT License
3 stars 12 forks source link

Unable to use `clear()` method from `ExperimentClient` #27

Closed fedejordan closed 1 year ago

fedejordan commented 1 year ago

Hi team, we want to integrate Experiment in our project but noticed that we cannot clear the cache for the experiments.

In the docs it says:

/// You can call clear after user logout to clear the variants in cache and storage.
experiment.clear()

But the clear() method is not present in the ExperimentClient protocol definition. It's just in the DefaultExperimentClient implementation, which is internal in the package and unable to access from the consumer.

Can you do a fix to make it available for the consumer? Thanks in advance

bgiori commented 1 year ago

Fixed in version 1.9.1, thanks!