-
Notifications
You must be signed in to change notification settings - Fork 3
Contributing
In order to build the library, you need to provide a Github personal access token with the following scope:
reporead:packagesread:orgread:discussion
You can create a new token on GitHub
You must set the following environment variables:
-
GITHUB_USER_NAME- your GitHub user name -
GITHUB_TOKEN- this is the value of your GitHub personal access token
Add the following line to ~/.bash_profile:
export GITHUB_USER_NAME="insert_user_name_here"
export GITHUB_TOKEN="insert_token_here"
Where:
-
insert_user_name_hereis replaced with your GitHub user name -
insert_token_hereis replaced with your GitHub personal access token
Then run source ~/.bash_profile and restart Android Studio.
Add the following line to ~/.zshrc:
export GITHUB_USER_NAME="insert_user_name_here"
export GITHUB_TOKEN="insert_token_here"
Where:
-
insert_user_name_hereis replaced with your GitHub user name -
insert_token_hereis replaced with your GitHub personal access token
Then run source ~/.zshrc to reload the file.
You can also set the GITHUB_USER_NAME and GITHUB_TOKEN environment variables by adding a .env file to the fastlane folder.
fastlane/.env is ignored in the .gitignore to allow this option.
More details can be found in the fastlane docs.
Documentation can be found here
You can add the following lines to fastlane/Fastfile:
GITHUB_USER_NAME="insert_user_name_here"
GITHUB_TOKEN="insert_token_here"
Where:
-
insert_user_name_hereis replaced with your GitHub user name -
insert_token_hereis replaced with your GitHub personal access token
This method is not recommended because the fastlane lane requires git to have no unstaged changes. Doing this will create unstaged changes, breaking the fastlane lane when it runs!