tree: 77911b813738e2263e6329154071359564faa198 [path history] [tgz]
  1. compose-template/
  2. java-template/
  3. kotlin-template/
  4. native-template/
  5. create_project.py
  6. create_project.sh
  7. README.md
  8. test_project_creator.py
development/project-creator/README.md

Project creator

This script will create a new library project and associated Gradle module using a groupId and artifactId.

It will use the groupId and artifactId to guess which configuration is most appropriate for the project you are creating.

Basic usage

./create_project.py androidx.foo foo-bar

Project types

The script leverages buildSrc/public/src/main/kotlin/androidx/build/LibraryType.kt to create the recommended defaults for your project. However, you can override the options to best fit your requirements.

Additional documentation

See go/androidx-api-guidelines#module-creation (internal-only) or the equivalent page on public Android Code Search for advanced usage and solutions to common issues.

Development

If you make any changes to the script, please update this README and make corresponding updates at go/androidx-api-guidelines#module-creation.

Testing the script

Generic project integration test

./create_project.py androidx.foo.bar bar-qux

Script test suite

./test_project_creator.py