File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
package-testing/android-relay
src/main/java/cloud/eppo/android/sdkrelay Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ val apiKey: String = gradleLocalProperties(
15
15
val testRunnerHost: String = System .getenv(" TEST_RUNNER_HOST" ) ? : " http://10.0.2.2"
16
16
val testRunnerPort: String = System .getenv(" TEST_RUNNER_PORT" ) ? : " 3000"
17
17
18
- val eppoAPIHost: String = System .getenv(" EPPO_API_HOST" ) ? : " http://10.0.2.2"
19
- val eppoAPIPort: String = System .getenv(" EPPO_API_PORT" ) ? : " 5000"
18
+ val eppoBaseUrl: String = System .getenv(" EPPO_BASE_URL" ) ? : " http://10.0.2.2:5000/api"
20
19
21
20
22
21
android {
@@ -30,7 +29,7 @@ android {
30
29
minSdk = 26
31
30
targetSdk = 34
32
31
versionCode = 1
33
- versionName = " 1.0"
32
+ versionName = " 1.1. 0"
34
33
35
34
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
36
35
vectorDrawables {
@@ -40,8 +39,7 @@ android {
40
39
buildConfigField( " String" , " API_KEY" , " \" " + apiKey + " \" " )
41
40
buildConfigField( " String" , " TEST_RUNNER_HOST" , " \" " + testRunnerHost+ " \" " )
42
41
buildConfigField( " String" , " TEST_RUNNER_PORT" , " \" " + testRunnerPort+ " \" " )
43
- buildConfigField( " String" , " EPPO_API_HOST" , " \" " + eppoAPIHost+ " \" " )
44
- buildConfigField( " String" , " EPPO_API_PORT" , " \" " + eppoAPIPort+ " \" " )
42
+ buildConfigField( " String" , " EPPO_BASE_URL" , " \" " + eppoBaseUrl+ " \" " )
45
43
}
46
44
47
45
buildTypes {
Original file line number Diff line number Diff line change @@ -54,9 +54,11 @@ class TestClientActivity : ComponentActivity() {
54
54
55
55
private fun assignmentLogger (assignment : Assignment ) {
56
56
val msg: String =
57
- ((assignment.experiment + " -> subject: " + assignment.subject) +
57
+ assignment.experiment +
58
+ " -> subject: " +
59
+ assignment.subject +
58
60
" assigned to " +
59
- assignment.experiment)
61
+ assignment.experiment
60
62
Log .d(TAG , msg)
61
63
appendAssignmentLog(msg)
62
64
}
@@ -181,7 +183,7 @@ class TestClientActivity : ComponentActivity() {
181
183
return EppoClient .Builder (API_KEY , application)
182
184
.forceReinitialize(true )
183
185
.ignoreCachedConfiguration(true )
184
- .host( EPPO_API_ADDRESS )
186
+ .apiUrl( BuildConfig . EPPO_BASE_URL )
185
187
.isGracefulMode(false ) // Debug: surface exceptions
186
188
.assignmentLogger(::assignmentLogger)
187
189
.buildAndInitAsync()
@@ -241,7 +243,6 @@ class TestClientActivity : ComponentActivity() {
241
243
private const val API_KEY = BuildConfig .API_KEY
242
244
private const val READY_PACKET =
243
245
" {\" sdkName\" :\" example\" , \" supportsBandits\" : false, \" sdkType\" :\" client\" }"
244
- private const val EPPO_API_ADDRESS = " ${BuildConfig .EPPO_API_HOST } :${BuildConfig .EPPO_API_PORT } "
245
246
}
246
247
}
247
248
Original file line number Diff line number Diff line change 1
1
[versions ]
2
2
agp = " 8.5.2"
3
- androidSdk = " 4.3 .0"
3
+ androidSdk = " 4.4 .0"
4
4
jacksonDatabind = " 2.18.0"
5
5
kotlin = " 1.9.0"
6
6
coreKtx = " 1.13.1"
You can’t perform that action at this time.
0 commit comments