Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
replacing hardcoded strings with system environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
langsmith committed Jun 5, 2019
1 parent e4cdde7 commit 214f1d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MapboxAndroidDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ android {
productFlavors {
global {
isGlobal = true
buildConfigField 'String', "firebase_app_id", FIREBASE_API_ID
buildConfigField 'String', "firebase_api_key", FIREBASE_API_KEY
resValue "string", "firebase_app_id", System.getenv('FIREBASE_APP_ID') ? System.getenv('FIREBASE_APP_ID') : "blank_place_holder_string"
resValue "string", "firebase_api_key", System.getenv('FIREBASE_API_KEY') ? System.getenv('FIREBASE_API_KEY') : "blank_place_holder_string"
}

china {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public void onCreate() {
Mapbox.getInstance(this, getString(R.string.access_token));
Mapbox.getTelemetry().setDebugLoggingEnabled(true);
setUpTileLoadingMeasurement();

}

private void initializeFirebaseApp() {
Expand Down

0 comments on commit 214f1d1

Please sign in to comment.