Skip to content

Commit 8f41596

Browse files
committed
add sentry
1 parent df4378f commit 8f41596

11 files changed

Lines changed: 1375 additions & 1763 deletions

File tree

Example/expoUsePushy/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "expo/tsconfig.base",
33
"compilerOptions": {
4-
"strict": true
4+
"strict": true,
5+
"jsx": "react-jsx"
56
}
67
}

Example/testHotUpdate/.mcp.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"mcpServers": {
3+
"Sentry": {
4+
"url": "https://mcp.sentry.dev/mcp/charmlot/testhotupdate"
5+
}
6+
}
7+
}

Example/testHotUpdate/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def enableProguardInReleaseBuilds = false
7070
*/
7171
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
7272

73+
apply from: new File(["node", "--print", "require.resolve('@sentry/react-native/package.json')"].execute().text.trim(), "../sentry.gradle")
7374
android {
7475
ndkVersion rootProject.ext.ndkVersion
7576
buildToolsVersion rootProject.ext.buildToolsVersion
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
auth.token=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
3+
4+
defaults.org=charmlot
5+
defaults.project=testhotupdate
6+
7+
defaults.url=https://sentry.io/

Example/testHotUpdate/bun.lock

Lines changed: 1032 additions & 1529 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/testHotUpdate/ios/AwesomeProject.xcodeproj/project.pbxproj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
125125
E235C05ADACE081382539298 /* [CP] Copy Pods Resources */,
126126
2177C9C260D54703D642190E /* [CP] Embed Pods Frameworks */,
127+
790FEC8AEE9F4658A54B3C3D /* Upload Debug Symbols to Sentry */,
127128
);
128129
buildRules = (
129130
);
@@ -193,7 +194,7 @@
193194
);
194195
runOnlyForDeploymentPostprocessing = 0;
195196
shellPath = /bin/sh;
196-
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\"\n\n/bin/sh -c \"\\\"$WITH_ENVIRONMENT\\\" \\\"$REACT_NATIVE_XCODE\\\"\"\n";
197+
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nSENTRY_XCODE=\"$REACT_NATIVE_PATH/../@sentry/react-native/scripts/sentry-xcode.sh\"\n\n/bin/sh -c \"\\\"$WITH_ENVIRONMENT\\\" \\\"$SENTRY_XCODE\\\"\"\n";
197198
};
198199
2177C9C260D54703D642190E /* [CP] Embed Pods Frameworks */ = {
199200
isa = PBXShellScriptBuildPhase;
@@ -212,6 +213,20 @@
212213
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AwesomeProject/Pods-AwesomeProject-frameworks.sh\"\n";
213214
showEnvVarsInLog = 0;
214215
};
216+
790FEC8AEE9F4658A54B3C3D /* Upload Debug Symbols to Sentry */ = {
217+
isa = PBXShellScriptBuildPhase;
218+
buildActionMask = 2147483647;
219+
files = (
220+
);
221+
inputPaths = (
222+
);
223+
name = "Upload Debug Symbols to Sentry";
224+
outputPaths = (
225+
);
226+
runOnlyForDeploymentPostprocessing = 0;
227+
shellPath = /bin/sh;
228+
shellScript = "/bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh";
229+
};
215230
C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = {
216231
isa = PBXShellScriptBuildPhase;
217232
buildActionMask = 2147483647;

Example/testHotUpdate/ios/Podfile.lock

Lines changed: 49 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ PODS:
14021402
- ReactCommon/turbomodule/core
14031403
- ReactNativeDependencies
14041404
- Yoga
1405-
- react-native-safe-area-context (5.7.0):
1405+
- react-native-safe-area-context (5.8.0):
14061406
- hermes-engine
14071407
- RCTRequired
14081408
- RCTTypeSafety
@@ -1414,8 +1414,8 @@ PODS:
14141414
- React-graphics
14151415
- React-ImageManager
14161416
- React-jsi
1417-
- react-native-safe-area-context/common (= 5.7.0)
1418-
- react-native-safe-area-context/fabric (= 5.7.0)
1417+
- react-native-safe-area-context/common (= 5.8.0)
1418+
- react-native-safe-area-context/fabric (= 5.8.0)
14191419
- React-NativeModulesApple
14201420
- React-RCTFabric
14211421
- React-renderercss
@@ -1426,7 +1426,7 @@ PODS:
14261426
- ReactCommon/turbomodule/core
14271427
- ReactNativeDependencies
14281428
- Yoga
1429-
- react-native-safe-area-context/common (5.7.0):
1429+
- react-native-safe-area-context/common (5.8.0):
14301430
- hermes-engine
14311431
- RCTRequired
14321432
- RCTTypeSafety
@@ -1448,7 +1448,7 @@ PODS:
14481448
- ReactCommon/turbomodule/core
14491449
- ReactNativeDependencies
14501450
- Yoga
1451-
- react-native-safe-area-context/fabric (5.7.0):
1451+
- react-native-safe-area-context/fabric (5.8.0):
14521452
- hermes-engine
14531453
- RCTRequired
14541454
- RCTTypeSafety
@@ -1471,7 +1471,7 @@ PODS:
14711471
- ReactCommon/turbomodule/core
14721472
- ReactNativeDependencies
14731473
- Yoga
1474-
- react-native-update (10.40.0):
1474+
- react-native-update (10.40.2):
14751475
- hermes-engine
14761476
- RCTRequired
14771477
- RCTTypeSafety
@@ -1484,7 +1484,7 @@ PODS:
14841484
- React-graphics
14851485
- React-ImageManager
14861486
- React-jsi
1487-
- react-native-update/RCTPushy (= 10.40.0)
1487+
- react-native-update/RCTPushy (= 10.40.2)
14881488
- React-NativeModulesApple
14891489
- React-RCTFabric
14901490
- React-renderercss
@@ -1496,7 +1496,7 @@ PODS:
14961496
- ReactNativeDependencies
14971497
- SSZipArchive
14981498
- Yoga
1499-
- react-native-update/RCTPushy (10.40.0):
1499+
- react-native-update/RCTPushy (10.40.2):
15001500
- hermes-engine
15011501
- RCTRequired
15021502
- RCTTypeSafety
@@ -1904,7 +1904,7 @@ PODS:
19041904
- React-perflogger (= 0.85.3)
19051905
- React-utils (= 0.85.3)
19061906
- ReactNativeDependencies
1907-
- ReactNativeCameraKit (17.0.1):
1907+
- ReactNativeCameraKit (18.0.0):
19081908
- hermes-engine
19091909
- RCTRequired
19101910
- RCTTypeSafety
@@ -1927,7 +1927,31 @@ PODS:
19271927
- ReactNativeDependencies
19281928
- Yoga
19291929
- ReactNativeDependencies (0.85.3)
1930-
- RNSVG (15.15.4):
1930+
- RNSentry (8.13.0):
1931+
- hermes-engine
1932+
- RCTRequired
1933+
- RCTTypeSafety
1934+
- React-Core
1935+
- React-Core-prebuilt
1936+
- React-debug
1937+
- React-Fabric
1938+
- React-featureflags
1939+
- React-graphics
1940+
- React-hermes
1941+
- React-ImageManager
1942+
- React-jsi
1943+
- React-NativeModulesApple
1944+
- React-RCTFabric
1945+
- React-renderercss
1946+
- React-rendererdebug
1947+
- React-utils
1948+
- ReactCodegen
1949+
- ReactCommon/turbomodule/bridging
1950+
- ReactCommon/turbomodule/core
1951+
- ReactNativeDependencies
1952+
- Sentry (= 9.15.0)
1953+
- Yoga
1954+
- RNSVG (15.15.5):
19311955
- hermes-engine
19321956
- RCTRequired
19331957
- RCTTypeSafety
@@ -1948,9 +1972,9 @@ PODS:
19481972
- ReactCommon/turbomodule/bridging
19491973
- ReactCommon/turbomodule/core
19501974
- ReactNativeDependencies
1951-
- RNSVG/common (= 15.15.4)
1975+
- RNSVG/common (= 15.15.5)
19521976
- Yoga
1953-
- RNSVG/common (15.15.4):
1977+
- RNSVG/common (15.15.5):
19541978
- hermes-engine
19551979
- RCTRequired
19561980
- RCTTypeSafety
@@ -1994,6 +2018,9 @@ PODS:
19942018
- ReactCommon/turbomodule/core
19952019
- ReactNativeDependencies
19962020
- Yoga
2021+
- Sentry (9.15.0):
2022+
- Sentry/Core (= 9.15.0)
2023+
- Sentry/Core (9.15.0)
19972024
- SSZipArchive (2.4.3)
19982025
- Yoga (0.0.0)
19992026

@@ -2075,12 +2102,14 @@ DEPENDENCIES:
20752102
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
20762103
- ReactNativeCameraKit (from `../node_modules/react-native-camera-kit`)
20772104
- ReactNativeDependencies (from `../node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec`)
2105+
- "RNSentry (from `../node_modules/@sentry/react-native`)"
20782106
- RNSVG (from `../node_modules/react-native-svg`)
20792107
- RNVectorIcons (from `../node_modules/react-native-vector-icons`)
20802108
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
20812109

20822110
SPEC REPOS:
20832111
trunk:
2112+
- Sentry
20842113
- SSZipArchive
20852114

20862115
EXTERNAL SOURCES:
@@ -2237,6 +2266,8 @@ EXTERNAL SOURCES:
22372266
:path: "../node_modules/react-native-camera-kit"
22382267
ReactNativeDependencies:
22392268
:podspec: "../node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec"
2269+
RNSentry:
2270+
:path: "../node_modules/@sentry/react-native"
22402271
RNSVG:
22412272
:path: "../node_modules/react-native-svg"
22422273
RNVectorIcons:
@@ -2284,8 +2315,8 @@ SPEC CHECKSUMS:
22842315
React-Mapbuffer: fec3e025f0ffba6b32cd2a1d7bbdee3e269aae90
22852316
React-microtasksnativemodule: ab33a818d339f5a1da308893c11b487be66121a8
22862317
React-mutationobservernativemodule: a42d1626651ccd7d0dc02a56e69d4ec77c248893
2287-
react-native-safe-area-context: 6b4966397ada0f7dd481e4486a2ef936834861a1
2288-
react-native-update: 5236971815a7a85b59ec5752b2cb984a7fb88867
2318+
react-native-safe-area-context: fb5c8ee9f6dd62ef710611b3d370c501f42a4ac0
2319+
react-native-update: a819495065d930e13225dbbac09f4e3094eb1f6a
22892320
React-NativeModulesApple: deba264b03bd79c6bd61014fa30e40321b5e443a
22902321
React-networking: 35e6070b084f435429f85c5db40b4d5b38652fe9
22912322
React-oscompat: 64a0c7ef5441855dc6e2a6afe8ba8f92aa05075e
@@ -2319,10 +2350,12 @@ SPEC CHECKSUMS:
23192350
ReactAppDependencyProvider: 25c9c516839be2c5e3d3344f95dc7da5f7e63fc2
23202351
ReactCodegen: c8f81e6c6f762dcf442a6203a1fb58f7dafc8014
23212352
ReactCommon: 7dfc3250793bf36cf221096ff59e1179e13eef7f
2322-
ReactNativeCameraKit: d927f731400b1f45f7b441668d2f31cb873198f6
2353+
ReactNativeCameraKit: cf0ae8d9e1ab991453dbe97c3ba98e69f1f0bc5b
23232354
ReactNativeDependencies: ccd3ebb763797cd6dd61e590dc5053295977e840
2324-
RNSVG: 04044c3abcf177fd674a1a3d13097efa1adebcbe
2355+
RNSentry: ce1f0007dac49bd8277c97599859e2a373f1ec94
2356+
RNSVG: 0e52210d4d43165e7e2cf9c890a9848b27e513ac
23252357
RNVectorIcons: 97f26211c07d69e45b189f9dd0dbbe5e2d2b0b92
2358+
Sentry: d5b72948d692d369ded835e2e77baadcd3c492dd
23262359
SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef
23272360
Yoga: 77dfa8673de2874e1855002ae59c68b8be9b007b
23282361

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
auth.token=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
3+
4+
defaults.org=charmlot
5+
defaults.project=testhotupdate
6+
7+
defaults.url=https://sentry.io/
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
22

3+
const {
4+
withSentryConfig
5+
} = require("@sentry/react-native/metro");
6+
37
/**
48
* Metro configuration
59
* https://reactnative.dev/docs/metro
@@ -8,4 +12,4 @@ const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
812
*/
913
const config = {};
1014

11-
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
15+
module.exports = withSentryConfig(mergeConfig(getDefaultConfig(__dirname), config));

Example/testHotUpdate/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@
1616
"aa": "cd android && ./gradlew assembleRelease bundleRelease"
1717
},
1818
"dependencies": {
19+
"@sentry/react-native": "^8.13.0",
1920
"form-data": "^4.0.5",
2021
"patch-package": "^8.0.1",
2122
"react": "19.2.3",
2223
"react-native": "0.85.3",
23-
"react-native-camera-kit": "^17.0.1",
24-
"react-native-paper": "^5.15.0",
25-
"react-native-safe-area-context": "^5.7.0",
26-
"react-native-svg": "^15.15.4",
27-
"react-native-update": "^10.40.0",
24+
"react-native-camera-kit": "^18.0.0",
25+
"react-native-paper": "^5.15.3",
26+
"react-native-safe-area-context": "^5.8.0",
27+
"react-native-svg": "^15.15.5",
28+
"react-native-update": "^10.40.2",
2829
"react-native-vector-icons": "^10.3.0"
2930
},
3031
"devDependencies": {

0 commit comments

Comments
 (0)