1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 01:41:37 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

add logic to support SENTRY_PROPERTIES parameter (#14)

This commit is contained in:
波仔糕
2025-06-15 10:10:04 +08:00
committed by GitHub
parent 6e7d5de82e
commit 2e37d6f1c7

View File

@@ -149,6 +149,14 @@ async function runReactNativeBundleCommand({
const bundleParams = await checkPlugins();
const isSentry = bundleParams.sentry;
if (isSentry) {
if (platform === 'ios') {
process.env.SENTRY_PROPERTIES = 'ios/sentry.properties';
} else if (platform === 'android') {
process.env.SENTRY_PROPERTIES = 'android/sentry.properties';
}
}
let bundleCommand = 'bundle';
if (usingExpo) {
bundleCommand = 'export:embed';