mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 01:41:37 +08:00
add logic to support SENTRY_PROPERTIES parameter (#14)
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user