This project is a fastlane plugin. To get started with fastlane-plugin-code_push
, add it to your project by running:
fastlane add_plugin code_push
CodePush CLI : http://microsoft.github.io/code-push/
Includes "some" CodePush functionalities for local use and build server: The functionallity is currently limited to the options described below. The plugin got created out of a specific business need. So if you'd like to have more freedom to specify things like parameters by your needs, create a pull request or ask for it....
https://github.com/Microsoft/code-push/blob/master/cli/README.md#access-keys
code_push_login(token: YOURSECRETACCESSKEY)
Options:
Key | Description | Env Var | Default |
---|---|---|---|
token | Access Key for CodePush Login | APP_CENTER_ACCESS_TOKEN | |
enforce | Enforce logout before login | false |
"enforce" is usefull if you want to be assure that actions are done by a specfic "user" and not by the may current logged in user. Like in the context of a automatic build process
https://github.com/Microsoft/code-push/blob/master/cli/README.md#promoting-updates
code_push_promote(app_name: YOURCODEPUSHAPPNAME)
Options:
Key | Description | Env Var | Default |
---|---|---|---|
app_name | CodePush app name for promoting to | FASTLANE_APPCENTER_APP_NAME | |
from | sourceDeploymentName | Staging | |
to | destDeploymentName | Production | |
dry_run | Print the command that would be run, and don't run it | false |
https://github.com/Microsoft/code-push/blob/master/cli/README.md#releasing-updates-cordova
code_push_release_cordova(
app_name: "YOURAPPNAME",
target_binary_version: "1.0.5"
)
Key | Description | Env Var | Default |
---|---|---|---|
app_name | CodePush app name for releasing | FASTLANE_APPCENTER_APP_NAME | |
execution_dir_path | Release React CLI command execution dir path. Set to project root when you execute fastlane in a diffrent dir than package.json stays | ./ | |
platform | Platform for releasing to | android | |
deployment | Deployment name for releasing to | Staging | |
target_binary_version | Target binary version for example 1.0.1 | ||
mandatory | manadtory update or not | true | |
description | Release description for CodePush | no description for release | |
no_duplicate_release_error | Specifies whether to return an error if the main bundle is identical to the latest codepush release | false | |
dry_run | Print the command that would be run, but don't run it | false |
https://github.com/Microsoft/code-push/blob/master/cli/README.md#releasing-updates-react-native
code_push_release_react(
app_name: "YOURAPPNAME",
target_binary_version: "1.0.5"
)
Key | Description | Env Var | Default |
---|---|---|---|
app_name | CodePush app name for releasing | FASTLANE_APPCENTER_APP_NAME | |
execution_dir_path | Release React CLI command execution dir path. Set to project root when you execute fastlane in a diffrent dir than package.json stays | ./ | |
deployment | Deployment name for releasing to | Staging | |
target_binary_version | Target binary version for example 1.0.1 | ||
mandatory | manadtory update or not | true | |
description | Release description for CodePush | no description for release | |
disabled | Specifies whether this release should be immediately downloadable [boolean] [Standard: false] | false | |
no_duplicate_release_error | Specifies whether to return an error if the main bundle is identical to the latest codepush release | false | |
dry_run | Print the command that would be run, but don't run it | false |
Check out the example Fastfile
to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins
and bundle exec fastlane test
.
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
For more information about how the fastlane
plugin system works, check out the Plugins documentation.
fastlane
is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.