Skip to content

Commit 57edfeb

Browse files
committed
Update fastlane, use Xcode 16.1
1 parent a3ec29f commit 57edfeb

File tree

4 files changed

+30
-213
lines changed

4 files changed

+30
-213
lines changed

Gemfile.lock

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,22 @@ GEM
99
public_suffix (>= 2.0.2, < 7.0)
1010
artifactory (3.0.17)
1111
atomos (0.1.3)
12-
aws-eventstream (1.3.0)
13-
aws-partitions (1.1004.0)
14-
aws-sdk-core (3.212.0)
12+
aws-eventstream (1.3.1)
13+
aws-partitions (1.1051.0)
14+
aws-sdk-core (3.218.1)
1515
aws-eventstream (~> 1, >= 1.3.0)
1616
aws-partitions (~> 1, >= 1.992.0)
1717
aws-sigv4 (~> 1.9)
18+
base64
1819
jmespath (~> 1, >= 1.6.1)
19-
aws-sdk-kms (1.95.0)
20-
aws-sdk-core (~> 3, >= 3.210.0)
20+
aws-sdk-kms (1.98.0)
21+
aws-sdk-core (~> 3, >= 3.216.0)
2122
aws-sigv4 (~> 1.5)
22-
aws-sdk-s3 (1.170.1)
23-
aws-sdk-core (~> 3, >= 3.210.0)
23+
aws-sdk-s3 (1.181.0)
24+
aws-sdk-core (~> 3, >= 3.216.0)
2425
aws-sdk-kms (~> 1)
2526
aws-sigv4 (~> 1.5)
26-
aws-sigv4 (1.10.1)
27+
aws-sigv4 (1.11.0)
2728
aws-eventstream (~> 1, >= 1.0.2)
2829
babosa (1.0.4)
2930
base64 (0.2.0)
@@ -33,7 +34,7 @@ GEM
3334
commander (4.6.0)
3435
highline (~> 2.0.0)
3536
declarative (0.0.20)
36-
digest-crc (0.6.5)
37+
digest-crc (0.7.0)
3738
rake (>= 12.0.0, < 14.0.0)
3839
domain_name (0.6.20240107)
3940
dotenv (2.8.1)
@@ -58,17 +59,17 @@ GEM
5859
faraday-em_synchrony (1.0.0)
5960
faraday-excon (1.1.0)
6061
faraday-httpclient (1.0.1)
61-
faraday-multipart (1.0.4)
62-
multipart-post (~> 2)
62+
faraday-multipart (1.1.0)
63+
multipart-post (~> 2.0)
6364
faraday-net_http (1.0.2)
6465
faraday-net_http_persistent (1.2.0)
6566
faraday-patron (1.0.0)
6667
faraday-rack (1.0.0)
6768
faraday-retry (1.0.3)
6869
faraday_middleware (1.2.1)
6970
faraday (~> 1.0)
70-
fastimage (2.3.1)
71-
fastlane (2.225.0)
71+
fastimage (2.4.0)
72+
fastlane (2.226.0)
7273
CFPropertyList (>= 2.3, < 4.0.0)
7374
addressable (>= 2.8, < 3.0.0)
7475
artifactory (~> 3.0)
@@ -108,7 +109,7 @@ GEM
108109
tty-spinner (>= 0.8.0, < 1.0.0)
109110
word_wrap (~> 1.0.0)
110111
xcodeproj (>= 1.13.0, < 2.0.0)
111-
xcpretty (~> 0.3.0)
112+
xcpretty (~> 0.4.0)
112113
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
113114
fastlane-sirp (1.0.0)
114115
sysrandom (~> 1.0)
@@ -150,12 +151,12 @@ GEM
150151
os (>= 0.9, < 2.0)
151152
signet (>= 0.16, < 2.a)
152153
highline (2.0.3)
153-
http-cookie (1.0.7)
154+
http-cookie (1.0.8)
154155
domain_name (~> 0.5)
155156
httpclient (2.8.3)
156157
jmespath (1.6.2)
157-
json (2.8.1)
158-
jwt (2.9.3)
158+
json (2.10.1)
159+
jwt (2.10.1)
159160
base64
160161
mini_magick (4.13.2)
161162
mini_mime (1.1.5)
@@ -166,18 +167,18 @@ GEM
166167
nkf (0.2.0)
167168
optparse (0.6.0)
168169
os (1.1.4)
169-
plist (3.7.1)
170+
plist (3.7.2)
170171
public_suffix (6.0.1)
171172
rake (13.2.1)
172173
representable (3.2.0)
173174
declarative (< 0.1.0)
174175
trailblazer-option (>= 0.1.1, < 0.2.0)
175176
uber (< 0.2.0)
176177
retriable (3.1.2)
177-
rexml (3.3.9)
178-
rouge (2.0.7)
178+
rexml (3.4.1)
179+
rouge (3.28.0)
179180
ruby2_keywords (0.0.5)
180-
rubyzip (2.3.2)
181+
rubyzip (2.4.1)
181182
security (0.1.5)
182183
signet (0.19.0)
183184
addressable (~> 2.8)
@@ -206,8 +207,8 @@ GEM
206207
colored2 (~> 3.1)
207208
nanaimo (~> 0.4.0)
208209
rexml (>= 3.3.6, < 4.0)
209-
xcpretty (0.3.0)
210-
rouge (~> 2.0.7)
210+
xcpretty (0.4.0)
211+
rouge (~> 3.28.0)
211212
xcpretty-travis-formatter (1.0.1)
212213
xcpretty (~> 0.2, >= 0.0.7)
213214

Targets/Lava/WaiterRobotLava.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<key>CFBundleShortVersionString</key>
2727
<string>2.4.1</string>
2828
<key>CFBundleVersion</key>
29-
<string>28998348</string>
29+
<string>28998359</string>
3030
<key>ITSAppUsesNonExemptEncryption</key>
3131
<false/>
3232
<key>NSAppTransportSecurity</key>

fastlane/Fastfile

Lines changed: 5 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -1,157 +1,13 @@
1-
# This file contains the fastlane.tools configuration
2-
# You can find the documentation at https://docs.fastlane.tools
3-
#
4-
# For a list of all available actions, check out
5-
#
6-
# https://docs.fastlane.tools/actions
7-
#
8-
# For a list of all available plugins, check out
9-
#
10-
# https://docs.fastlane.tools/plugins/available-plugins
11-
#
12-
13-
# Uncomment the line if you want fastlane to automatically update itself
14-
# update_fastlane
15-
161
default_platform(:ios)
172

183
platform :ios do
19-
before_all do
20-
xcodes(version: "16.2", select_for_current_build_only: true)
21-
end
22-
23-
desc "Run all iOS unit and ui tests."
24-
lane :test do
25-
run_tests(scheme: "WaiterRobotLava")
26-
end
27-
28-
desc "Sync certificates"
29-
lane :sync_certificates do
30-
if ENV["CI"]
31-
match(
32-
type: "appstore",
33-
git_private_key: "./fastlane/.keys/github-deploy-key",
34-
keychain_name: "WaiterRobot_iOS_keychain",
35-
keychain_password: ENV["KEYCHAIN_PASSWORD"]
36-
)
37-
match(
38-
type: "development",
39-
git_private_key: "./fastlane/.keys/github-deploy-key",
40-
keychain_name: "WaiterRobot_iOS_keychain",
41-
keychain_password: ENV["KEYCHAIN_PASSWORD"]
42-
)
43-
else
44-
match(
45-
type: "appstore",
46-
git_private_key: "./fastlane/.keys/github-deploy-key",
47-
)
48-
match(
49-
type: "development",
50-
git_private_key: "./fastlane/.keys/github-deploy-key",
51-
)
4+
before_all do
5+
xcodes(version: "16.1", select_for_current_build_only: true)
526
end
53-
end
54-
55-
desc "Renew certificates and profiles"
56-
lane :renew_certificates do
57-
setupFastlaneSecrets
58-
59-
match(
60-
type: "appstore",
61-
force: true
62-
)
63-
match(
64-
type: "development",
65-
force: true
66-
)
67-
end
68-
69-
desc "Push a new lava build to TestFlight"
70-
lane :releaseWaiterRobot_develop do |options|
71-
setupFastlaneSecrets
72-
sync_certificates
73-
74-
build_app(
75-
project: "WaiterRobot.xcodeproj",
76-
scheme: "WaiterRobotLava",
77-
output_name: "WaiterRobotLava.ipa",
78-
output_directory: "./build/",
79-
export_method: "app-store"
80-
)
81-
82-
upload_to_testflight(
83-
ipa: "./build/WaiterRobotLava.ipa",
84-
skip_waiting_for_build_processing: true
85-
)
86-
87-
version = get_version_number(
88-
xcodeproj:"WaiterRobot.xcodeproj",
89-
target:"WaiterRobotLava"
90-
)
91-
# Build number gets set to epochMinute by a preBuildScript (see project.yml)
92-
build_number = get_ipa_info_plist_value(ipa: "build/WaiterRobotLava.ipa", key: "CFBundleVersion")
93-
94-
# e.g. 2.0.2-lava-27943760
95-
version_tag = version + "-lava-" + build_number.to_s
96-
add_git_tag(tag: version_tag)
97-
push_git_tags(tag: version_tag)
98-
sendSlackMessage(version: version_tag, env: "lava")
99-
end
1007

101-
desc "Push a new prod build to TestFlight"
102-
lane :releaseWaiterRobot_main do |options|
103-
setupFastlaneSecrets
104-
sync_certificates
105-
106-
build_app(
107-
project: "WaiterRobot.xcodeproj",
108-
scheme: "WaiterRobot",
109-
output_name: "WaiterRobot.ipa",
110-
output_directory: "./build/",
111-
export_method: "app-store"
112-
)
113-
114-
upload_to_testflight(
115-
ipa: "./build/WaiterRobot.ipa",
116-
skip_waiting_for_build_processing: true
117-
)
118-
119-
version = get_version_number(
120-
xcodeproj:"WaiterRobot.xcodeproj",
121-
target:"WaiterRobot"
122-
)
123-
124-
# e.g. 2.0.2
125-
add_git_tag(tag: version)
126-
push_git_tags(tag: version)
127-
sendSlackMessage(version: version, env: "production")
128-
end
129-
130-
lane :setupFastlaneSecrets do |options|
131-
ensure_env_vars(
132-
env_vars: ["FASTLANE_APPLE_ID", "FASTLANE_CERTIFICATES_GIT_URL", "FASTLANE_KEY_ID", "FASTLANE_ISSUER_ID"]
133-
)
134-
135-
if ENV["CI"]
136-
ensure_env_vars(
137-
env_vars: ["KEYCHAIN_PASSWORD"]
138-
)
139-
140-
create_keychain(
141-
name: "WaiterRobot_iOS_keychain",
142-
password: ENV["KEYCHAIN_PASSWORD"],
143-
default_keychain: true,
144-
unlock: true,
145-
timeout: 3600,
146-
lock_when_sleeps: false
147-
)
148-
end
149-
150-
app_store_connect_api_key(
151-
key_id: ENV["FASTLANE_KEY_ID"],
152-
issuer_id: ENV["FASTLANE_ISSUER_ID"],
153-
key_filepath: "./fastlane/.keys/api_key.p8",
154-
)
8+
desc "Run all iOS unit and ui tests."
9+
lane :test do
10+
run_tests(scheme: "WaiterRobotLava")
15511
end
15612

15713
desc "Send a notification to Slack"

fastlane/README.md

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -23,46 +23,6 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
2323

2424
Run all iOS unit and ui tests.
2525

26-
### ios sync_certificates
27-
28-
```sh
29-
[bundle exec] fastlane ios sync_certificates
30-
```
31-
32-
Sync certificates
33-
34-
### ios renew_certificates
35-
36-
```sh
37-
[bundle exec] fastlane ios renew_certificates
38-
```
39-
40-
Renew certificates and profiles
41-
42-
### ios releaseWaiterRobot_develop
43-
44-
```sh
45-
[bundle exec] fastlane ios releaseWaiterRobot_develop
46-
```
47-
48-
Push a new lava build to TestFlight
49-
50-
### ios releaseWaiterRobot_main
51-
52-
```sh
53-
[bundle exec] fastlane ios releaseWaiterRobot_main
54-
```
55-
56-
Push a new prod build to TestFlight
57-
58-
### ios setupFastlaneSecrets
59-
60-
```sh
61-
[bundle exec] fastlane ios setupFastlaneSecrets
62-
```
63-
64-
65-
6626
### ios sendSlackMessage
6727

6828
```sh

0 commit comments

Comments
 (0)