Geo Marker App with Compose and Using Google Maps API.
- Kotlin Google officially supports Kotlin on Android as a “first-class” language
- Jetpack Compose Android’s modern toolkit for building native UI
- MVVM Modern, maintainable, and Google suggested app architecture
- Coroutines and Work Manager Asynchronous or non-blocking programming is better with coroutines
- Retrofit Pulling data from API
- Jetpack Components ViewModel, LiveData, DataBinding and more
- Testing ViewModel, LiveData, DataBinding and more component are testing for best result of app
- Google Maps API Create real-world, real-time experiences with the latest Maps, Routes, and Places features from Google Maps Platform. Built by the Google team for developers everywhere.
- Not XML anymore
- Modern architecture with modern libraries
- Readable and scalable codebase
- Responsive layout design, vertical and horizontal usage
- Good state handling
- Easy Test Implementation
- Easy Google Maps API Implementation with Google Maps API
- Setting up the dependencies:
- implementation 'com.google.maps.android:maps-compose:2.4.0'
- implementation 'com.google.android.gms:play-services-maps:18.1.0'
- implementation 'com.google.android.gms:play-services-location:20.0.0'
The first is the Maps Compose library, and the other two are the Play Services maps SDK and location SDKs. Note that these dependencies already exist in the starter project, so there’s no need to re-add them.
- You need a Google Maps API key for you to be able to use any of Google Maps APIs. You can find instructions on how to get your key here. Once you have your key, proceed to add it to your local.properties file as follows:
- MAPS_API_KEY=YOUR_API_KEY