On Android File > New > New Module > then Create a Module or Import a Module
That will help to work on the same repo having different android projects that's how this open source does it https://github.com/braintree/braintree_android
Ref: https://stackoverflow.com/a/73139264/4752488
Let's say you want to create a new module 'myfeature' and place it inside the 'features' folder:
- File -> New -> New Module
- In the Templates pane choose Android Library
- In the Module Name write ':features:myfeature'
- modify the rest of the fields to suit your needs
- Click on Finish
Now if you didn't have a 'features' folder it will be automatically created and a new module named 'myfeature' will be placed inside it. Otherwise the new module will appear inside the existing 'features' module.
Ref: https://stackoverflow.com/a/77579249/4752488
Tip: Add kt file header.
Example of code: https://github.com/skydoves/android-developer-roadmap/blob/main/build.gradle#L17