A collection of our Android templates:
- Compose template: template-compose
- [Deprecated] XML template: template-xml
- Clone or download this repository to your local machine, then extract and open the folder
- Run
cd scripts
to get into the scripts directory - Run
kscript new_project.kts
to create a new project with the following arguments:
package-name= New package name (i.e., com.example.package)
app-name= New app name (i.e., MyApp, "My App", "my-app")
template= Template (i.e., compose) (optional, default: compose)
force= Force project creation even if the script fails (default: false)
destination= Set the output location where the project should be generated (i.e., /Users/johndoe/documents/projectfolder)
Examples:
kscript new_project.kts package-name=co.mycomposeproject.example app-name="My Compose Project"
kscript scripts/new_project.kts package-name=co.mycomposeproject.example app-name="My Compose Project" template=compose
kscript new_project.kts package-name=co.mycomposeproject.example app-name="My Compose Project" template=compose destination=/Users/johndoe/documents/projectfolder
- Update
android_version_code
andandroid_version_name
intemplate/build.gradle
Learn more about our Android templates on the Wiki.
This project is Copyright (c) 2014 and onwards Nimble. It is free software and may be redistributed under the terms specified in the LICENSE file.
This project is maintained and funded by Nimble.
We ❤️ open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.
Want to join? Check out our Jobs!