Skip to content

Commit 997bffe

Browse files
chore: update to sentry/[email protected] (#64)
1 parent 9ccff54 commit 997bffe

File tree

11 files changed

+702
-157
lines changed

11 files changed

+702
-157
lines changed

ios/Podfile.lock

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,12 +1211,12 @@ PODS:
12111211
- ReactCommon/turbomodule/bridging
12121212
- ReactCommon/turbomodule/core
12131213
- Yoga
1214-
- RNSentry (5.9.1):
1214+
- RNSentry (5.22.2):
1215+
- hermes-engine
12151216
- React-Core
1216-
- Sentry/HybridSDK (= 8.10.0)
1217-
- Sentry/HybridSDK (8.10.0):
1218-
- SentryPrivate (= 8.10.0)
1219-
- SentryPrivate (8.10.0)
1217+
- React-hermes
1218+
- Sentry/HybridSDK (= 8.25.0)
1219+
- Sentry/HybridSDK (8.25.0)
12201220
- SocketRocket (0.7.0)
12211221
- Yoga (0.0.0)
12221222

@@ -1286,7 +1286,6 @@ DEPENDENCIES:
12861286
SPEC REPOS:
12871287
trunk:
12881288
- Sentry
1289-
- SentryPrivate
12901289
- SocketRocket
12911290

12921291
EXTERNAL SOURCES:
@@ -1468,9 +1467,8 @@ SPEC CHECKSUMS:
14681467
ReactCommon: f42444e384d82ab89184aed5d6f3142748b54768
14691468
RNGestureHandler: 2282cfbcf86c360d29f44ace393203afd5c6cff7
14701469
RNScreens: b32a9ff15bea7fcdbe5dff6477bc503f792b1208
1471-
RNSentry: 0a1daa8ee81e2776f977ae8c66e67c8d85587828
1472-
Sentry: 71cd4427146ac56eab6e70401ac7a24384c3d3b5
1473-
SentryPrivate: 9334613897c85a9e30f2c9d7a331af8aaa4fe71f
1470+
RNSentry: f6a5aee809d646763640130714d1fdfe69aac36b
1471+
Sentry: cd86fc55628f5b7c572cabe66cc8f95a9d2f165a
14741472
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
14751473
Yoga: 348f8b538c3ed4423eb58a8e5730feec50bce372
14761474

ios/PrivacyInfo.xcprivacy

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@
66
<array>
77
<dict>
88
<key>NSPrivacyAccessedAPIType</key>
9-
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
9+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
1010
<key>NSPrivacyAccessedAPITypeReasons</key>
1111
<array>
12-
<string>C617.1</string>
12+
<string>CA92.1</string>
1313
</array>
1414
</dict>
1515
<dict>
1616
<key>NSPrivacyAccessedAPIType</key>
17-
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
17+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
1818
<key>NSPrivacyAccessedAPITypeReasons</key>
1919
<array>
20-
<string>CA92.1</string>
20+
<string>35F9.1</string>
2121
</array>
2222
</dict>
2323
<dict>
2424
<key>NSPrivacyAccessedAPIType</key>
25-
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
25+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
2626
<key>NSPrivacyAccessedAPITypeReasons</key>
2727
<array>
28-
<string>35F9.1</string>
28+
<string>C617.1</string>
2929
</array>
3030
</dict>
3131
</array>

ios/sentry_react_native.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
);
269269
runOnlyForDeploymentPostprocessing = 0;
270270
shellPath = /bin/sh;
271-
shellScript = "export SENTRY_PROPERTIES=sentry.properties\nexport EXTRA_PACKAGER_ARGS=\"--sourcemap-output $DERIVED_FILE_DIR/main.jsbundle.map\"\nset -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\nCOMMAND=\"'../node_modules/@sentry/cli/bin/sentry-cli react-native xcode $REACT_NATIVE_XCODE'\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $COMMAND\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT ../node_modules/@sentry/react-native/scripts/collect-modules.sh\"\n";
271+
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"${REACT_NATIVE_PATH}/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"${REACT_NATIVE_PATH}/scripts/react-native-xcode.sh\"\nSENTRY_XCODE=\"../node_modules/@sentry/react-native/scripts/sentry-xcode.sh\"\nBUNDLE_REACT_NATIVE=\"/bin/sh $SENTRY_XCODE $REACT_NATIVE_XCODE\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT '$BUNDLE_REACT_NATIVE'\"\n";
272272
};
273273
00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
274274
isa = PBXShellScriptBuildPhase;
@@ -299,7 +299,7 @@
299299
);
300300
runOnlyForDeploymentPostprocessing = 0;
301301
shellPath = /bin/sh;
302-
shellScript = "\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nif [ -f \"$WITH_ENVIRONMENT\" ]; then\n . \"$WITH_ENVIRONMENT\"\nfi \nexport SENTRY_PROPERTIES=sentry.properties\n[ \"$SENTRY_INCLUDE_NATIVE_SOURCES\" = \"true\" ] && INCLUDE_SOURCES_FLAG=\"--include-sources\" || INCLUDE_SOURCES_FLAG=\"\"\n../node_modules/@sentry/cli/bin/sentry-cli debug-files upload \"$INCLUDE_SOURCES_FLAG\" \"$DWARF_DSYM_FOLDER_PATH\"\n";
302+
shellScript = "/bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh\n";
303303
};
304304
A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */ = {
305305
isa = PBXShellScriptBuildPhase;

metro.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
2+
const {withSentryConfig} = require('@sentry/react-native/metro');
23

34
/**
45
* Metro configuration
56
* https://reactnative.dev/docs/metro
67
*
78
* @type {import('metro-config').MetroConfig}
89
*/
9-
const config = {};
10+
const userConfig = {};
1011

11-
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
12+
const config = mergeConfig(getDefaultConfig(__dirname), userConfig);
13+
14+
module.exports = withSentryConfig(config);

0 commit comments

Comments
 (0)