Skip to content

Commit

Permalink
add alpha option
Browse files Browse the repository at this point in the history
  • Loading branch information
kshann committed Oct 24, 2024
1 parent eda4034 commit 1712fc0
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,27 @@ lane :alpha_adhoc do |options|
end
end



desc 'Promotes the latest TestFlight build to App Store without submitting for review'
lane :promote_latest_testflight_to_appstore do |options|

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

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'
# No app_identifier for non-alpha
)
end

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

Expand All @@ -186,7 +198,6 @@ lane :promote_latest_testflight_to_appstore do |options|
# build_number: latest_build_number.to_s,
# app_version: latest_build_version.to_s,
# }))

end

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

0 comments on commit 1712fc0

Please sign in to comment.