Use this template project to improve your project setup experience.
- recommended package structure
- multi module
- latest libraries (AndroidX, Retrofit, Moshi, A3 libraries, Timber, LeakCanary)
- flavor dimension for development environments (
dev
,staging
,live
) - Retrofit + Moshi setup
- Firebase Analytics and Messaging setup
- Splash screen setup: https://developer.android.com/guide/topics/ui/splash-screen
- Google Play services Open Source Notices activity
- (optional) Texterify setup
- ktlint integration via ktlint-gradle-plugin
Install Cookiecutter and run the following command to fetch and use this template:
cookiecutter gh:allaboutapps/A3AndroidTemplate
Supply the following values when prompted:
repo_name
- Directory name where to create the new project (e.g.:myproject-android
)app_name
- App name (pretty/display name)package_name
- App package name (e.g.:com.example.app
)package_name_dir
- Directory of the app package, relative to theapp/src/main/java
directory. (used to generate the correct directory structure)
Default value is the same aspackage_name
, with dots/periods replaced with slashes.string_tool
- The string-export tool for this project (none
ortexterify
)texterify_project_id
- ID of your Texterify project (default is empty)texterify_export_config
- Export Configuration ID of your Texterify project (default is empty)firebase_analytics
- Whether or not to setup Firebase Analytics (default:no
)firebase_messaging
- Whether or not to add basic setup for FCM (default:no
)
To fetch the latest strings from the configured Texterify project, run the gradle task updateStrings
.
The config file texterify.json
is located in the app
directory.
To show the Google Play services' Open Source Notices activity just add the following code:
startActivity(Intent(this, OssLicensesMenuActivity::class.java))
More details can be found in the Google Play services documentation.
Du suchst einen spannenden Job im Mobile Bereich? Looking for a job?