Set self signed CA via environment variables

build.gradle now checks for $DRC_ROOT_CA_CERT to decide if the app
should use a self-signed CA. The configuration for the token issuer is
also set via envvars now.

Bug: 173732354
Bug: 173732514
Test: Place google-services.json in app/
Test: Set $DRC_API_HOSTNAME and $DRC_API_NAME
Test: Set $DRC_ROOT_CA_CERT
Test: Get test credentials from valentine/#/show/1611079519238994
Test: Set $DRC_TEST_EMAIL and $DRC_TEST_PASSWORD
Test: ./gradlew assembleDebug
Test: ./gradlew connectedAndroidTest
Test: ./gradlew createDebugCoverageReport
Change-Id: Ifbabe8f9c9608d634d40bb201a918a543ce891f9
1 file changed