Skip to content

Commit eb995ae

Browse files
🐛 Fix version name uploading on Android
1 parent 30eb86f commit eb995ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/upload_sourcemap.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ else
2525
exit 0
2626
fi
2727
fi
28-
if [ ! "${INSTABUG_APP_VERSION_CODE}" ] || [ -z "${INSTABUG_APP_VERSION_CODE}" ]; then
28+
if [ ! "${INSTABUG_APP_VERSION_NAME}" ] || [ -z "${INSTABUG_APP_VERSION_NAME}" ]; then
2929
INSTABUG_APP_VERSION_NAME=$(grep "versionName" android/app/build.gradle | awk '{print $2}' | tr -d \''"\')
3030
if [ ! "${INSTABUG_APP_VERSION_NAME}" ] || [ -z "${INSTABUG_APP_VERSION_NAME}" ]; then
3131
echo "versionName could not be found, please upload the sourcemap files manually"
@@ -34,6 +34,8 @@ else
3434
fi
3535
VERSION='{"code":"'"$INSTABUG_APP_VERSION_CODE"'","name":"'"$INSTABUG_APP_VERSION_NAME"'"}'
3636
echo "Instabug: Token found" "\""${INSTABUG_APP_TOKEN}"\""
37+
echo "Instabug: Version Code found" "\""${INSTABUG_APP_VERSION_CODE}"\""
38+
echo "Instabug: Version Name found" "\""${INSTABUG_APP_VERSION_NAME}"\""
3739
echo "Instabug: Generating sourcemap files..."
3840
IS_HERMES=$(grep "enableHermes:" ./android/app/build.gradle)
3941
if [[ $IS_HERMES == *"true"* ]]; then

0 commit comments

Comments
 (0)