Skip to content

Commit b35540b

Browse files
committed
Update fastlane
1 parent cf7108c commit b35540b

File tree

3 files changed

+53
-18
lines changed

3 files changed

+53
-18
lines changed

Gemfile.lock

+11-15
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ GEM
88
artifactory (3.0.15)
99
atomos (0.1.3)
1010
aws-eventstream (1.2.0)
11-
aws-partitions (1.844.0)
12-
aws-sdk-core (3.186.0)
11+
aws-partitions (1.853.0)
12+
aws-sdk-core (3.187.0)
1313
aws-eventstream (~> 1, >= 1.0.2)
1414
aws-partitions (~> 1, >= 1.651.0)
1515
aws-sigv4 (~> 1.5)
1616
jmespath (~> 1, >= 1.6.1)
1717
aws-sdk-kms (1.72.0)
1818
aws-sdk-core (~> 3, >= 3.184.0)
1919
aws-sigv4 (~> 1.1)
20-
aws-sdk-s3 (1.136.0)
20+
aws-sdk-s3 (1.137.0)
2121
aws-sdk-core (~> 3, >= 3.181.0)
2222
aws-sdk-kms (~> 1)
2323
aws-sigv4 (~> 1.6)
@@ -32,8 +32,7 @@ GEM
3232
declarative (0.0.20)
3333
digest-crc (0.6.5)
3434
rake (>= 12.0.0, < 14.0.0)
35-
domain_name (0.5.20190701)
36-
unf (>= 0.0.5, < 1.0.0)
35+
domain_name (0.6.20231109)
3736
dotenv (2.8.1)
3837
emoji_regex (3.2.3)
3938
excon (0.104.0)
@@ -66,7 +65,7 @@ GEM
6665
faraday_middleware (1.2.0)
6766
faraday (~> 1.0)
6867
fastimage (2.2.7)
69-
fastlane (2.216.0)
68+
fastlane (2.217.0)
7069
CFPropertyList (>= 2.3, < 4.0.0)
7170
addressable (>= 2.8, < 3.0.0)
7271
artifactory (~> 3.0)
@@ -111,7 +110,7 @@ GEM
111110
fastlane-plugin-versioning (0.5.2)
112111
fastlane-plugin-xcconfig (2.0.0)
113112
gh_inspector (1.1.3)
114-
google-apis-androidpublisher_v3 (0.51.0)
113+
google-apis-androidpublisher_v3 (0.53.0)
115114
google-apis-core (>= 0.11.0, < 2.a)
116115
google-apis-core (0.11.2)
117116
addressable (~> 2.5, >= 2.5.1)
@@ -126,19 +125,19 @@ GEM
126125
google-apis-core (>= 0.11.0, < 2.a)
127126
google-apis-playcustomapp_v1 (0.13.0)
128127
google-apis-core (>= 0.11.0, < 2.a)
129-
google-apis-storage_v1 (0.19.0)
130-
google-apis-core (>= 0.9.0, < 2.a)
128+
google-apis-storage_v1 (0.29.0)
129+
google-apis-core (>= 0.11.0, < 2.a)
131130
google-cloud-core (1.6.0)
132131
google-cloud-env (~> 1.0)
133132
google-cloud-errors (~> 1.0)
134133
google-cloud-env (1.6.0)
135134
faraday (>= 0.17.3, < 3.0)
136135
google-cloud-errors (1.3.1)
137-
google-cloud-storage (1.44.0)
136+
google-cloud-storage (1.45.0)
138137
addressable (~> 2.8)
139138
digest-crc (~> 0.4)
140139
google-apis-iamcredentials_v1 (~> 0.1)
141-
google-apis-storage_v1 (~> 0.19.0)
140+
google-apis-storage_v1 (~> 0.29.0)
142141
google-cloud-core (~> 1.6)
143142
googleauth (>= 0.16.2, < 2.a)
144143
mini_mime (~> 1.0)
@@ -164,7 +163,7 @@ GEM
164163
optparse (0.1.1)
165164
os (1.1.4)
166165
plist (3.7.0)
167-
public_suffix (5.0.3)
166+
public_suffix (5.0.4)
168167
rake (13.1.0)
169168
representable (3.2.0)
170169
declarative (< 0.1.0)
@@ -193,9 +192,6 @@ GEM
193192
tty-spinner (0.9.3)
194193
tty-cursor (~> 0.7)
195194
uber (0.1.0)
196-
unf (0.1.4)
197-
unf_ext
198-
unf_ext (0.0.8.2)
199195
unicode-display_width (2.5.0)
200196
webrick (1.8.1)
201197
word_wrap (1.0.0)

fastlane/Fastfile

+39
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,45 @@ default_platform(:ios)
22

33
platform :ios do
44

5+
desc "Update version and build number (e.g. add `version:1.2.3` after lane name)"
6+
7+
lane :update do |options|
8+
# Setting build number to amount of all commits in repo
9+
build = sh("git rev-list --all --count")
10+
11+
# Updating build number in all targets
12+
increment_build_number_in_xcodeproj(
13+
build_number: build,
14+
target: 'ForPDA'
15+
)
16+
increment_build_number_in_xcodeproj(
17+
build_number: build,
18+
target: 'ShareExtension'
19+
)
20+
increment_build_number_in_xcodeproj(
21+
build_number: build,
22+
target: 'OpenInAppExtension'
23+
)
24+
25+
# If version is not specified when calling this lane then use current one instead
26+
version = options.fetch(:version, get_version_number_from_xcodeproj)
27+
increment_version_number_in_xcodeproj(
28+
version_number: version,
29+
target: 'ForPDA'
30+
)
31+
increment_version_number_in_xcodeproj(
32+
version_number: version,
33+
target: 'ShareExtension'
34+
)
35+
increment_version_number_in_xcodeproj(
36+
version_number: version,
37+
target: 'OpenInAppExtension'
38+
)
39+
40+
end
41+
42+
#----------------------------------------------------------------------------------
43+
544
desc "Push new build to TestFlight (has version option to update marketing version)"
645

746
lane :beta do |options|

fastlane/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
1515

1616
## iOS
1717

18-
### ios ipa
18+
### ios update
1919

2020
```sh
21-
[bundle exec] fastlane ios ipa
21+
[bundle exec] fastlane ios update
2222
```
2323

24-
Make unsigned IPA
24+
Update version and build number (e.g. add `version:1.2.3` after lane name)
2525

2626
### ios beta
2727

0 commit comments

Comments
 (0)