Skip to content

Commit 0e9296e

Browse files
[CI] Update TestFlight app version on manual uploading (#787)
1 parent f54d137 commit 0e9296e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

fastlane/Fastfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ lane :uikit_testflight_build do |options|
163163
end
164164

165165
private_lane :upload_beta do |options|
166+
is_manual_upload = is_localhost || options[:configuration].to_s.empty?
166167
configuration = options[:configuration].to_s.empty? ? 'Release' : options[:configuration]
167168

168169
match_me
@@ -178,12 +179,22 @@ private_lane :upload_beta do |options|
178179
end
179180
end
180181

182+
sdk_version = get_sdk_version_from_environment
183+
app_version =
184+
if is_manual_upload
185+
major, minor, _patch = sdk_version.split('.').map(&:to_i)
186+
minor += 1
187+
"#{major}.#{minor}.0"
188+
else
189+
sdk_version
190+
end
191+
181192
testflight_build(
182193
api_key: appstore_api_key,
183194
xcode_project: xcode_project,
184195
sdk_target: 'StreamVideo',
185196
app_target: options[:app_target],
186-
app_version: get_sdk_version_from_environment,
197+
app_version: app_version,
187198
app_identifier: options[:app_identifier],
188199
configuration: configuration,
189200
extensions: ['CallIntent', 'ScreenSharing']

0 commit comments

Comments
 (0)