From 4dca0ae3faf67031e4ab4a3425ce984bfd18f9d2 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 13 Oct 2025 18:23:02 +0000 Subject: [PATCH 1/7] Checkpoint before follow-up message Co-authored-by: dgriesser --- src/apple/templates.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apple/templates.ts b/src/apple/templates.ts index c4ae130ea..324f4fbc5 100644 --- a/src/apple/templates.ts +++ b/src/apple/templates.ts @@ -63,8 +63,8 @@ export function getSwiftSnippet(dsn: string, enableLogs: boolean): string { snippet += ` } - // Remove the next line after confirming that your Sentry integration is working. - SentrySDK.capture(message: "This app uses Sentry! :)")\n`; + // Uncomment the next line to verify that your Sentry integration is working. + // SentrySDK.capture(message: "This app uses Sentry! :)")\n`; return snippet; } @@ -101,8 +101,8 @@ export function getObjcSnippet(dsn: string, enableLogs: boolean): string { snippet += ` }]; - //Remove the next line after confirming that your Sentry integration is working. - [SentrySDK captureMessage:@"This app uses Sentry!"];\n`; + // Uncomment the next line to verify that your Sentry integration is working. + // [SentrySDK captureMessage:@"This app uses Sentry!"];\n`; return snippet; } From 8273e517a9e007f912c02952ef95fd82a5299ec3 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 13 Oct 2025 18:26:31 +0000 Subject: [PATCH 2/7] fix(apple): Remove captureMessage from Swift/ObjC templates to avoid accidental test spam (#1093) This removes the example capture call entirely to prevent users from unintentionally sending many messages and burning quota. --- src/apple/templates.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/apple/templates.ts b/src/apple/templates.ts index 324f4fbc5..3644431df 100644 --- a/src/apple/templates.ts +++ b/src/apple/templates.ts @@ -62,9 +62,7 @@ export function getSwiftSnippet(dsn: string, enableLogs: boolean): string { } snippet += ` - } - // Uncomment the next line to verify that your Sentry integration is working. - // SentrySDK.capture(message: "This app uses Sentry! :)")\n`; + }\n`; return snippet; } @@ -100,9 +98,7 @@ export function getObjcSnippet(dsn: string, enableLogs: boolean): string { } snippet += ` - }]; - // Uncomment the next line to verify that your Sentry integration is working. - // [SentrySDK captureMessage:@"This app uses Sentry!"];\n`; + }];\n`; return snippet; } From 108d5e78537a9ef5ac1f7b102f730821c5c0d9d5 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Mon, 13 Oct 2025 20:39:07 +0200 Subject: [PATCH 3/7] test: Update snapshot tests to match removed captureMessage calls --- test/apple/code-tools.test.ts | 6 ------ test/apple/templates.test.ts | 8 -------- 2 files changed, 14 deletions(-) diff --git a/test/apple/code-tools.test.ts b/test/apple/code-tools.test.ts index ef370fe1a..b32a4f9f0 100644 --- a/test/apple/code-tools.test.ts +++ b/test/apple/code-tools.test.ts @@ -54,8 +54,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // options.attachScreenshot = true // This adds a screenshot to the error events // options.attachViewHierarchy = true // This adds the view hierarchy to the error events } - // Remove the next line after confirming that your Sentry integration is working. - SentrySDK.capture(message: "This app uses Sentry! :)") // Override point for customization after application launch. return true @@ -113,8 +111,6 @@ const validAppDelegateObjCWithSentry = `@import Sentry; //options.attachScreenshot = YES; //This will add a screenshot to the error events //options.attachViewHierarchy = YES; //This will add the view hierarchy to the error events }]; - //Remove the next line after confirming that your Sentry integration is working. - [SentrySDK captureMessage:@"This app uses Sentry!"]; // Override point for customization after application launch. return YES; @@ -168,8 +164,6 @@ struct TestApp: App { // options.attachScreenshot = true // This adds a screenshot to the error events // options.attachViewHierarchy = true // This adds the view hierarchy to the error events } - // Remove the next line after confirming that your Sentry integration is working. - SentrySDK.capture(message: "This app uses Sentry! :)") } var body: some Scene { WindowGroup { diff --git a/test/apple/templates.test.ts b/test/apple/templates.test.ts index 602f4636d..5a0bddda8 100644 --- a/test/apple/templates.test.ts +++ b/test/apple/templates.test.ts @@ -147,8 +147,6 @@ fi // options.attachScreenshot = true // This adds a screenshot to the error events // options.attachViewHierarchy = true // This adds the view hierarchy to the error events } - // Remove the next line after confirming that your Sentry integration is working. - SentrySDK.capture(message: "This app uses Sentry! :)") `, ); }); @@ -184,8 +182,6 @@ fi // Enable experimental logging features options.experimental.enableLogs = true } - // Remove the next line after confirming that your Sentry integration is working. - SentrySDK.capture(message: "This app uses Sentry! :)") `, ); }); @@ -220,8 +216,6 @@ fi //options.attachScreenshot = YES; //This will add a screenshot to the error events //options.attachViewHierarchy = YES; //This will add the view hierarchy to the error events }]; - //Remove the next line after confirming that your Sentry integration is working. - [SentrySDK captureMessage:@"This app uses Sentry!"]; `, ); }); @@ -257,8 +251,6 @@ fi // Enable experimental logging features options.experimental.enableLogs = YES; }]; - //Remove the next line after confirming that your Sentry integration is working. - [SentrySDK captureMessage:@"This app uses Sentry!"]; `, ); }); From 63c48e3e1c9cd1d6bad8b11dc6765f51312ff4b7 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 13 Oct 2025 18:42:39 +0000 Subject: [PATCH 4/7] fix(apple): Update tests after removing captureMessage from templates Adjust Swift/ObjC expected snippets and remove leftover merge markers in tests. --- test/apple/code-tools.test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/apple/code-tools.test.ts b/test/apple/code-tools.test.ts index b32a4f9f0..8b54aba57 100644 --- a/test/apple/code-tools.test.ts +++ b/test/apple/code-tools.test.ts @@ -54,7 +54,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // options.attachScreenshot = true // This adds a screenshot to the error events // options.attachViewHierarchy = true // This adds the view hierarchy to the error events } - // Override point for customization after application launch. return true } @@ -111,7 +110,6 @@ const validAppDelegateObjCWithSentry = `@import Sentry; //options.attachScreenshot = YES; //This will add a screenshot to the error events //options.attachViewHierarchy = YES; //This will add the view hierarchy to the error events }]; - // Override point for customization after application launch. return YES; } From fdf70c70d8879d37d8fd2e35dbd0c6d65e3060e8 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 13 Oct 2025 18:45:14 +0000 Subject: [PATCH 5/7] chore(tests): Normalize spacing in expected Apple snippets --- test/apple/code-tools.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/apple/code-tools.test.ts b/test/apple/code-tools.test.ts index 8b54aba57..b32a4f9f0 100644 --- a/test/apple/code-tools.test.ts +++ b/test/apple/code-tools.test.ts @@ -54,6 +54,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // options.attachScreenshot = true // This adds a screenshot to the error events // options.attachViewHierarchy = true // This adds the view hierarchy to the error events } + // Override point for customization after application launch. return true } @@ -110,6 +111,7 @@ const validAppDelegateObjCWithSentry = `@import Sentry; //options.attachScreenshot = YES; //This will add a screenshot to the error events //options.attachViewHierarchy = YES; //This will add the view hierarchy to the error events }]; + // Override point for customization after application launch. return YES; } From 695425f725b6ec4584e41153bf5cd00534aedd23 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 13 Oct 2025 18:51:58 +0000 Subject: [PATCH 6/7] test(apple): Update expected snippets after removing captureMessage --- test/apple/code-tools.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/apple/code-tools.test.ts b/test/apple/code-tools.test.ts index b32a4f9f0..425084a37 100644 --- a/test/apple/code-tools.test.ts +++ b/test/apple/code-tools.test.ts @@ -55,6 +55,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // options.attachViewHierarchy = true // This adds the view hierarchy to the error events } + // Override point for customization after application launch. return true } @@ -112,6 +113,7 @@ const validAppDelegateObjCWithSentry = `@import Sentry; //options.attachViewHierarchy = YES; //This will add the view hierarchy to the error events }]; + // Override point for customization after application launch. return YES; } From 139cd93eacb0cb25f4bb21c2381508dfe762da87 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Mon, 13 Oct 2025 21:05:50 +0200 Subject: [PATCH 7/7] test(apple): Update snapshots for removed captureMessage and newline spacing --- test/apple/code-tools.test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/apple/code-tools.test.ts b/test/apple/code-tools.test.ts index 425084a37..b32a4f9f0 100644 --- a/test/apple/code-tools.test.ts +++ b/test/apple/code-tools.test.ts @@ -55,7 +55,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // options.attachViewHierarchy = true // This adds the view hierarchy to the error events } - // Override point for customization after application launch. return true } @@ -113,7 +112,6 @@ const validAppDelegateObjCWithSentry = `@import Sentry; //options.attachViewHierarchy = YES; //This will add the view hierarchy to the error events }]; - // Override point for customization after application launch. return YES; }