diff --git a/packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.m b/packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.m index e8c04115ba..76c41d3c66 100644 --- a/packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.m +++ b/packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.m @@ -1014,7 +1014,7 @@ - (void)testCreateUserWithPartialGeoDataCreatesSentryGeoObject NSDictionary *userKeys = @{ @"id" : @"456", @"geo" : @ { @"city" : @"New York", @"country_code" : @"US" } }; - NSDictionary *userDataKeys = @{}; + NSDictionary *userDataKeys = @{ }; SentryUser *user = [RNSentry userFrom:userKeys otherUserKeys:userDataKeys]; @@ -1031,9 +1031,9 @@ - (void)testCreateUserWithPartialGeoDataCreatesSentryGeoObject - (void)testCreateUserWithEmptyGeoDataCreatesSentryGeoObject { - NSDictionary *userKeys = @{ @"id" : @"789", @"geo" : @ {} }; + NSDictionary *userKeys = @{ @"id" : @"789", @"geo" : @ { } }; - NSDictionary *userDataKeys = @{}; + NSDictionary *userDataKeys = @{ }; SentryUser *user = [RNSentry userFrom:userKeys otherUserKeys:userDataKeys]; @@ -1052,7 +1052,7 @@ - (void)testCreateUserWithoutGeoDataDoesNotCreateGeoObject { NSDictionary *userKeys = @{ @"id" : @"999", @"email" : @"test@example.com" }; - NSDictionary *userDataKeys = @{}; + NSDictionary *userDataKeys = @{ }; SentryUser *user = [RNSentry userFrom:userKeys otherUserKeys:userDataKeys]; diff --git a/packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryUserTests.m b/packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryUserTests.m index 542904cbb5..9c603940a3 100644 --- a/packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryUserTests.m +++ b/packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryUserTests.m @@ -51,9 +51,9 @@ - (void)testNullUser - (void)testEmptyUser { SentryUser *expected = [[SentryUser alloc] init]; - [expected setData:@{}]; + [expected setData:@{ }]; - SentryUser *actual = [RNSentry userFrom:@{} otherUserKeys:@{}]; + SentryUser *actual = [RNSentry userFrom:@{ } otherUserKeys:@{ }]; XCTAssertTrue([actual isEqualToUser:expected]); } @@ -63,9 +63,9 @@ - (void)testInvalidUser SentryUser *actual = [RNSentry userFrom:@{ @"id" : @123, - @"ip_address" : @ {}, - @"email" : @ {}, - @"username" : @ {}, + @"ip_address" : @ { }, + @"email" : @ { }, + @"username" : @ { }, } otherUserKeys:nil]; @@ -79,9 +79,9 @@ - (void)testPartiallyInvalidUser SentryUser *actual = [RNSentry userFrom:@{ @"id" : @"123", - @"ip_address" : @ {}, - @"email" : @ {}, - @"username" : @ {}, + @"ip_address" : @ { }, + @"email" : @ { }, + @"username" : @ { }, } otherUserKeys:nil]; @@ -156,7 +156,7 @@ - (void)testUserWithEmptyGeo SentryGeo *expectedGeo = [SentryGeo alloc]; [expected setGeo:expectedGeo]; - SentryUser *actual = [RNSentry userFrom:@{ @"id" : @"123", @"geo" : @ {} } otherUserKeys:nil]; + SentryUser *actual = [RNSentry userFrom:@{ @"id" : @"123", @"geo" : @ { } } otherUserKeys:nil]; XCTAssertTrue([actual isEqualToUser:expected]); } diff --git a/packages/core/ios/RNSentryReplay.mm b/packages/core/ios/RNSentryReplay.mm index 40575a9e4c..47bac6cdf5 100644 --- a/packages/core/ios/RNSentryReplay.mm +++ b/packages/core/ios/RNSentryReplay.mm @@ -23,7 +23,7 @@ + (BOOL)updateOptions:(NSMutableDictionary *)options } NSLog(@"Setting up session replay"); - NSDictionary *replayOptions = options[@"mobileReplayOptions"] ?: @{}; + NSDictionary *replayOptions = options[@"mobileReplayOptions"] ?: @{ }; NSString *qualityString = options[@"replaysSessionQuality"]; diff --git a/packages/core/ios/RNSentrySDK.m b/packages/core/ios/RNSentrySDK.m index 705b706de8..0f38cf6c7b 100644 --- a/packages/core/ios/RNSentrySDK.m +++ b/packages/core/ios/RNSentrySDK.m @@ -60,7 +60,7 @@ + (void)start:(NSString *)path configureOptions:(void (^)(SentryOptions *options if (options == nil) { // Fallback in case that options file could not be parsed. NSError *fallbackError = nil; - options = [PrivateSentrySDKOnly optionsWithDictionary:@{} didFailWithError:&fallbackError]; + options = [PrivateSentrySDKOnly optionsWithDictionary:@{ } didFailWithError:&fallbackError]; if (fallbackError != nil) { NSLog(@"[RNSentry] Failed to create fallback options with error: %@", fallbackError.localizedDescription); diff --git a/samples/expo/app.json b/samples/expo/app.json index 7b1d13c610..7d559aacca 100644 --- a/samples/expo/app.json +++ b/samples/expo/app.json @@ -13,9 +13,7 @@ "resizeMode": "contain", "backgroundColor": "#ffffff" }, - "assetBundlePatterns": [ - "**/*" - ], + "assetBundlePatterns": ["**/*"], "ios": { "supportsTablet": true, "bundleIdentifier": "io.sentry.expo.sample", @@ -90,4 +88,4 @@ "url": "https://u.expo.dev/00000000-0000-0000-0000-000000000000" } } -} \ No newline at end of file +} diff --git a/samples/react-native-macos/macos/sentry-react-native-sample-macOS/AppDelegate.mm b/samples/react-native-macos/macos/sentry-react-native-sample-macOS/AppDelegate.mm index 3cb5dff1a5..75b9d1c7b7 100644 --- a/samples/react-native-macos/macos/sentry-react-native-sample-macOS/AppDelegate.mm +++ b/samples/react-native-macos/macos/sentry-react-native-sample-macOS/AppDelegate.mm @@ -9,7 +9,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification self.moduleName = @"sentry-react-native-sample"; // You can add your custom initial props in the dictionary below. // They will be passed down to the ViewController used by React Native. - self.initialProps = @{}; + self.initialProps = @{ }; return [super applicationDidFinishLaunching:notification]; } diff --git a/samples/react-native/ios/sentryreactnativesample/AppDelegate.mm b/samples/react-native/ios/sentryreactnativesample/AppDelegate.mm index d08d16acdd..616456ca75 100644 --- a/samples/react-native/ios/sentryreactnativesample/AppDelegate.mm +++ b/samples/react-native/ios/sentryreactnativesample/AppDelegate.mm @@ -47,7 +47,7 @@ - (BOOL)application:(UIApplication *)application [self.reactNativeFactory startReactNativeWithModuleName:@"sentry-react-native-sample" inWindow:self.window - initialProperties:@{} + initialProperties:@{ } launchOptions:launchOptions]; [[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];