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
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand All @@ -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];

Expand All @@ -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];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand All @@ -63,9 +63,9 @@ - (void)testInvalidUser

SentryUser *actual = [RNSentry userFrom:@{
@"id" : @123,
@"ip_address" : @ {},
@"email" : @ {},
@"username" : @ {},
@"ip_address" : @ { },
@"email" : @ { },
@"username" : @ { },
}
otherUserKeys:nil];

Expand All @@ -79,9 +79,9 @@ - (void)testPartiallyInvalidUser

SentryUser *actual = [RNSentry userFrom:@{
@"id" : @"123",
@"ip_address" : @ {},
@"email" : @ {},
@"username" : @ {},
@"ip_address" : @ { },
@"email" : @ { },
@"username" : @ { },
}
otherUserKeys:nil];

Expand Down Expand Up @@ -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]);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/ios/RNSentryReplay.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

Expand Down
2 changes: 1 addition & 1 deletion packages/core/ios/RNSentrySDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 2 additions & 4 deletions samples/expo/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "io.sentry.expo.sample",
Expand Down Expand Up @@ -90,4 +88,4 @@
"url": "https://u.expo.dev/00000000-0000-0000-0000-000000000000"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
Loading