Skip to content

Commit bd8a198

Browse files
committed
fix(ios): remove prohibited App Intent platform names
1 parent 8e99596 commit bd8a198

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

apps/mobile/plugins/ios-watch.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,12 @@ describe('ios-watch', () => {
416416
expect(intentsSource).toContain('static var openAppWhenRun: Bool { true }');
417417
expect(intentsSource).toContain('.foreground(.immediate)');
418418
expect(intentsSource).not.toContain('AudioRecordingIntent');
419+
const intentDescriptions = Array.from(
420+
intentsSource.matchAll(/IntentDescription\("([^"]+)"\)/g),
421+
(match) => match[1],
422+
);
423+
expect(intentDescriptions.length).toBeGreaterThan(0);
424+
expect(intentDescriptions.every((description) => !/\bapple\b/i.test(description))).toBe(true);
419425
expect(widgetSource).toContain('.accessoryCircular');
420426
expect(widgetSource).toContain('.accessoryRectangular');
421427
expect(widgetSource).toContain('.accessoryInline');

apps/mobile/targets/watch/App/MindwtrWatchIntents.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extension Notification.Name {
88
@available(watchOS 10.0, *)
99
struct MindwtrOpenWatchCaptureIntent: AppIntent {
1010
static var title: LocalizedStringResource = "Capture in Mindwtr"
11-
static var description = IntentDescription("Opens Mindwtr on Apple Watch for dictation or audio capture.")
11+
static var description = IntentDescription("Opens Mindwtr for dictation or audio capture.")
1212

1313
#if compiler(>=6.0)
1414
@available(watchOS 26.0, *)
@@ -31,7 +31,7 @@ struct MindwtrOpenWatchCaptureIntent: AppIntent {
3131
@available(watchOS 10.0, *)
3232
struct MindwtrStartWatchPomodoroIntent: AppIntent {
3333
static var title: LocalizedStringResource = "Start Mindwtr Focus Timer"
34-
static var description = IntentDescription("Starts the current Mindwtr Pomodoro timer from Apple Watch.")
34+
static var description = IntentDescription("Starts the current Mindwtr Pomodoro timer.")
3535

3636
#if compiler(>=6.0)
3737
@available(watchOS 26.0, *)

0 commit comments

Comments
 (0)