IcefireEnvironment.kt 3.61 KB
Newer Older
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
5
import org.dpppt.android.app.domain.entity.GracePeriodConfiguration
6
import org.dpppt.android.app.domain.entity.LocalizedUrl
7
8
import org.dpppt.android.sdk.internal.logger.LogLevel

9
object IcefireEnvironment : Environment {
10
11
    // SDK values
    /* ktlint-disable max-line-length */
12
    override val gracePeriodConfigOverride: GracePeriodConfiguration = GracePeriodConfiguration(syncErrorGracePeriodMillis = 10L, errorNotificationGracePeriodMillis = 0L)
13
    /* ktlint-disable max-line-length */
14
    override val bucketPublicKeyBase64: String = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0NCk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRW81cm1KaWs3NGJzQlR3bEliVjZBSEp4cmtlZkYNClVNb1RJZ1NaNGxocGpyMkdNd1pKaFBLWnI2U2VkRDU1UWJzOGZROW9qaWtNTDYwa0I3Q240UFhJbVE9PQ0KLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tDQo="
Harri Kirik's avatar
Harri Kirik committed
15
16
    override val sdkReportUrl: String = "https://dp3t-auth-dev.icefire-lab.eu/"
    override val sdkBucketUrl: String = "https://dp3t-auth-dev.icefire-lab.eu/"
17
18
    @Suppress("ConstantConditionIf")
    override val sdkLogLevel: LogLevel = if (BuildConfig.DEBUG) {
19
        LogLevel.DEBUG
20
21
22
    } else {
        LogLevel.OFF
    }
23
24

    // Application values
25
    override val patientPortalBaseUrl: String = "https://portal-emulator-dev.icefire-lab.eu?"
26
    override val patientPortalCallbackBaseUrl: String = "https://app-emulator-dev.icefire-lab.eu/callback"
27
    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"
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"
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"
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"
    )
57
    override val appLogEnabled: Boolean = BuildConfig.DEBUG
Michelle Mueller's avatar
Michelle Mueller committed
58
    override val crashAppOnUndeliverableException: Boolean = BuildConfig.DEBUG
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
63
}