Skip to content

Commit

Permalink
Merge pull request #2730 from dimagi/dv/ccc_staging_flavor
Browse files Browse the repository at this point in the history
Added cccStaging build flavor
  • Loading branch information
shubham1g5 authored Nov 2, 2023
2 parents 93eb1e7 + 5215db2 commit 170f638
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down Expand Up @@ -333,6 +336,10 @@ android {
manifest.srcFile 'CommcareAndroidManifest.xml'
}

cccStaging {
manifest.srcFile 'CommcareAndroidManifest.xml'
}

standalone {
res.srcDirs = ['standalone/res']
assets.srcDirs = ['standalone/assets']
Expand Down Expand Up @@ -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 &
Expand Down

0 comments on commit 170f638

Please sign in to comment.