Skip to content

Commit

Permalink
test upload_metadata alpha only
Browse files Browse the repository at this point in the history
  • Loading branch information
kshann committed Oct 24, 2024
1 parent 86f4ee5 commit 1b3ac1c
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,30 +173,25 @@ end
desc 'Promotes the latest TestFlight build to App Store without submitting for review'
lane :promote_latest_testflight_to_appstore do |options|

if options[:alpha]
latest_build_info = latest_testflight_build_number(
api_key: get_api_key,
username: get_username(options),
platform: 'ios',
app_identifier: "com.duckduckgo.mobile.ios.alpha"
)
else
latest_build_info = latest_testflight_build_number(
api_key: get_api_key,
username: get_username(options),
platform: 'ios'
)
end
app_identifier = options[:alpha] ? "com.duckduckgo.mobile.ios.alpha" : "com.duckduckgo.mobile.ios"

latest_build_info = latest_testflight_build_number(
api_key: get_api_key,
username: get_username(options),
platform: 'ios',
app_identifier: app_identifier
)

latest_build_number = lane_context[SharedValues::LATEST_TESTFLIGHT_BUILD_NUMBER]
latest_build_version = lane_context[SharedValues::LATEST_TESTFLIGHT_VERSION]

UI.message("The latest build number #{latest_build_number} of the latest version: #{latest_build_version}")
UI.message("The latest build number #{latest_build_number} of the latest version: #{latest_build_version} for app identifier: #{app_identifier}")

upload_metadata(options.merge({
upload_metadata({
build_number: latest_build_number.to_s,
app_version: latest_build_version.to_s,
}))
app_identifier: app_identifier
})
end

desc 'Makes App Store release build and uploads it to App Store Connect'
Expand Down

0 comments on commit 1b3ac1c

Please sign in to comment.