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

Compare commits

...

2 Commits

Author SHA1 Message Date
Sunny Luo
c7d0aadbf2 Update package.json 2025-06-15 18:19:17 +08:00
波仔糕
2e37d6f1c7 add logic to support SENTRY_PROPERTIES parameter (#14) 2025-06-15 10:10:04 +08:00
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update-cli",
"version": "1.45.5",
"version": "1.45.6",
"description": "command line tool for react-native-update (remote updates for react native)",
"main": "index.js",
"bin": {

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';