Skip to content

Commit

Permalink
chore: clarify dependencies and migrate all secrets filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
wangela committed Oct 27, 2023
1 parent 793f365 commit e77a9e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<!--
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
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
Expand Down

0 comments on commit e77a9e0

Please sign in to comment.