Git Product home page Git Product logo

fastlane-plugin-code_push's Introduction

CodePush Fastlane Plugin

fastlane Plugin Badge

Getting Started

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

Dependencies

CodePush CLI : http://microsoft.github.io/code-push/

About plugin

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....

Login action

https://github.com/Microsoft/code-push/blob/master/cli/README.md#access-keys

code_push_login(access_key: YOURSECRETACCESSKEY)

Options:

Key Description Env Var Default
access_key Access Key for CodePush Login CODE_PUSH_ACCESS_KEY
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

Promote action

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_CODE_PUSH_APP_NAME
from sourceDeploymentName Staging
to destDeploymentName Production
dry_run Print the command that would be run, and don't run it false

Release React action

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_CODE_PUSH_APP_NAME
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
dry_run Print the command that would be run, and don't run it false

Example

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.

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.

fastlane-plugin-code_push's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.