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 3
3
* React Native 0.69 support
4
4
* Bumps the minimum supported React Native version to 0.60.0
5
5
* Drops manual linking support
6
+ * Adjusts source maps auto upload script on Android to support the bundled Hermes in RN v0.69
6
7
7
8
## 11.0.2 (2022-07-20)
8
9
Original file line number Diff line number Diff line change 57
57
* ) echo " unknown: $OSTYPE " ;;
58
58
esac
59
59
60
- # Find HERMES command file name
60
+ # Find hermes(c) binary file path
61
61
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
68
70
fi
69
71
# Generate android sourcemap (HERMES)
70
72
npx react-native bundle --platform android \
74
76
--bundle-output index.android.bundle \
75
77
--sourcemap-output index.android.bundle.packager.map \
76
78
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
78
80
79
81
cp index.android.bundle.hbc.map index.android.bundle.compiler.map
80
82
You can’t perform that action at this time.
0 commit comments