Setup an app variants folder and move the nightly and alpha build configs to it.

This commit is contained in:
Stefan Ceriu 2025-01-21 13:27:28 +02:00 committed by Stefan Ceriu
parent 19c14d5ef6
commit 1de8c1f4a2
11 changed files with 64 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 KiB

View File

@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "AppIcon.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

11
Variants/Alpha/alpha.yml Normal file
View File

@ -0,0 +1,11 @@
settings:
BASE_APP_GROUP_IDENTIFIER: io.element.pr
BASE_BUNDLE_IDENTIFIER: io.element.elementx.pr
targets:
ElementX:
settings:
base:
ASSETCATALOG_COMPILER_APPICON_NAME: AlphaAppIcon
sources:
- path: Resources

View File

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 KiB

View File

@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "AppIcon.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,11 @@
settings:
BASE_APP_GROUP_IDENTIFIER: io.element.nightly
BASE_BUNDLE_IDENTIFIER: io.element.elementx.nightly
targets:
ElementX:
settings:
base:
ASSETCATALOG_COMPILER_APPICON_NAME: NightlyAppIcon
sources:
- path: Resources

View File

@ -170,7 +170,7 @@ lane :config_nightly do |options|
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["include"].append({ "path" => "fastlane/nightly.yml" }) data["include"].append({ "path" => "Variants/Nightly/nightly.yml" })
config_secrets() config_secrets()
@ -314,7 +314,7 @@ end
private_lane :config_xcodegen_alpha do private_lane :config_xcodegen_alpha do
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["include"].append({ "path" => "fastlane/alpha.yml" }) data["include"].append({ "path" => "Variants/Alpha/alpha.yml" })
File.open(target_file_path, 'w') { |f| YAML.dump(data, f) } File.open(target_file_path, 'w') { |f| YAML.dump(data, f) }
xcodegen(spec: "project.yml") xcodegen(spec: "project.yml")

View File

@ -1,3 +0,0 @@
settings:
BASE_APP_GROUP_IDENTIFIER: io.element.pr
BASE_BUNDLE_IDENTIFIER: io.element.elementx.pr

View File

@ -1,3 +0,0 @@
settings:
BASE_APP_GROUP_IDENTIFIER: io.element.nightly
BASE_BUNDLE_IDENTIFIER: io.element.elementx.nightly