Skip to content

Commit f8f46a7

Browse files
committed
Fastfile additions and changes
* Add new xDrip Widget Extension bundle ID * Change bundle ID and target for Watch Complication Extension * Change bundle ID and target for Watch App * Change bundle ID and target for Widget Extension * Resolve packages * Update Testflight.md
1 parent 8eed36a commit f8f46a7

File tree

6 files changed

+28
-56
lines changed

6 files changed

+28
-56
lines changed

fastlane/Fastfile

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ platform :ios do
5656
git_basic_authorization: Base64.strict_encode64("#{GITHUB_REPOSITORY_OWNER}:#{GH_PAT}"),
5757
app_identifier: [
5858
"com.#{TEAMID}.xdripswift",
59-
"com.#{TEAMID}.xdripswift.xDrip4iOS-Widget",
60-
"com.#{TEAMID}.xdripswift.watchkitapp"
59+
"com.#{TEAMID}.xdripswift.xDripWidget",
60+
"com.#{TEAMID}.xdripswift.watchkitapp",
61+
"com.#{TEAMID}.xdripswift.watchkitapp.xDripWatchComplication"
6162
]
6263
)
6364

@@ -86,16 +87,23 @@ platform :ios do
8687

8788
update_code_signing_settings(
8889
path: "#{GITHUB_WORKSPACE}/xdrip.xcodeproj",
89-
profile_name: mapping["com.#{TEAMID}.xdripswift.xDrip4iOS-Widget"],
90+
profile_name: mapping["com.#{TEAMID}.xdripswift.xDripWidget"],
9091
code_sign_identity: "iPhone Distribution",
91-
targets: ["xDrip4iOS Widget"]
92+
targets: ["xDrip Widget Extension"]
9293
)
9394

9495
update_code_signing_settings(
9596
path: "#{GITHUB_WORKSPACE}/xdrip.xcodeproj",
9697
profile_name: mapping["com.#{TEAMID}.xdripswift.watchkitapp"],
9798
code_sign_identity: "iPhone Distribution",
98-
targets: ["Watch App"]
99+
targets: ["xDrip Watch App"]
100+
)
101+
102+
update_code_signing_settings(
103+
path: "#{GITHUB_WORKSPACE}/xdrip.xcodeproj",
104+
profile_name: mapping["com.#{TEAMID}.xdripswift.watchkitapp.xDripWatchComplication"],
105+
code_sign_identity: "iPhone Distribution",
106+
targets: ["xDrip Watch Complication Extension"]
99107
)
100108

101109
gym(
@@ -153,11 +161,15 @@ platform :ios do
153161
Spaceship::ConnectAPI::BundleIdCapability::Type::NFC_TAG_READING
154162
])
155163

156-
configure_bundle_id("xDrip4iOS Widget", "com.#{TEAMID}.xdripswift.xDrip4iOS-Widget", [
164+
configure_bundle_id("xDrip Widget Extension", "com.#{TEAMID}.xdripswift.xDripWidget", [
165+
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS
166+
])
167+
168+
configure_bundle_id("xDrip Watch App", "com.#{TEAMID}.xdripswift.watchkitapp", [
157169
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS
158170
])
159171

160-
configure_bundle_id("Watch App", "com.#{TEAMID}.xdripswift.watchkitapp", [
172+
configure_bundle_id("xDrip Watch Complication Extension", "com.#{TEAMID}.xdripswift.watchkitapp.xDripWatchComplication", [
161173
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS
162174
])
163175

@@ -181,8 +193,9 @@ platform :ios do
181193
git_basic_authorization: Base64.strict_encode64("#{GITHUB_REPOSITORY_OWNER}:#{GH_PAT}"),
182194
app_identifier: [
183195
"com.#{TEAMID}.xdripswift",
184-
"com.#{TEAMID}.xdripswift.xDrip4iOS-Widget",
185-
"com.#{TEAMID}.xdripswift.watchkitapp"
196+
"com.#{TEAMID}.xdripswift.xDripWidget",
197+
"com.#{TEAMID}.xdripswift.watchkitapp",
198+
"com.#{TEAMID}.xdripswift.watchkitapp.xDripWatchComplication"
186199
]
187200
)
188201
end

fastlane/testflight.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ Note 2 - Depending on your build history, you may find some of the Identifiers a
133133
1. Go to [Certificates, Identifiers & Profiles](https://developer.apple.com/account/resources/identifiers/list) on the apple developer site.
134134
1. For each of the following identifier names:
135135
* xdripswift
136-
* xdripswift xDrip4iOS-Widget
137-
* Watch App
136+
* xDrip Widget Extension
137+
* xDrip Watch App
138+
* xDrip Watch Complication Extension
138139
1. Click on the identifier's name.
139140
1. On the "App Groups" capabilies, click on the "Configure" button.
140141
1. Select the "Loop App Group" _(yes, "Loop App Group" is correct)_
Binary file not shown.

xdrip.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5428,7 +5428,7 @@
54285428
CODE_SIGN_STYLE = "$(XDRIP_CODE_SIGN_STYLE)";
54295429
CURRENT_PROJECT_VERSION = "$(CURRENT_PROJECT_VERSION)";
54305430
DEVELOPMENT_TEAM = "$(XDRIP_DEVELOPMENT_TEAM)";
5431-
INFOPLIST_FILE = "$(SRCROOT)/xdrip/Supporting Files/Info.plist";
5431+
INFOPLIST_FILE = "xdrip/Supporting Files/Info.plist";
54325432
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
54335433
LD_RUNPATH_SEARCH_PATHS = (
54345434
"$(inherited)",
@@ -5457,7 +5457,7 @@
54575457
CODE_SIGN_STYLE = "$(XDRIP_CODE_SIGN_STYLE)";
54585458
CURRENT_PROJECT_VERSION = "$(CURRENT_PROJECT_VERSION)";
54595459
DEVELOPMENT_TEAM = "$(XDRIP_DEVELOPMENT_TEAM)";
5460-
INFOPLIST_FILE = "$(SRCROOT)/xdrip/Supporting Files/Info.plist";
5460+
INFOPLIST_FILE = "xdrip/Supporting Files/Info.plist";
54615461
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
54625462
LD_RUNPATH_SEARCH_PATHS = (
54635463
"$(inherited)",

xdrip.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 0 additions & 41 deletions
This file was deleted.

xdrip.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"originHash" : "20a19467224593c1dcb0789843c73f4580a23d8227b26f5a2c54d6c62c75927e",
32
"pins" : [
43
{
54
"identity" : "actionclosurable",
@@ -38,5 +37,5 @@
3837
}
3938
}
4039
],
41-
"version" : 3
40+
"version" : 2
4241
}

0 commit comments

Comments
 (0)