-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update readme #65
Merged
Merged
Update readme #65
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Contributing | ||
|
||
## Table of Contents | ||
|
||
- [Table of Contents](#table-of-contents) | ||
- [Setup](#setup) | ||
- [Pre-requirements](#pre-requirements) | ||
- [Install Node](#install-node) | ||
- [Install Ruby Dependencies](#install-ruby-dependencies) | ||
- [Install JS Dependencies](#install-js-dependencies) | ||
- [Install Ktlint to IDE](#install-ktlint-to-ide) | ||
- [Running the project](#running-the-project) | ||
|
||
## Setup | ||
|
||
### Pre-requirements | ||
|
||
For the javascript runtime, we recommend [Node.js](https://nodejs.org/en/). | ||
|
||
We **strongly** suggest you to use [NVM \(Node Version Manager\)](https://github.com/nvm-sh/nvm) and also doing [this configuration](https://github.com/nvm-sh/nvm#deeper-shell-integration). | ||
|
||
We **strongly** suggest you to use [rbenv (Managing Ruby environment)](https://github.com/rbenv/rbenv). | ||
|
||
To ensure compatibility with [Android Gradle plugin](https://developer.android.com/studio/releases#android_gradle_plugin_and_android_studio_compatibility), it is mandatory to use Android Studio Flamingo or any subsequent version. | ||
|
||
We use yarn for dependency management, install instructions are available at https://classic.yarnpkg.com/lang/en/. | ||
|
||
### Install Node | ||
|
||
```console | ||
$ nvm install | ||
$ nvm use | ||
``` | ||
|
||
Every time you use the repo you will need to use `nvm use` in your terminal to commit | ||
|
||
### Install Ruby Dependencies | ||
|
||
```console | ||
$ rbenv install | ||
$ bundle install | ||
``` | ||
|
||
This will install Ruby and fastlane, used for linting the project. | ||
|
||
### Install JS Dependencies | ||
|
||
```console | ||
$ yarn install | ||
``` | ||
|
||
This will install husky pre-commit, pre-push and msg-commit hooks. | ||
|
||
### Install Ktlint to IDE | ||
Make sure to open this project with Android Studio at least once before proceeding with ktlint instalation. That guarantees some hidden files/folders (like `.idea`) exist and can be configured by the following command. Navigate to the project’s directory in the terminal and execute: | ||
```console | ||
ktlint applyToIDEAProject | ||
``` | ||
|
||
This will change Android Studio's code format configurations. The next time you apply an automatic code formatting on a kotlin file, it will use our new set of rules defined by ktlint. | ||
|
||
**Pro Tip:** use a hotkey to make Android Studio format your file for you. You can choose your hotkey on `File > Settings > Keymap > Main Menu > Code > Reformat Code & Reformat File` | ||
|
||
## Running the project | ||
|
||
To run the project, open it in the IDE, Android Studio, and execute it. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😮