yo rn-toolbox:fastlane-setup
is a requirement
This will:
- upload your app to HockeyApp on every push to the
staging
branch - upload your app to TestFlight and optionally Android Beta on every push to the
master
branch
Run anywhere:
yo rn-toolbox:bitrise
This will generate bitrise/bitrise.yml
.
Commit and push this bitrise.yml file.
When asked Do you need to use an additional private repository?, select I need to.
Add the ssh key to a Github account that has access to both your project repository and your match certificates repository.
We recommend creating a bot/machine Github account for this. See here for more info on machine user.
- Select Other/Manual and choose a Xamarin XCode build.
- You need to provide the following secret variables in order for the build to run successfully
MATCH_PASSWORD
GRADLE_KEYSTORE_PASSWORD
(Found in the .env file)GRADLE_KEYSTORE_ALIAS_PASSWORD
(Found in the .env file)FL_HOCKEY_API_TOKEN
(Found in the .env file)
If you want to deploy to Android Beta:
- head over to the Google Play Developers Console
- go to Settings > API Access
If you already have a Services accounts
section with an e-mail and a link to see the authorizations,
skip to 9. Else:
- if needed, accept the terms and conditions
- if needed, click the
Create a project
button - under
Services accounts
, clickAuthorize access
- check :
- Visibility
- Edit store listing, pricing & distribution
- Manage Production APKs
- Manage Alpha & Beta APKs
- Manage Alpha & Beta users
- submit
- come back to Settings > API Access
- under
Services accounts
, clickShow in Google Developers Console
. - click
Create credentials
andService account key
. - select
Compute Engine default service account
and JSON - once you validate, your API key should be downloaded on your computer
Now that you have your API key:
- head over to Bitrise, edit your workflow, and go to the
Code signing & Files
section - at the bottom of the page, click
Add another File
- select
Generic file
- enter the unique id
GOOGLE_KEY
- upload the JSON key
- save the workflow
Sit back and relax, you can now enjoy your first deployment build!
This generator also contains a Test pipe but no trigger to run it. If you want you can add one but we strongly recommend using TravisCI instead to run your tests.