From e77a9e027989e9e12724333dc5a15d322c486e55 Mon Sep 17 00:00:00 2001 From: Angela Yu <5506675+wangela@users.noreply.github.com> Date: Fri, 27 Oct 2023 15:51:18 -0700 Subject: [PATCH] chore: clarify dependencies and migrate all secrets filenames --- app/build.gradle | 4 +++- app/src/main/AndroidManifest.xml | 2 +- .../java/com/google/maps/android/ktx/demo/MainActivity.kt | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f7178231..d6587dcf 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -55,7 +55,9 @@ dependencies { implementation deps.androidx.appcompat implementation deps.androidx.coreKtx implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2' - implementation 'com.google.android.gms:play-services-maps:18.2.0' + + // Instead of the lines below, regular apps would load these libraries from Maven according to + // the README installation instructions implementation project(':maps-ktx') implementation project(':maps-utils-ktx') } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 2712d803..dcb2b57b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -20,7 +20,7 @@ diff --git a/app/src/main/java/com/google/maps/android/ktx/demo/MainActivity.kt b/app/src/main/java/com/google/maps/android/ktx/demo/MainActivity.kt index 7709fdc1..ceaabba9 100644 --- a/app/src/main/java/com/google/maps/android/ktx/demo/MainActivity.kt +++ b/app/src/main/java/com/google/maps/android/ktx/demo/MainActivity.kt @@ -51,7 +51,7 @@ import org.json.JSONException * A demo of multiple layers on the map. * * To add your Maps API key to this project: - * 1. Create a file ./secure.properties + * 1. Create a file ./secrets.properties * 2. Add this line, where YOUR_API_KEY is your API key: * MAPS_API_KEY=YOUR_API_KEY */ @@ -67,7 +67,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) if (BuildConfig.MAPS_API_KEY.isEmpty()) { - Toast.makeText(this, "Add your own API key in ./secure.properties as MAPS_API_KEY=YOUR_API_KEY", Toast.LENGTH_LONG).show() + Toast.makeText(this, "Add your own API key in ./secrets.properties as MAPS_API_KEY=YOUR_API_KEY", Toast.LENGTH_LONG).show() } val mapFragment = supportFragmentManager.findFragmentById(R.id.map) as SupportMapFragment