Skip to content

Commit e8b0598

Browse files
committed
Remove test env
1 parent b61d937 commit e8b0598

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

OpacityCore/src/main/jni/include/opacity.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ extern const int32_t OPACITY_NOT_SUPPORTED;
2626

2727
extern const int32_t OPACITY_INVALID_ENVIRONMENT;
2828

29-
extern const int32_t OPACITY_ENVIRONMENT_TEST;
30-
3129
extern const int32_t OPACITY_ENVIRONMENT_LOCAL;
3230

3331
extern const int32_t OPACITY_ENVIRONMENT_SANDBOX;

OpacityCore/src/main/kotlin/com/opacitylabs/opacitycore/OpacityCore.kt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ import kotlinx.serialization.json.jsonObject
1414
import org.mozilla.geckoview.GeckoRuntime
1515

1616
object OpacityCore {
17-
enum class Environment {
18-
TEST,
19-
LOCAL,
20-
SANDBOX,
21-
STAGING,
22-
PRODUCTION,
17+
enum class Environment(val code: Int) {
18+
LOCAL(1),
19+
SANDBOX(2),
20+
STAGING(3),
21+
PRODUCTION(4),
2322
}
2423

2524
private lateinit var appContext: Context
@@ -40,7 +39,7 @@ object OpacityCore {
4039
environment: Environment,
4140
showErrorsInWebView: Boolean
4241
): Int {
43-
return init(apiKey, dryRun, environment.ordinal, showErrorsInWebView)
42+
return init(apiKey, dryRun, environment.code, showErrorsInWebView)
4443
}
4544

4645
@JvmStatic

0 commit comments

Comments
 (0)