Skip to content

Commit 2e37d6f

Browse files
authored
add logic to support SENTRY_PROPERTIES parameter (#14)
1 parent 6e7d5de commit 2e37d6f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/bundle.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ async function runReactNativeBundleCommand({
149149
const bundleParams = await checkPlugins();
150150
const isSentry = bundleParams.sentry;
151151

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+
152160
let bundleCommand = 'bundle';
153161
if (usingExpo) {
154162
bundleCommand = 'export:embed';

0 commit comments

Comments
 (0)