File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
android-sdk/src/main/java/com/optimizely/ab/android/sdk/cmab Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ import com.optimizely.ab.cmab.client.CmabClientHelper
1818
1919open class CmabClientHelperAndroid {
2020
21- open val cmabPredictionEndpoint: String
22- get() = CmabClientHelper .CMAB_PREDICTION_ENDPOINT
21+ open var cmabPredictionEndpoint: String = CmabClientHelper .CMAB_PREDICTION_ENDPOINT
2322
2423 open val cmabFetchFailed: String
2524 get() = CmabClientHelper .CMAB_FETCH_FAILED
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ open class DefaultCmabClient : CmabClient {
3737 this .cmabClientHelper = CmabClientHelperAndroid ()
3838 }
3939
40+ constructor (context: Context , cmabClientHelper: CmabClientHelperAndroid ) {
41+ this .client =
42+ Client (OptlyStorage (context), LoggerFactory .getLogger(OptlyStorage ::class .java))
43+ this .cmabClientHelper = cmabClientHelper
44+ }
45+
4046 constructor (client: Client ) {
4147 this .client = client
4248 this .cmabClientHelper = CmabClientHelperAndroid ()
You can’t perform that action at this time.
0 commit comments