Maxim Cournoyer | 457f271 | 2018-02-13 17:16:34 -0500 | [diff] [blame] | 1 | # -*- mode: ruby; -*- |
Alexandre Lision | db6c081 | 2016-11-02 10:47:28 -0400 | [diff] [blame] | 2 | # Customise this file, documentation can be found here: |
| 3 | # https://github.com/fastlane/fastlane/tree/master/fastlane/docs |
| 4 | # All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md |
| 5 | # can also be listed using the `fastlane actions` command |
| 6 | |
| 7 | # Change the syntax highlighting to Ruby |
| 8 | # All lines starting with a # are ignored when running `fastlane` |
| 9 | |
| 10 | # If you want to automatically update fastlane if a new version is available: |
| 11 | # update_fastlane |
| 12 | |
| 13 | # This is the minimum version number required. |
| 14 | # Update this, if you use features of a newer version |
| 15 | fastlane_version "2.13.0" |
| 16 | |
| 17 | default_platform :android |
| 18 | |
| 19 | platform :android do |
| 20 | |
Pierre Duchemin | c2f4e07 | 2018-06-12 11:02:48 -0400 | [diff] [blame] | 21 | desc "Submit a new Beta Build to the Play Store Beta channel" |
Alexandre Lision | db6c081 | 2016-11-02 10:47:28 -0400 | [diff] [blame] | 22 | lane :beta do |options| |
| 23 | sign_apk( |
| 24 | apk_path: options[:apk_path], |
| 25 | signed_apk_path: options[:signed_apk_path], |
| 26 | keystore_path: options[:keystore_path], |
| 27 | alias: options[:keyalias], |
| 28 | storepass: options[:storepass], |
| 29 | keypass: options[:keypass] |
| 30 | ) |
| 31 | |
| 32 | zipalign( |
| 33 | apk_path: options[:signed_apk_path] |
| 34 | ) |
| 35 | |
| 36 | supply( |
| 37 | apk: options[:signed_apk_path], |
| 38 | track: "beta", |
Pierre Duchemin | bbc859a | 2018-01-12 17:13:13 -0500 | [diff] [blame] | 39 | json_key: options[:json_key], |
| 40 | mapping: options[:mapping] |
Alexandre Lision | db6c081 | 2016-11-02 10:47:28 -0400 | [diff] [blame] | 41 | ) |
| 42 | end |
| 43 | |
Pierre Duchemin | c2f4e07 | 2018-06-12 11:02:48 -0400 | [diff] [blame] | 44 | desc "Submit a new Build to the Play Store" |
| 45 | lane :production do |options| |
| 46 | sign_apk( |
| 47 | apk_path: options[:apk_path], |
| 48 | signed_apk_path: options[:signed_apk_path], |
| 49 | keystore_path: options[:keystore_path], |
| 50 | alias: options[:keyalias], |
| 51 | storepass: options[:storepass], |
| 52 | keypass: options[:keypass] |
| 53 | ) |
| 54 | |
| 55 | zipalign( |
| 56 | apk_path: options[:signed_apk_path] |
| 57 | ) |
| 58 | |
| 59 | supply( |
| 60 | apk: options[:signed_apk_path], |
| 61 | track: "production", |
| 62 | json_key: options[:json_key], |
| 63 | mapping: options[:mapping] |
| 64 | ) |
| 65 | end |
| 66 | |
Maxim Cournoyer | 457f271 | 2018-02-13 17:16:34 -0500 | [diff] [blame] | 67 | desc "So far, we just sign and align the APK" |
Pierre Duchemin | c2f4e07 | 2018-06-12 11:02:48 -0400 | [diff] [blame] | 68 | lane :nopush do |options| |
Maxim Cournoyer | 457f271 | 2018-02-13 17:16:34 -0500 | [diff] [blame] | 69 | sign_apk( |
| 70 | apk_path: options[:apk_path], |
| 71 | signed_apk_path: options[:signed_apk_path], |
| 72 | keystore_path: options[:keystore_path], |
| 73 | alias: options[:keyalias], |
| 74 | storepass: options[:storepass], |
| 75 | keypass: options[:keypass] |
| 76 | ) |
| 77 | |
| 78 | zipalign( |
| 79 | apk_path: options[:signed_apk_path] |
| 80 | ) |
| 81 | end |
| 82 | |
Alexandre Lision | db6c081 | 2016-11-02 10:47:28 -0400 | [diff] [blame] | 83 | end |
| 84 | |