Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/apple/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Comment on lines -66 to -67
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HazAT, I though we want to comment out capture message and not remove it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this is not aligned with our product which is waiting for the first issue to appear. Also mentioned this in our internal discussion

image

}\n`;

return snippet;
}
Expand Down Expand Up @@ -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;
}
Expand Down
6 changes: 0 additions & 6 deletions test/apple/code-tools.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down
8 changes: 0 additions & 8 deletions test/apple/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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! :)")
`,
);
});
Expand Down Expand Up @@ -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! :)")
`,
);
});
Expand Down Expand Up @@ -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!"];
`,
);
});
Expand Down Expand Up @@ -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!"];
`,
);
});
Expand Down
Loading