mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-11 13:59:13 +00:00
Revert "Work around the fastlane-diawi-plugin getting deleted"
This reverts commit c2c56549667e769a88f0c6a27ad28b73b0b6836f.
This commit is contained in:
parent
428a3581f3
commit
1f8affc5fd
@ -68,7 +68,7 @@ lane :alpha do
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
# upload_to_diawi()
|
upload_to_diawi()
|
||||||
|
|
||||||
upload_to_browserstack()
|
upload_to_browserstack()
|
||||||
end
|
end
|
||||||
@ -199,25 +199,25 @@ lane :release_to_github do
|
|||||||
api_token = ENV["GITHUB_TOKEN"]
|
api_token = ENV["GITHUB_TOKEN"]
|
||||||
UI.user_error!("Invalid GitHub API token.") unless !api_token.to_s.empty?
|
UI.user_error!("Invalid GitHub API token.") unless !api_token.to_s.empty?
|
||||||
|
|
||||||
# # Get the Diawi link from Diawi action shared value
|
# Get the Diawi link from Diawi action shared value
|
||||||
# diawi_link = lane_context[SharedValues::UPLOADED_FILE_LINK_TO_DIAWI]
|
diawi_link = lane_context[SharedValues::UPLOADED_FILE_LINK_TO_DIAWI]
|
||||||
|
|
||||||
release_version = get_version_number(target: "ElementX")
|
release_version = get_version_number(target: "ElementX")
|
||||||
|
|
||||||
changes = export_version_changes(version: release_version)
|
changes = export_version_changes(version: release_version)
|
||||||
|
|
||||||
description = ""
|
description = ""
|
||||||
# if diawi_link.nil?
|
if diawi_link.nil?
|
||||||
description = "#{changes}"
|
description = "#{changes}"
|
||||||
# else
|
else
|
||||||
# # Generate the Diawi QR code file link
|
# Generate the Diawi QR code file link
|
||||||
# diawi_app_id = URI(diawi_link).path.split('/').last
|
diawi_app_id = URI(diawi_link).path.split('/').last
|
||||||
# diawi_qr_code_link = "https://www.diawi.com/qrcode/link/#{diawi_app_id}"
|
diawi_qr_code_link = "https://www.diawi.com/qrcode/link/#{diawi_app_id}"
|
||||||
|
|
||||||
# "[iOS AdHoc Release - Diawi Link](#{diawi_link})
|
"[iOS AdHoc Release - Diawi Link](#{diawi_link})
|
||||||
# 
|

|
||||||
# #{changes}"
|
#{changes}"
|
||||||
# end
|
end
|
||||||
|
|
||||||
github_release = set_github_release(
|
github_release = set_github_release(
|
||||||
repository_name: "vector-im/element-x-ios",
|
repository_name: "vector-im/element-x-ios",
|
||||||
@ -309,29 +309,29 @@ private_lane :config_xcodegen_alpha do
|
|||||||
bump_build_number()
|
bump_build_number()
|
||||||
end
|
end
|
||||||
|
|
||||||
# private_lane :upload_to_diawi do
|
private_lane :upload_to_diawi do
|
||||||
# api_token = ENV["DIAWI_API_TOKEN"]
|
api_token = ENV["DIAWI_API_TOKEN"]
|
||||||
# UI.user_error!("Invalid Diawi API token.") unless !api_token.to_s.empty?
|
UI.user_error!("Invalid Diawi API token.") unless !api_token.to_s.empty?
|
||||||
|
|
||||||
# # Upload to Diawi
|
# Upload to Diawi
|
||||||
# diawi(
|
diawi(
|
||||||
# token: api_token,
|
token: api_token,
|
||||||
# wall_of_apps: false,
|
wall_of_apps: false,
|
||||||
# file: lane_context[SharedValues::IPA_OUTPUT_PATH]
|
file: lane_context[SharedValues::IPA_OUTPUT_PATH]
|
||||||
# )
|
)
|
||||||
|
|
||||||
# # Get the Diawi link from Diawi action shared value
|
# Get the Diawi link from Diawi action shared value
|
||||||
# diawi_link = lane_context[SharedValues::UPLOADED_FILE_LINK_TO_DIAWI]
|
diawi_link = lane_context[SharedValues::UPLOADED_FILE_LINK_TO_DIAWI]
|
||||||
# UI.command_output("Diawi link: " + diawi_link.to_s)
|
UI.command_output("Diawi link: " + diawi_link.to_s)
|
||||||
|
|
||||||
# # Generate the Diawi QR code file link
|
# Generate the Diawi QR code file link
|
||||||
# diawi_app_id = URI(diawi_link).path.split('/').last
|
diawi_app_id = URI(diawi_link).path.split('/').last
|
||||||
# diawi_qr_code_link = "https://www.diawi.com/qrcode/link/#{diawi_app_id}"
|
diawi_qr_code_link = "https://www.diawi.com/qrcode/link/#{diawi_app_id}"
|
||||||
|
|
||||||
# # Set "DIAWI_FILE_LINK" to GitHub environment variables for Github actions
|
# Set "DIAWI_FILE_LINK" to GitHub environment variables for Github actions
|
||||||
# sh("echo DIAWI_FILE_LINK=#{diawi_link} >> $GITHUB_ENV")
|
sh("echo DIAWI_FILE_LINK=#{diawi_link} >> $GITHUB_ENV")
|
||||||
# sh("echo DIAWI_QR_CODE_LINK=#{diawi_qr_code_link} >> $GITHUB_ENV")
|
sh("echo DIAWI_QR_CODE_LINK=#{diawi_qr_code_link} >> $GITHUB_ENV")
|
||||||
# end
|
end
|
||||||
|
|
||||||
private_lane :upload_to_browserstack do
|
private_lane :upload_to_browserstack do
|
||||||
browserstack_username = ENV["BROWSERSTACK_USERNAME"]
|
browserstack_username = ENV["BROWSERSTACK_USERNAME"]
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Ensure this file is checked in to source control!
|
# Ensure this file is checked in to source control!
|
||||||
|
|
||||||
|
gem 'fastlane-plugin-diawi'
|
||||||
gem 'fastlane-plugin-xcodegen'
|
gem 'fastlane-plugin-xcodegen'
|
||||||
gem 'fastlane-plugin-sentry'
|
gem 'fastlane-plugin-sentry'
|
||||||
gem 'fastlane-plugin-browserstack'
|
gem 'fastlane-plugin-browserstack'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user