react-native-update-cli 1.45.5 → 1.45.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bundle.js +7 -0
- package/package.json +1 -1
- package/src/bundle.ts +8 -0
package/lib/bundle.js
CHANGED
|
@@ -168,6 +168,13 @@ async function runReactNativeBundleCommand({ bundleName, dev, entryFile, outputF
|
|
|
168
168
|
}
|
|
169
169
|
const bundleParams = await (0, _utils.checkPlugins)();
|
|
170
170
|
const isSentry = bundleParams.sentry;
|
|
171
|
+
if (isSentry) {
|
|
172
|
+
if (platform === 'ios') {
|
|
173
|
+
process.env.SENTRY_PROPERTIES = 'ios/sentry.properties';
|
|
174
|
+
} else if (platform === 'android') {
|
|
175
|
+
process.env.SENTRY_PROPERTIES = 'android/sentry.properties';
|
|
176
|
+
}
|
|
177
|
+
}
|
|
171
178
|
let bundleCommand = 'bundle';
|
|
172
179
|
if (usingExpo) {
|
|
173
180
|
bundleCommand = 'export:embed';
|
package/package.json
CHANGED
package/src/bundle.ts
CHANGED
|
@@ -149,6 +149,14 @@ async function runReactNativeBundleCommand({
|
|
|
149
149
|
const bundleParams = await checkPlugins();
|
|
150
150
|
const isSentry = bundleParams.sentry;
|
|
151
151
|
|
|
152
|
+
if (isSentry) {
|
|
153
|
+
if (platform === 'ios') {
|
|
154
|
+
process.env.SENTRY_PROPERTIES = 'ios/sentry.properties';
|
|
155
|
+
} else if (platform === 'android') {
|
|
156
|
+
process.env.SENTRY_PROPERTIES = 'android/sentry.properties';
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
152
160
|
let bundleCommand = 'bundle';
|
|
153
161
|
if (usingExpo) {
|
|
154
162
|
bundleCommand = 'export:embed';
|