diff --git a/app/build.gradle b/app/build.gradle index f717823..d6587dc 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 2712d80..dcb2b57 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 7709fdc..ceaabba 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