Skip to content
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- feat(nextjs): Update turbopack warning ([#1089](https://github.com/getsentry/sentry-wizard/pull/1089))
- feat(nextjs): Set `sendDefaultPii: true` by default ([#1052](https://github.com/getsentry/sentry-wizard/pull/1052))
- feat(nuxt): Set `sendDefaultPii: true` by default ([#1060](https://github.com/getsentry/sentry-wizard/pull/1060))
- fix(apple): Remove `options.debug: true` from SDK init snippet ([#1096](https://github.com/getsentry/sentry-wizard/pull/1096))


## 6.5.0
Expand Down
2 changes: 0 additions & 2 deletions src/apple/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const scriptInputPath =
export function getSwiftSnippet(dsn: string, enableLogs: boolean): string {
let snippet = ` SentrySDK.start { options in
options.dsn = "${dsn}"
options.debug = true // Enabled debug when first installing is always helpful

// Adds IP for users.
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
Expand Down Expand Up @@ -72,7 +71,6 @@ export function getSwiftSnippet(dsn: string, enableLogs: boolean): string {
export function getObjcSnippet(dsn: string, enableLogs: boolean): string {
let snippet = ` [SentrySDK startWithConfigureOptions:^(SentryOptions * options) {
options.dsn = @"${dsn}";
options.debug = YES; // Enabled debug when first installing is always helpful

// Adds IP for users.
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
Expand Down
3 changes: 0 additions & 3 deletions test/apple/code-tools.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
SentrySDK.start { options in
options.dsn = "https://example.com/sentry-dsn"
options.debug = true // Enabled debug when first installing is always helpful

// Adds IP for users.
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
Expand Down Expand Up @@ -93,7 +92,6 @@ const validAppDelegateObjCWithSentry = `@import Sentry;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[SentrySDK startWithConfigureOptions:^(SentryOptions * options) {
options.dsn = @"https://example.com/sentry-dsn";
options.debug = YES; // Enabled debug when first installing is always helpful

// Adds IP for users.
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
Expand Down Expand Up @@ -148,7 +146,6 @@ struct TestApp: App {
init() {
SentrySDK.start { options in
options.dsn = "https://example.com/sentry-dsn"
options.debug = true // Enabled debug when first installing is always helpful

// Adds IP for users.
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
Expand Down
4 changes: 0 additions & 4 deletions test/apple/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ fi
expect(snippet).toBe(
` SentrySDK.start { options in
options.dsn = "test-dsn"
options.debug = true // Enabled debug when first installing is always helpful

// Adds IP for users.
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
Expand Down Expand Up @@ -161,7 +160,6 @@ fi
expect(snippet).toBe(
` SentrySDK.start { options in
options.dsn = "test-dsn"
options.debug = true // Enabled debug when first installing is always helpful

// Adds IP for users.
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
Expand Down Expand Up @@ -200,7 +198,6 @@ fi
expect(snippet).toBe(
` [SentrySDK startWithConfigureOptions:^(SentryOptions * options) {
options.dsn = @"test-dsn";
options.debug = YES; // Enabled debug when first installing is always helpful

// Adds IP for users.
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
Expand Down Expand Up @@ -234,7 +231,6 @@ fi
expect(snippet).toBe(
` [SentrySDK startWithConfigureOptions:^(SentryOptions * options) {
options.dsn = @"test-dsn";
options.debug = YES; // Enabled debug when first installing is always helpful

// Adds IP for users.
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
Expand Down
Loading