-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathFastfile
121 lines (108 loc) · 3.27 KB
/
Fastfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Customise this file, documentation can be found here:
# https://docs.fastlane.tools/actions/
# All available actions: https://docs.fastlane.tools/actions
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.208.0"
default_platform :android
platform :android do
before_all do
#ensure_git_status_clean
end
lane :beta do
gradle(task: 'clean bundleGplayBeta')
sh "bash ./remove_unsupported_languages.sh"
supply(
track: 'beta',
rollout: '0.10',
package_name: 'eu.darken.capod',
skip_upload_changelogs: 'false',
skip_upload_apk: 'true',
skip_upload_images: 'true',
skip_upload_screenshots: 'true',
skip_upload_metadata: 'true',
aab_paths: [
"app/build/outputs/bundle/gplayRelease/app-gplay-beta.aab",
],
)
end
lane :beta_wearos do
gradle(task: 'clean bundleGplayBeta')
sh "bash ./remove_unsupported_languages.sh"
supply(
track: 'wear:beta',
rollout: '0.10',
package_name: 'eu.darken.capod',
skip_upload_changelogs: 'false',
skip_upload_apk: 'true',
skip_upload_images: 'true',
skip_upload_screenshots: 'true',
skip_upload_metadata: 'true',
aab_paths: [
"app-wear/build/outputs/bundle/gplayRelease/app-wear-gplay-beta.aab",
],
)
end
lane :production do
gradle(task: 'clean bundleGplayRelease')
sh "bash ./remove_unsupported_languages.sh"
supply(
track: 'beta',
rollout: '0.10',
package_name: 'eu.darken.capod',
skip_upload_changelogs: 'false',
skip_upload_apk: 'true',
skip_upload_images: 'true',
skip_upload_screenshots: 'true',
skip_upload_metadata: 'true',
aab_paths: [
"app/build/outputs/bundle/gplayRelease/app-gplay-release.aab",
],
)
end
lane :production_wearos do
gradle(task: 'clean bundleGplayRelease')
sh "bash ./remove_unsupported_languages.sh"
supply(
track: 'wear:beta',
rollout: '0.10',
package_name: 'eu.darken.capod',
skip_upload_changelogs: 'false',
skip_upload_apk: 'true',
skip_upload_images: 'true',
skip_upload_screenshots: 'true',
skip_upload_metadata: 'true',
aab_paths: [
"app-wear/build/outputs/bundle/gplayRelease/app-wear-gplay-release.aab",
],
)
end
lane :listing_only do
sh "bash ./remove_unsupported_languages.sh"
supply(
track: 'production',
skip_upload_apk: 'true',
skip_upload_images: 'true',
skip_upload_screenshots: 'true',
skip_upload_changelogs: true,
skip_upload_aab: 'true'
)
end
after_all do |lane|
# This block is called, only if the executed lane was successful
# slack(
# message: "Successfully deployed new App Update."
# )
end
error do |lane, exception|
# slack(
# message: exception.message,
# success: false
# )
end
end