A sample app illustrating Android development best practices with Android Jetpack.
A sample app illustrating Android development best practices with Android Jetpack.
This project uses the Gradle build system. To build this project, use thegradlew build
command or use “Import Project” in Android Studio.
There are Gradle tasks for testing the project:
test
- for running unit testsFor development, the latest version of Android Studio 3.4 is required. The latest version can be
downloaded from here.
Car Explorer uses ktlint to enforce Kotlin coding styles.
Here’s how to configure it for use with Android Studio (instructions adapted
from the ktlint README):
Close Android Studio if it’s open
Download ktlint using these installation instructions
Inside the project root directory run:
./ktlint --apply-to-idea-project --android
Start Android Studio
You need to supply API / client keys for the various services the
app uses. That is currently Google Maps Api Key. You can find information about
how to gain access via the relevant links.
When you obtain the keys, you can provide them to the app by putting the following in thegradle.properties
file in your user home:
Get this from Google Cloud Console
car_explorer_google_maps_api_key=<insert>
On Linux/Mac that file is typically found at ~/.gradle/gradle.properties
or in the project directory car-explorer/gradle.properties