A good starting point for future Android apps!
Have bitrise, gh, python and homebrew installed on your mac.
For installing homebrew (remember to have xcode installed):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
For installing the latest python 3:
brew install python3
Needed for creating a Bitrise app project
brew install bitrise
Needed for creating a new private repo for adaptdk organization
brew install gh
If you dont wan't to manually copy the git url and then type two commands, then just run this in your terminal. It will clone the seed project and change directory into the project and run the `setup? python script.
git clone [email protected]:adaptdk/adaptmobile-android-seed.git && cd adaptmobile-android-seed && python3 setup.py
Run the python script setup.py
and follow the steps for setting up the project.
python3 setup.py
At the root of the project run this command:
brew list ktlint | brew upgrade ktlint || brew install ktlint && curl -s -L "https://raw.githubusercontent.com/adaptdk/am-ktlint-pre-commit/master/pre-commit" > ../.git/hooks/pre-commit && chmod 755 ../.git/hooks/pre-commit && curl -s -L "https://raw.githubusercontent.com/adaptdk/am-ktlint-editorconfig/master/.editorconfig" > .editorconfig
This will add a pre-commit executable and a .editorconfig for the teams personalized rules.
If .editorconfig
needs to have rules changed the please change it in am-ktlint-editorconfig to have the rules implemented in existing projects that has the pre-commit.
This will have the code style streamlined in our kotlin projects.