blob: 94dc60d7d4c5c3c75c042808a2e20f756f498549 [file] [log] [blame]
Maxim Cournoyer457f2712018-02-13 17:16:34 -05001# -*- mode: ruby; -*-
Alexandre Lisiondb6c0812016-11-02 10:47:28 -04002# 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
15fastlane_version "2.13.0"
16
17default_platform :android
18
19platform :android do
20
Pierre Ducheminc2f4e072018-06-12 11:02:48 -040021 desc "Submit a new Beta Build to the Play Store Beta channel"
Alexandre Lisiondb6c0812016-11-02 10:47:28 -040022 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 Ducheminbbc859a2018-01-12 17:13:13 -050039 json_key: options[:json_key],
40 mapping: options[:mapping]
Alexandre Lisiondb6c0812016-11-02 10:47:28 -040041 )
42 end
43
Pierre Ducheminc2f4e072018-06-12 11:02:48 -040044 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 Cournoyer457f2712018-02-13 17:16:34 -050067 desc "So far, we just sign and align the APK"
Pierre Ducheminc2f4e072018-06-12 11:02:48 -040068 lane :nopush do |options|
Maxim Cournoyer457f2712018-02-13 17:16:34 -050069 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 Lisiondb6c0812016-11-02 10:47:28 -040083end
84