From 2e37d6f1c7d110ecaa9d0d0730e400481d5f3688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B3=A2=E4=BB=94=E7=B3=95?= Date: Sun, 15 Jun 2025 10:10:04 +0800 Subject: [PATCH] add logic to support SENTRY_PROPERTIES parameter (#14) --- src/bundle.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bundle.ts b/src/bundle.ts index e7e13a9..63bab63 100644 --- a/src/bundle.ts +++ b/src/bundle.ts @@ -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';