Skip to content

Commit

Permalink
Fastfile: Fix bundle ID for FreeAPS-iAPSdev
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornoleh committed Dec 1, 2023
1 parent 53f65d7 commit c2d3569
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ platform :ios do
)

previous_build_number = latest_testflight_build_number(
app_identifier: "ru.artpancreas.#{TEAMID}.FreeAPS",
app_identifier: "ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev",
api_key: api_key,
)

Expand All @@ -55,15 +55,15 @@ platform :ios do
type: "appstore",
git_basic_authorization: Base64.strict_encode64("#{GITHUB_REPOSITORY_OWNER}:#{GH_PAT}"),
app_identifier: [
"ru.artpancreas.#{TEAMID}.FreeAPS",
"ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp",
"ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp.watchkitextension",
"ru.artpancreas.#{TEAMID}.FreeAPS.LiveActivity"
"ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev",
"ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.watchkitapp",
"ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.watchkitapp.watchkitextension",
"ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.LiveActivity"
]
)

previous_build_number = latest_testflight_build_number(
app_identifier: "ru.artpancreas.#{TEAMID}.FreeAPS",
app_identifier: "ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev",
api_key: api_key,
)

Expand All @@ -80,27 +80,27 @@ platform :ios do

update_code_signing_settings(
path: "#{GITHUB_WORKSPACE}/FreeAPS.xcodeproj",
profile_name: mapping["ru.artpancreas.#{TEAMID}.FreeAPS"],
profile_name: mapping["ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev"],
code_sign_identity: "iPhone Distribution",
targets: ["FreeAPS"]
)

update_code_signing_settings(
path: "#{GITHUB_WORKSPACE}/FreeAPS.xcodeproj",
profile_name: mapping["ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp.watchkitextension"],
profile_name: mapping["ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.watchkitapp.watchkitextension"],
code_sign_identity: "iPhone Distribution",
targets: ["FreeAPSWatch WatchKit Extension"]
)

update_code_signing_settings(
path: "#{GITHUB_WORKSPACE}/FreeAPS.xcodeproj",
profile_name: mapping["ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp"],
profile_name: mapping["ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.watchkitapp"],
code_sign_identity: "iPhone Distribution",
targets: ["FreeAPSWatch"]
)
update_code_signing_settings(
path: "#{GITHUB_WORKSPACE}/FreeAPS.xcodeproj",
profile_name: mapping["ru.artpancreas.#{TEAMID}.FreeAPS.LiveActivity"],
profile_name: mapping["ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.LiveActivity"],
code_sign_identity: "iPhone Distribution",
targets: ["LiveActivityExtension"]
)
Expand Down Expand Up @@ -155,22 +155,22 @@ platform :ios do
}
end

configure_bundle_id("FreeAPS", "ru.artpancreas.#{TEAMID}.FreeAPS", [
configure_bundle_id("FreeAPS", "ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev", [
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS,
Spaceship::ConnectAPI::BundleIdCapability::Type::HEALTHKIT,
Spaceship::ConnectAPI::BundleIdCapability::Type::NFC_TAG_READING
])

configure_bundle_id("FreeAPSWatch WatchKit Extension", "ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp.watchkitextension", [
configure_bundle_id("FreeAPSWatch WatchKit Extension", "ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.watchkitapp.watchkitextension", [
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS,
Spaceship::ConnectAPI::BundleIdCapability::Type::HEALTHKIT
])

configure_bundle_id("FreeAPSWatch", "ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp", [
configure_bundle_id("FreeAPSWatch", "ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.watchkitapp", [
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS
])

configure_bundle_id("LiveActivityExtension", "ru.artpancreas.#{TEAMID}.FreeAPS.LiveActivity", [
configure_bundle_id("LiveActivityExtension", "ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.LiveActivity", [
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS
])

Expand All @@ -192,10 +192,10 @@ platform :ios do
force: true,
git_basic_authorization: Base64.strict_encode64("#{GITHUB_REPOSITORY_OWNER}:#{GH_PAT}"),
app_identifier: [
"ru.artpancreas.#{TEAMID}.FreeAPS",
"ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp.watchkitextension",
"ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp",
"ru.artpancreas.#{TEAMID}.FreeAPS.LiveActivity"
"ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev",
"ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.watchkitapp.watchkitextension",
"ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.watchkitapp",
"ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev.LiveActivity"
]
)
end
Expand All @@ -215,7 +215,7 @@ platform :ios do
bundle_id = Spaceship::ConnectAPI::BundleId.find(identifier)
end

find_bundle_id("ru.artpancreas.#{TEAMID}.FreeAPS")
find_bundle_id("ru.artpancreas.#{TEAMID}.FreeAPS-iAPSdev")

match(
type: "appstore",
Expand Down

0 comments on commit c2d3569

Please sign in to comment.