Skip to content
Snippets Groups Projects
Unverified Commit 0629e45f authored by Jakob Möller's avatar Jakob Möller Committed by GitHub
Browse files

hard code prod urls (#310)


Signed-off-by: default avatard067928 <jakob.moeller@sap.com>
parent e5483adc
No related branches found
No related tags found
No related merge requests found
......@@ -41,28 +41,6 @@ android {
buildConfigField "String", "VERIFICATION_CDN_URL", "\"$VERIFICATION_CDN_URL\""
buildConfigField "String", "EXPORT_SIGNATURE_ID", "\"de.rki.coronawarnapp\""
//override URLs with local variables
Properties properties = new Properties()
def propertiesFile = project.rootProject.file('local.properties')
if (propertiesFile.exists()) {
properties.load(propertiesFile.newDataInputStream())
def secretFile = project.rootProject.file('secrets.properties')
if (secretFile.exists())
properties.load(secretFile.newDataInputStream())
def DOWNLOAD_CDN_URL = properties.getProperty('DOWNLOAD_CDN_URL')
if (DOWNLOAD_CDN_URL)
buildConfigField "String", "DOWNLOAD_CDN_URL", "\"$DOWNLOAD_CDN_URL\""
def SUBMISSION_CDN_URL = properties.getProperty('SUBMISSION_CDN_URL')
if (SUBMISSION_CDN_URL)
buildConfigField "String", "SUBMISSION_CDN_URL", "\"$SUBMISSION_CDN_URL\""
def VERIFICATION_CDN_URL = properties.getProperty('VERIFICATION_CDN_URL')
if (VERIFICATION_CDN_URL)
buildConfigField "String", "VERIFICATION_CDN_URL", "\"$VERIFICATION_CDN_URL\""
}
javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
......
......@@ -18,7 +18,6 @@ android.useAndroidX=true
org.gradle.parallel=true
org.gradle.dependency.verification.console=verbose
# Variables for Server URLs. The variables in local.properties will override these
SUBMISSION_CDN_URL=
DOWNLOAD_CDN_URL=
VERIFICATION_CDN_URL=
TRUSTED_CERTS_EXPORT_KEYSTORE_PW=
\ No newline at end of file
SUBMISSION_CDN_URL=https://submission-cff4f7147260.coronawarn.app
DOWNLOAD_CDN_URL=https://svc90.main.px.t-online.de
VERIFICATION_CDN_URL=https://verification-ae90d11f.coronawarn.app
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment