/fastlane-plugin-pgyer

Distribute app to pgyer beta testing service with fastlane!

Primary LanguageRubyMIT LicenseMIT

pgyer plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-pgyer, add it to your project by running:

fastlane add_plugin pgyer

About pgyer

This pluginin allow you distribute app automatically to pgyer beta testing service in fastlane workflow.

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.

Just specify the api_key and user_key associated with your pgyer account.

lane :beta do
  gym
  pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141", user_key: "4a5bcxxxxxxxxxxxxxxx3a9e")
end

You can also set a password to protect the App from being downloaded publicly:

lane :beta do
  gym
  pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141", user_key: "4a5bcxxxxxxxxxxxxxxx3a9e", password: "123456", install_type: "2")
end

Set a version update description for App:

lane :beta do
  gym
  pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141", user_key: "4a5bcxxxxxxxxxxxxxxx3a9e", update_description: "update by fastlane")
end

Get shared values after upload:

page_url = Actions.lane_context[SharedValues::PGYER_PAGE_URL] #App下载页面地址
appName =  Actions.lane_context[SharedValues::PGYER_APP_NAME] #App名称
version = Actions.lane_context[SharedValues::PGYER_APP_VERSION] #App版本号
buildNumber = Actions.lane_context[SharedValues::PGYER_APP_BUILD] #App编译号
appId = Actions.lane_context[SharedValues::PGYER_APP_ID] #App bundle ID

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.