diff --git a/src/apple/templates.ts b/src/apple/templates.ts index c4ae130ea..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 += ` - } - // Remove the next line after confirming 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 += ` - }]; - //Remove the next line after confirming that your Sentry integration is working. - [SentrySDK captureMessage:@"This app uses Sentry!"];\n`; + }];\n`; return snippet; } 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!"]; `, ); });