A collection of our Android templates:
- XML template: template-xml
- Compose template: template-compose
- 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., xml, 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.myxmlproject.example app-name="My XML Project" template=xml
kscript scripts/new_project.kts package-name=co.myxmlproject.example app-name="My XML Project" template=xml
kscript new_project.kts package-name=co.myxmlproject.example app-name="My XML Project" template=xml 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!