fix(watch): rename watch target to SwimBuddy Watch for Xcode compatibility
This commit is contained in:
@@ -99,7 +99,7 @@
|
|||||||
"appExtensions": [
|
"appExtensions": [
|
||||||
{
|
{
|
||||||
"bundleIdentifier": "nl.guido-it.swimbuddy.watch",
|
"bundleIdentifier": "nl.guido-it.swimbuddy.watch",
|
||||||
"targetName": "SwimBuddy",
|
"targetName": "SwimBuddy Watch",
|
||||||
"entitlements": {
|
"entitlements": {
|
||||||
"com.apple.security.application-groups": [
|
"com.apple.security.application-groups": [
|
||||||
"group.nl.guido-it.swimbuddy"
|
"group.nl.guido-it.swimbuddy"
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ if (content.includes(SENTRY_REPO_URL)) {
|
|||||||
|
|
||||||
// ── Find watch target UUID ──
|
// ── Find watch target UUID ──
|
||||||
const watchTargetMatch = content.match(
|
const watchTargetMatch = content.match(
|
||||||
/(\w{24})\s*\/\* SwimBuddy \*\/\s*=\s*\{\s*\n\s*isa = PBXNativeTarget;\s*\n\s*buildConfigurationList = XX792EB48D81CD7C6C71DCXX/
|
/(\w{24})\s*\/\* SwimBuddy Watch \*\/\s*=\s*\{\s*\n\s*isa = PBXNativeTarget;\s*\n\s*buildConfigurationList = \w+ /
|
||||||
);
|
);
|
||||||
if (!watchTargetMatch) {
|
if (!watchTargetMatch) {
|
||||||
console.error("Watch target not found");
|
console.error("Watch target not found");
|
||||||
@@ -55,7 +55,7 @@ console.log(`Watch target: ${watchTargetUuid}`);
|
|||||||
// ── Find watch target's Frameworks build phase UUID ──
|
// ── Find watch target's Frameworks build phase UUID ──
|
||||||
const watchTargetBlock = content.match(
|
const watchTargetBlock = content.match(
|
||||||
new RegExp(
|
new RegExp(
|
||||||
`${watchTargetUuid}\\s*\\/\\* SwimBuddy \\*\\/\\s*=\\s*\\{[\\s\\S]*?buildPhases\\s*=\\s*\\(([\\s\\S]*?)\\);`
|
`${watchTargetUuid}\\s*\\/\\* SwimBuddy Watch \\*\\/\\s*=\\s*\\{[\\s\\S]*?buildPhases\\s*=\\s*\\(([\\s\\S]*?)\\);`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if (!watchTargetBlock) {
|
if (!watchTargetBlock) {
|
||||||
@@ -143,7 +143,7 @@ if (!content.includes("packageReferences = (")) {
|
|||||||
const prodDepComment = `${prodDepId} /* ${SENTRY_PRODUCT} */`;
|
const prodDepComment = `${prodDepId} /* ${SENTRY_PRODUCT} */`;
|
||||||
// Find the watch target block and check if packageProductDependencies exists
|
// Find the watch target block and check if packageProductDependencies exists
|
||||||
const wtPattern = new RegExp(
|
const wtPattern = new RegExp(
|
||||||
`(${watchTargetUuid}\\s*\\/\\* SwimBuddy \\*\\/ = \\{[\\s\\S]*?fileSystemSynchronizedGroups = \\([\\s\\S]*?\\);[\\s\\S]*?)(name = )`
|
`(${watchTargetUuid}\\s*\\/\\* SwimBuddy Watch \\*\\/ = \\{[\\s\\S]*?fileSystemSynchronizedGroups = \\([\\s\\S]*?\\);[\\s\\S]*?)(name = )`
|
||||||
);
|
);
|
||||||
const wtMatch = content.match(wtPattern);
|
const wtMatch = content.match(wtPattern);
|
||||||
if (wtMatch && !content.includes("packageProductDependencies")) {
|
if (wtMatch && !content.includes("packageProductDependencies")) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** @type {import('@bacons/apple-targets/app.plugin').ConfigFunction} */
|
/** @type {import('@bacons/apple-targets/app.plugin').ConfigFunction} */
|
||||||
module.exports = (config) => ({
|
module.exports = (config) => ({
|
||||||
name: config.name,
|
name: `${config.name} Watch`,
|
||||||
type: "watch",
|
type: "watch",
|
||||||
icon: "../../assets/icon.png",
|
icon: "../../assets/icon.png",
|
||||||
deploymentTarget: "10.0",
|
deploymentTarget: "10.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user