https://github.com/icyleaf/fastlane-plugin-android_channels
Package unsign apk with channels and sign it
https://github.com/icyleaf/fastlane-plugin-android_channels
fastlane-android fastlane-plugin
Last synced: 6 months ago
JSON representation
Package unsign apk with channels and sign it
- Host: GitHub
- URL: https://github.com/icyleaf/fastlane-plugin-android_channels
- Owner: icyleaf
- License: mit
- Created: 2018-10-25T07:37:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T07:32:28.000Z (almost 7 years ago)
- Last Synced: 2025-03-10T03:07:03.104Z (7 months ago)
- Topics: fastlane-android, fastlane-plugin
- Language: Ruby
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# android_channels plugin
[](https://rubygems.org/gems/fastlane-plugin-android_channels)
## Getting Started
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-android_channels`, add it to your project by running:
```bash
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
```
+-------------------------+-------------------------------------------------+------------------------------------------+-------------------------------------------------+
| android_channels Options |
+-------------------------+-------------------------------------------------+------------------------------------------+-------------------------------------------------+
| Key | Description | Env Var | Default |
+-------------------------+-------------------------------------------------+------------------------------------------+-------------------------------------------------+
| apk_file | The path of apk file | ANDROID_CHANNELS_APK_FILE | builds/output/apk/app-unsigned.apk |
| channels | The key password of keystore | ANDROID_CHANNELS_CHANNELS | [] |
| channel_file | The path of channel file, accepts json, yaml | ANDROID_CHANNELS_CHANNEL_FILE | |
| | and plain text file (split with space, comma | | |
| | and newline) | | |
| channel_filename_prefix | The prefix of empty channel file to write to | ANDROID_CHANNELS_CHANNEL_FILENAME_PREFIX | |
| | METE-INF folder | | |
| channel_filename_suffix | The suffix of empty channel file to write to | ANDROID_CHANNELS_CHANNEL_FILENAME_SUFFIX | |
| | METE-INF folder | | |
| output_path | The output path of channel apk files | ANDROID_CHANNELS_OUTPUT_PATH | channel_apks |
| android_sdk_path | The path of android sdk | ANDROID_CHANNELS_ANDROID_SDK_PATH | /usr/local/share/android-sdk |
| build_tools_version | The version of build tools (by default, always | ANDROID_CHANNELS_BUILD_TOOLS_VERSION | |
| | use latest version) | | |
| keystore | The path of keystore file | ANDROID_CHANNELS_KEYSTORE | release.keystore |
| keystore_password | The password of keystore | ANDROID_CHANNELS_KEYSTORE_PASSWORD | |
| key_alias | The key alias of keystore | ANDROID_CHANNELS_KEY_ALIAS | |
| key_password | The key password of keystore | ANDROID_CHANNELS_KEY_PASSWORD | |
| apksigner_extra_args | The extra arguments of apksigner command | ANDROID_CHANNELS_APKSIGNER_EXTRA_ARGS | |
| verify | Do or not verify signed apk file | ANDROID_CHANNELS_VERIFY | false |
| clean | Should the signed files to be clean before | ANDROID_CHANNELS_CLEAN | false |
| | signing it? | | |
+-------------------------+-------------------------------------------------+------------------------------------------+-------------------------------------------------+
* = default value is dependent on the user's system
```Here has some example [channel files](examples/).
## Return value
```
+-------------------------------+
| android_channels Return Value |
+-------------------------------+
| The output of signed apk path |
+-------------------------------+
```## Example
Check out the [example `Fastfile`](fastlane/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
```
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](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
## Using _fastlane_ Plugins
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
## 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](https://fastlane.tools).