Skip to content
Draft
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 @@ -236,10 +236,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-RNSentryCocoaTesterTests/Pods-RNSentryCocoaTesterTests-resources-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-RNSentryCocoaTesterTests/Pods-RNSentryCocoaTesterTests-resources-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNSentryCocoaTesterTests/Pods-RNSentryCocoaTesterTests-resources.sh\"\n";
Expand Down Expand Up @@ -434,7 +438,7 @@
"\"$(PODS_TARGET_SRCROOT)/include/\"",
"\"${PODS_ROOT}/Sentry/Sources/Sentry/include\"",
);
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = io.sentry.RNSentryCocoaTesterTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -501,7 +505,7 @@
"\"$(PODS_TARGET_SRCROOT)/include/\"",
"\"${PODS_ROOT}/Sentry/Sources/Sentry/include\"",
);
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = io.sentry.RNSentryCocoaTesterTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ - (void)testCreateOptionsWithDictionaryRemovesPerformanceProperties
XCTAssertEqual(
actualOptions.tracesSampleRate, nil, @"Traces sample rate should not be passed to native");
XCTAssertEqual(actualOptions.tracesSampler, nil, @"Traces sampler should not be passed to native");
XCTAssertEqual(actualOptions.enableTracing, false, @"EnableTracing should not be passed to native");
}

- (void)testCaptureFailedRequestsIsDisabled
Expand Down Expand Up @@ -331,10 +330,7 @@ - (void)testCreateOptionsWithDictionaryEnableLogsEnabled
XCTAssertNotNil(actualOptions, @"Did not create sentry options");
XCTAssertNil(error, @"Should not pass no error");

id experimentalOptions = [actualOptions valueForKey:@"experimental"];
XCTAssertNotNil(experimentalOptions, @"Experimental options should not be nil");

BOOL enableLogs = [[experimentalOptions valueForKey:@"enableLogs"] boolValue];
BOOL enableLogs = [[actualOptions valueForKey:@"enableLogs"] boolValue];
XCTAssertTrue(enableLogs, @"enableLogs should be enabled");
}

Expand All @@ -352,11 +348,8 @@ - (void)testCreateOptionsWithDictionaryEnableLogsDisabled

XCTAssertNotNil(actualOptions, @"Did not create sentry options");
XCTAssertNil(error, @"Should not pass no error");

id experimentalOptions = [actualOptions valueForKey:@"experimental"];
XCTAssertNotNil(experimentalOptions, @"Experimental options should not be nil");

BOOL enableLogs = [[experimentalOptions valueForKey:@"enableLogs"] boolValue];

BOOL enableLogs = [[actualOptions valueForKey:@"enableLogs"] boolValue];
XCTAssertFalse(enableLogs, @"enableLogs should be disabled");
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/ios/RNSentryExperimentalOptions.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
if (sentryOptions == nil) {
return;
}
sentryOptions.experimental.enableLogs = enabled;
sentryOptions.enableLogs = enabled;

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build legacy macos dev no-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build legacy macos production no-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build legacy ios dev no-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build ios production no-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build new ios production no-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build new ios dev no-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build ios dev no-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build legacy ios dev dynamic-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build ios dev dynamic-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build legacy ios production no-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build legacy ios production dynamic-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'

Check failure on line 27 in packages/core/ios/RNSentryExperimentalOptions.m

View workflow job for this annotation

GitHub Actions / Build ios production dynamic-frameworks

property 'enableLogs' not found on object of type 'SentryOptions *'
}

@end
Loading