TehiktestEnvironment.kt 3.64 KB
Newer Older
Harri Kirik's avatar
Harri Kirik committed
1
2
package org.dpppt.android.app

3
4
import org.dpppt.android.app.domain.entity.FederationGatewayUsageForDP3TBackend
import org.dpppt.android.app.domain.entity.FederationGatewayUsageForPatientPortal
Harri Kirik's avatar
Harri Kirik committed
5
6
7
8
9
10
11
import org.dpppt.android.app.domain.entity.GracePeriodConfiguration
import org.dpppt.android.app.domain.entity.LocalizedUrl
import org.dpppt.android.sdk.internal.logger.LogLevel

object TehiktestEnvironment : Environment {
    // SDK values
    /* ktlint-disable max-line-length */
12
    override val gracePeriodConfigOverride: GracePeriodConfiguration = GracePeriodConfiguration(syncErrorGracePeriodMillis = 10000L, errorNotificationGracePeriodMillis = 10000L)
Harri Kirik's avatar
Harri Kirik committed
13
14
15
16
17
18
19
20
21
22
23
24
    /* ktlint-disable max-line-length */
    override val bucketPublicKeyBase64: String = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0NCk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRW81cm1KaWs3NGJzQlR3bEliVjZBSEp4cmtlZkYNClVNb1RJZ1NaNGxocGpyMkdNd1pKaFBLWnI2U2VkRDU1UWJzOGZROW9qaWtNTDYwa0I3Q240UFhJbVE9PQ0KLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tDQo="
    override val sdkReportUrl: String = "https://covapp.test.tehik.ee/authorization/"
    override val sdkBucketUrl: String = "https://covapp.test.tehik.ee/authorization/"
    @Suppress("ConstantConditionIf")
    override val sdkLogLevel: LogLevel = if (BuildConfig.DEBUG) {
        LogLevel.DEBUG
    } else {
        LogLevel.OFF
    }

    // Application values
Harri Kirik's avatar
Harri Kirik committed
25
    override val patientPortalBaseUrl: String = "https://pp-m.test.digilugu.ee/hoiaLogin?redirectTo=HOIA&"
Harri Kirik's avatar
Harri Kirik committed
26
27
    override val patientPortalCallbackBaseUrl: String = "https://pp-m.test.digilugu.ee/hoia/callback"
    override val infoPageUrl: LocalizedUrl = LocalizedUrl(
Harri Kirik's avatar
Harri Kirik committed
28
29
30
        et = "https://www.hoia.me?source=app",
        en = "https://www.hoia.me/en?source=app",
        ru = "https://www.hoia.me/ru?source=app"
Harri Kirik's avatar
Harri Kirik committed
31
32
    )
    override val contactInfoPageUrl: LocalizedUrl = LocalizedUrl(
33
34
35
        et = "ttps://www.hoia.me/close-contact?source=app",
        en = "https://www.hoia.me/en/close-contact?source=app",
        ru = "https://www.hoia.me/ru/close-contact?source=app"
Harri Kirik's avatar
Harri Kirik committed
36
37
    )
    override val privacyPolicyUrl: LocalizedUrl = LocalizedUrl(
38
39
40
        et = "https://www.hoia.me/privacy?source=app",
        en = "https://www.hoia.me/en/privacy?source=app",
        ru = "https://www.hoia.me/ru/privacy?source=app"
Harri Kirik's avatar
Harri Kirik committed
41
42
43
44
45
46
    )
    override val covidInstructionsUrl: LocalizedUrl = LocalizedUrl(
        et = "https://www.terviseamet.ee/et/patsiendi-koduse-ravi-juhend-covid-19-korral",
        en = "https://www.terviseamet.ee/en/home-treatment-patients-covid-19",
        ru = "https://www.terviseamet.ee/ru/instrukciya-po-lecheniyu-na-domu-pacienta-s-covid-19"
    )
Michelle Mueller's avatar
Michelle Mueller committed
47
    override val healthBoardRecommendationsUrl: LocalizedUrl = LocalizedUrl(
48
        et = "https://www.terviseamet.ee/et/lahikontaktse-juhis",
Michelle Mueller's avatar
Michelle Mueller committed
49
50
        en = "https://www.terviseamet.ee/et/lahikontaktse-juhis#ENG",
        ru = "https://www.terviseamet.ee/et/lahikontaktse-juhis#RUS"
51
    )
52
53
54
55
56
    override val gotSickAbroadUrl: LocalizedUrl = LocalizedUrl(
        et = "https://www.hoia.me/hoia-euroopas?source=app",
        en = "https://www.hoia.me/en/hoia-in-europe?source=app",
        ru = "https://hoia.me/ru/hoia-v-yevrope?source=app"
    )
Harri Kirik's avatar
Harri Kirik committed
57
    override val appLogEnabled: Boolean = BuildConfig.DEBUG
Michelle Mueller's avatar
Michelle Mueller committed
58
    override val crashAppOnUndeliverableException: Boolean = BuildConfig.DEBUG
Harri Kirik's avatar
Harri Kirik committed
59
    override val showLongVersionInfo: Boolean = true
60
    override val allowInfectionConfirmationStartWithoutGAEN: Boolean = BuildConfig.DEBUG
61
62
    override val federationGatewayUsageForDP3TBackend: FederationGatewayUsageForDP3TBackend = FederationGatewayUsageForDP3TBackend.Enabled
    override val federationGatewayUsageForPatientPortal: FederationGatewayUsageForPatientPortal = FederationGatewayUsageForPatientPortal.Enabled
Harri Kirik's avatar
Harri Kirik committed
63
}