mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Show the build number on the nightly app icons
This commit is contained in:
@@ -7,7 +7,7 @@ setup_xcode_cloud_environment
|
|||||||
install_xcode_cloud_brew_dependencies
|
install_xcode_cloud_brew_dependencies
|
||||||
|
|
||||||
if [ "$CI_WORKFLOW" = "Nightly" ]; then
|
if [ "$CI_WORKFLOW" = "Nightly" ]; then
|
||||||
bundle exec fastlane config_nightly
|
bundle exec fastlane config_nightly build_number:"$CI_BUILD_NUMBER"
|
||||||
else
|
else
|
||||||
bundle exec fastlane config_production
|
bundle exec fastlane config_production
|
||||||
fi
|
fi
|
||||||
|
|||||||
+6
-3
@@ -176,7 +176,10 @@ lane :integration_tests do
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
lane :config_nightly do
|
lane :config_nightly do |options|
|
||||||
|
build_number = options[:build_number]
|
||||||
|
UI.user_error!("Invalid build number.") unless !build_number.to_s.empty?
|
||||||
|
|
||||||
target_file_path = "../project.yml"
|
target_file_path = "../project.yml"
|
||||||
data = YAML.load_file target_file_path
|
data = YAML.load_file target_file_path
|
||||||
data["settings"]["BASE_APP_GROUP_IDENTIFIER"] = "io.element.nightly"
|
data["settings"]["BASE_APP_GROUP_IDENTIFIER"] = "io.element.nightly"
|
||||||
@@ -194,7 +197,7 @@ lane :config_nightly do
|
|||||||
|
|
||||||
release_version = get_version_number(target: "ElementX")
|
release_version = get_version_number(target: "ElementX")
|
||||||
|
|
||||||
update_app_icon(caption_text: "Nightly #{release_version}", modulate: "100,20,100")
|
update_app_icon(caption_text: "#{release_version}(#{build_number})", modulate: "100,20,100")
|
||||||
end
|
end
|
||||||
|
|
||||||
lane :config_production do
|
lane :config_production do
|
||||||
@@ -449,7 +452,7 @@ private_lane :config_secrets do
|
|||||||
UI.user_error!("Invalid OTLP tracing username.") unless !otlp_tracing_username.to_s.empty?
|
UI.user_error!("Invalid OTLP tracing username.") unless !otlp_tracing_username.to_s.empty?
|
||||||
|
|
||||||
otlp_tracing_password = ENV["OTLP_TRACING_PASSWORD"]
|
otlp_tracing_password = ENV["OTLP_TRACING_PASSWORD"]
|
||||||
UI.user_error!("Invalid OTLP tracing URL.") unless !otlp_tracing_password.to_s.empty?
|
UI.user_error!("Invalid OTLP tracing password.") unless !otlp_tracing_password.to_s.empty?
|
||||||
|
|
||||||
set_xcconfig_value(
|
set_xcconfig_value(
|
||||||
path: './ElementX/SupportingFiles/secrets.xcconfig',
|
path: './ElementX/SupportingFiles/secrets.xcconfig',
|
||||||
|
|||||||
Reference in New Issue
Block a user