File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 33* React Native 0.69 support
44* Bumps the minimum supported React Native version to 0.60.0
55* Drops manual linking support
6+ * Adjusts source maps auto upload script on Android to support the bundled Hermes in RN v0.69
67
78## 11.0.2 (2022-07-20)
89
Original file line number Diff line number Diff line change 5757 * ) echo " unknown: $OSTYPE " ;;
5858 esac
5959
60- # Find HERMES command file name
60+ # Find hermes(c) binary file path
6161 INSTALLED_RN_VERSION_MAJOR=$( node -p " require('./node_modules/react-native/package.json').version" | cut -d " ." -f2)
62- if [ " $INSTALLED_RN_VERSION_MAJOR " -ge 63 ]
63- then
64- HERMES_COMMAND_NAME=' hermesc'
65- else
66- HERMES_COMMAND_NAME=' hermes'
67-
62+ if [ " $INSTALLED_RN_VERSION_MAJOR " -ge 69 ]
63+ then
64+ HERMES_PATH=node_modules/react-native/sdks/hermesc/$HERMES_OS_BIN /hermesc
65+ elif [ " $INSTALLED_RN_VERSION_MAJOR " -lt 63 ]
66+ then
67+ HERMES_PATH=node_modules/hermes-engine/$HERMES_OS_BIN /hermes
68+ else
69+ HERMES_PATH=node_modules/hermes-engine/$HERMES_OS_BIN /hermesc
6870 fi
6971 # Generate android sourcemap (HERMES)
7072 npx react-native bundle --platform android \
7476 --bundle-output index.android.bundle \
7577 --sourcemap-output index.android.bundle.packager.map \
7678
77- node_modules/hermes-engine/ $HERMES_OS_BIN / $HERMES_COMMAND_NAME -emit-binary -out index.android.bundle.hbc index.android.bundle -O -output-source-map > /dev/null 2>&1
79+ $HERMES_PATH -emit-binary -out index.android.bundle.hbc index.android.bundle -O -output-source-map > /dev/null 2>&1
7880
7981 cp index.android.bundle.hbc.map index.android.bundle.compiler.map
8082
You can’t perform that action at this time.
0 commit comments