Skip to content

Commit 8e730e8

Browse files
authored
Merge branch 'antonis/capture-app-start-errors-v8' into antonis/test-capture-app-start-errors-android-optimise
2 parents 39391a8 + 1ad8373 commit 8e730e8

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
# Exit on error
4+
set -e
5+
6+
thisFilePath=$(dirname "$0")
7+
8+
export RN_ARCHITECTURE="new"
9+
export CONFIG="debug"
10+
export SENTRY_DISABLE_NATIVE_START="true"
11+
12+
echo "Building Android with SENTRY_DISABLE_NATIVE_START=${SENTRY_DISABLE_NATIVE_START}"
13+
echo "This build will initialize Sentry from JavaScript (auto init)"
14+
15+
"${thisFilePath}/build-android.sh"
16+
17+
# Rename the output APK to distinguish it from manual build
18+
cd "${thisFilePath}/.."
19+
if [ -f "app.apk" ]; then
20+
mv app.apk app-auto.apk
21+
echo "Build complete: app-auto.apk"
22+
fi
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
# Exit on error
4+
set -e
5+
6+
thisFilePath=$(dirname "$0")
7+
8+
export RN_ARCHITECTURE="new"
9+
export CONFIG="debug"
10+
export SENTRY_DISABLE_NATIVE_START="false"
11+
12+
echo "Building Android with SENTRY_DISABLE_NATIVE_START=${SENTRY_DISABLE_NATIVE_START}"
13+
echo "This build will initialize Sentry natively before JS (manual init)"
14+
15+
"${thisFilePath}/build-android.sh"
16+
17+
# Rename the output APK to distinguish it from auto build
18+
cd "${thisFilePath}/.."
19+
if [ -f "app.apk" ]; then
20+
mv app.apk app-manual.apk
21+
echo "Build complete: app-manual.apk"
22+
fi

0 commit comments

Comments
 (0)