项目作者: icyleaf

项目描述 :
Package unsign apk with channels and sign it
高级语言: Ruby
项目地址: git://github.com/icyleaf/fastlane-plugin-android_channels.git
创建时间: 2018-10-25T07:37:17Z
项目社区:https://github.com/icyleaf/fastlane-plugin-android_channels

开源协议:MIT License

下载


android_channels plugin

fastlane Plugin Badge

Getting Started

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

  1. fastlane add_plugin android_channels

About android_channels

Package unsign apk with channels and write empty file to META-INF with channel in general way

Configuration

  1. +-------------------------+-------------------------------------------------+------------------------------------------+-------------------------------------------------+
  2. | android_channels Options |
  3. +-------------------------+-------------------------------------------------+------------------------------------------+-------------------------------------------------+
  4. | Key | Description | Env Var | Default |
  5. +-------------------------+-------------------------------------------------+------------------------------------------+-------------------------------------------------+
  6. | apk_file | The path of apk file | ANDROID_CHANNELS_APK_FILE | builds/output/apk/app-unsigned.apk |
  7. | channels | The key password of keystore | ANDROID_CHANNELS_CHANNELS | [] |
  8. | channel_file | The path of channel file, accepts json, yaml | ANDROID_CHANNELS_CHANNEL_FILE | |
  9. | | and plain text file (split with space, comma | | |
  10. | | and newline) | | |
  11. | channel_filename_prefix | The prefix of empty channel file to write to | ANDROID_CHANNELS_CHANNEL_FILENAME_PREFIX | |
  12. | | METE-INF folder | | |
  13. | channel_filename_suffix | The suffix of empty channel file to write to | ANDROID_CHANNELS_CHANNEL_FILENAME_SUFFIX | |
  14. | | METE-INF folder | | |
  15. | output_path | The output path of channel apk files | ANDROID_CHANNELS_OUTPUT_PATH | channel_apks |
  16. | android_sdk_path | The path of android sdk | ANDROID_CHANNELS_ANDROID_SDK_PATH | /usr/local/share/android-sdk |
  17. | build_tools_version | The version of build tools (by default, always | ANDROID_CHANNELS_BUILD_TOOLS_VERSION | |
  18. | | use latest version) | | |
  19. | keystore | The path of keystore file | ANDROID_CHANNELS_KEYSTORE | release.keystore |
  20. | keystore_password | The password of keystore | ANDROID_CHANNELS_KEYSTORE_PASSWORD | |
  21. | key_alias | The key alias of keystore | ANDROID_CHANNELS_KEY_ALIAS | |
  22. | key_password | The key password of keystore | ANDROID_CHANNELS_KEY_PASSWORD | |
  23. | apksigner_extra_args | The extra arguments of apksigner command | ANDROID_CHANNELS_APKSIGNER_EXTRA_ARGS | |
  24. | verify | Do or not verify signed apk file | ANDROID_CHANNELS_VERIFY | false |
  25. | clean | Should the signed files to be clean before | ANDROID_CHANNELS_CLEAN | false |
  26. | | signing it? | | |
  27. +-------------------------+-------------------------------------------------+------------------------------------------+-------------------------------------------------+
  28. * = default value is dependent on the user's system

Here has some example channel files.

Return value

  1. +-------------------------------+
  2. | android_channels Return Value |
  3. +-------------------------------+
  4. | The output of signed apk path |
  5. +-------------------------------+

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.

Note to author: Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)

Run tests for this plugin

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

  1. rake

To automatically fix many of the styling issues, use

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