From 5215db2f436772d7a22610b53d14eae41c1db0a8 Mon Sep 17 00:00:00 2001 From: Dave Viggiano Date: Wed, 1 Nov 2023 13:36:36 -0400 Subject: [PATCH] Added cccStaging build flavor to support Connect production and staging versions. --- app/build.gradle | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 4f1623ade6..5e119e9b23 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -275,6 +275,9 @@ android { buildConfigField "String", "HQ_API_USERNAME", "\"${project.ext.HQ_API_USERNAME}\"" buildConfigField "String", "HQ_API_PASSWORD", "\"${project.ext.HQ_API_PASSWORD}\"" buildConfigField "String", "FIREBASE_DATABASE_URL", "\"${project.ext.FIREBASE_DATABASE_URL}\"" + + buildConfigField "String", "CCC_HOST", "\"connect.dimagi.com\"" + testInstrumentationRunner "org.commcare.CommCareJUnitRunner" } @@ -333,6 +336,10 @@ android { manifest.srcFile 'CommcareAndroidManifest.xml' } + cccStaging { + manifest.srcFile 'CommcareAndroidManifest.xml' + } + standalone { res.srcDirs = ['standalone/res'] assets.srcDirs = ['standalone/assets'] @@ -383,6 +390,15 @@ android { resValue "string", "application_name", applicationName } + + cccStaging { + buildConfigField "String", "CCC_HOST", "\"connect-staging.dimagi.com\"" + + // set the app name + def applicationName = "CommCare (CCC Staging)" + resValue "string", "application_name", applicationName + } + standalone { // Builds commcare w/ ccz app packaged in the apk. // Must be invoked from command-line w/ args pointing to app domain &