mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 13:37:11 +00:00
Ignore vendor folder, add app-store release lane
This commit is contained in:
parent
b03a02351a
commit
a941dff744
1
.gitignore
vendored
1
.gitignore
vendored
@ -34,6 +34,7 @@ version_changes.md
|
||||
|
||||
build
|
||||
Tools/Scripts/element-android
|
||||
vendor/
|
||||
|
||||
## macOS Files
|
||||
.DS_Store
|
||||
|
@ -29,6 +29,8 @@ lane :alpha do
|
||||
|
||||
update_app_icon(caption_text: "PR #{version}")
|
||||
|
||||
bump_build_number()
|
||||
|
||||
build_ios_app(
|
||||
scheme: "ElementX",
|
||||
clean: true,
|
||||
@ -45,8 +47,8 @@ lane :alpha do
|
||||
|
||||
end
|
||||
|
||||
lane :release do
|
||||
adhoc()
|
||||
lane :github_release do
|
||||
build_adhoc()
|
||||
|
||||
upload_to_diawi()
|
||||
|
||||
@ -55,21 +57,45 @@ lane :release do
|
||||
prepare_next_release()
|
||||
|
||||
upload_dsyms_to_sentry()
|
||||
|
||||
end
|
||||
|
||||
lane :adhoc do
|
||||
lane :app_store_release do
|
||||
build_release()
|
||||
|
||||
release_to_github()
|
||||
|
||||
prepare_next_release()
|
||||
|
||||
upload_dsyms_to_sentry()
|
||||
end
|
||||
|
||||
|
||||
lane :build_adhoc do
|
||||
bump_build_number()
|
||||
|
||||
build_ios_app(
|
||||
scheme: "ElementX",
|
||||
clean: true,
|
||||
export_method: "ad-hoc",
|
||||
output_directory: "build",
|
||||
export_options: {
|
||||
provisioningProfiles: {
|
||||
"io.element.elementx" => "ElementX Ad Hoc",
|
||||
}
|
||||
scheme: "ElementX",
|
||||
clean: true,
|
||||
export_method: "ad-hoc",
|
||||
output_directory: "build",
|
||||
export_options: {
|
||||
provisioningProfiles: {
|
||||
"io.element.elementx" => "ElementX Ad Hoc",
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
lane :build_release do
|
||||
bump_build_number()
|
||||
|
||||
build_ios_app(
|
||||
scheme: "ElementX",
|
||||
clean: true,
|
||||
export_method: "app-store",
|
||||
output_directory: "build",
|
||||
xcargs: "-allowProvisioningUpdates",
|
||||
)
|
||||
end
|
||||
|
||||
lane :unit_tests do
|
||||
@ -111,6 +137,12 @@ lane :integration_tests do
|
||||
)
|
||||
end
|
||||
|
||||
private_lane :bump_build_number do
|
||||
# Increment build number to current date
|
||||
build_number = Time.now.strftime("%Y%m%d%H%M")
|
||||
increment_build_number(build_number: build_number)
|
||||
end
|
||||
|
||||
private_lane :config_xcodegen_alpha do
|
||||
target_file_path = "../ElementX/SupportingFiles/target.yml"
|
||||
data = YAML.load_file target_file_path
|
||||
@ -152,27 +184,30 @@ private_lane :release_to_github do
|
||||
# Get the Diawi link from Diawi action shared value
|
||||
diawi_link = lane_context[SharedValues::UPLOADED_FILE_LINK_TO_DIAWI]
|
||||
|
||||
# Generate the Diawi QR code file link
|
||||
diawi_app_id = URI(diawi_link).path.split('/').last
|
||||
diawi_qr_code_link = "https://www.diawi.com/qrcode/link/#{diawi_app_id}"
|
||||
|
||||
# Increment build number to current date
|
||||
build_number = Time.now.strftime("%Y%m%d%H%M")
|
||||
increment_build_number(build_number: build_number)
|
||||
|
||||
release_version = get_version_number()
|
||||
|
||||
changes = export_version_changes(version: release_version)
|
||||
|
||||
description = ""
|
||||
if diawi_link.nil?
|
||||
description = "#{changes}"
|
||||
else
|
||||
# Generate the Diawi QR code file link
|
||||
diawi_app_id = URI(diawi_link).path.split('/').last
|
||||
diawi_qr_code_link = "https://www.diawi.com/qrcode/link/#{diawi_app_id}"
|
||||
|
||||
"[iOS AdHoc Release - Diawi Link](#{diawi_link})
|
||||

|
||||
#{changes}"
|
||||
end
|
||||
|
||||
github_release = set_github_release(
|
||||
repository_name: "vector-im/element-x-ios",
|
||||
api_token: api_token,
|
||||
name: release_version,
|
||||
tag_name: release_version,
|
||||
is_generate_release_notes: false,
|
||||
description: "[iOS AdHoc Release - Diawi Link](#{diawi_link})
|
||||

|
||||
#{changes}"
|
||||
description: description
|
||||
)
|
||||
|
||||
end
|
||||
|
@ -21,18 +21,34 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
|
||||
|
||||
|
||||
|
||||
### release
|
||||
### github_release
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane release
|
||||
[bundle exec] fastlane github_release
|
||||
```
|
||||
|
||||
|
||||
|
||||
### adhoc
|
||||
### app_store_release
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane adhoc
|
||||
[bundle exec] fastlane app_store_release
|
||||
```
|
||||
|
||||
|
||||
|
||||
### build_adhoc
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane build_adhoc
|
||||
```
|
||||
|
||||
|
||||
|
||||
### build_release
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane build_release
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user