APT - Android Project Template
Use this template project to improve the project setup experience.
Template contains:
-
recommended package structure
-
latest libraries
- androidx
- glide
- retrofit
- moshi
- architecture components
- a3 libraries
- timber
-
flavor for
dev,staging,live -
retrofit setup
-
firebase analytics and messaging setup
-
SplashScreen helper -> https://blog.davidmedenjak.com/android/2017/09/02/splash-screens.html
-
Code to show Open Source Licenses as standalone activity or dialog
Setup
Install cookiecutter
http://cookiecutter.readthedocs.io/en/latest/installation.html
Setup a new project
cookiecutter gh:allaboutapps/A3AndroidTemplate
Fill in the following values:
- repo_name - name of cloned directory (eg mycards-android)
- app_name - app name
- package_name - "com.example.app",
- firebase_analytics - Setup firebase analytics
- firebase_messaging - Basic setup for FCM
- strings_sheet_id - Sheet ID for strings (eg 1234565432345) (AAA internal tool for translations - just leave it empty if you don't know what this is)
Open Source Licenses
The oss_licenses module is setup to generate a html file containing licenses of all dependencies. Just run the gradle task checkLicense to generate everything (Bitrise Step preferred)
The file allowed_licenses.json contains license descriptions that are allowed to be used in our apps. If you find a valid license that is not supported feel free to start a pull request.
Shoing an open source dialog or activity is easy as that:
val licenseScreenSettings = LicenseScreenSettings(title = "License Screen", showUpArrow = true)
// open an activity
OssLicenseActivity.showLicenses(this, licenseScreenSettings)
// or open a DialogFragment
OssLicenseDialogFragment.showLicenseDialog(supportFragmentManager, licenseScreenSettings)Du suchst einen spannenden Job im Mobile Bereich? Looking for a job mobile developer?
