Skip to content

Commit c244ba0

Browse files
committed
enable Hermes
1 parent c2f37ab commit c244ba0

File tree

6 files changed

+62
-10
lines changed

6 files changed

+62
-10
lines changed

Diff for: android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import com.android.build.OutputFile
44

55
project.ext.react = [
66
entryFile: "index.js",
7-
enableHermes: false, // clean and rebuild if changing
7+
enableHermes: true, // clean and rebuild if changing
88
]
99

1010
apply from: "../../node_modules/react-native/react.gradle"

Diff for: android/app/proguard-rules.pro

+3
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@
6868
-dontwarn java.nio.file.*
6969
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
7070
-dontwarn okio.**
71+
72+
-keep class com.facebook.hermes.unicode.** { *; }
73+
-keep class com.facebook.jni.** { *; }

Diff for: ios/CalendarsExample.xcodeproj/project.pbxproj

+21-2
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@
608608
13B07F8E1A680F5B00A75B9A /* Resources */,
609609
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
610610
05542492CD593865AF93EA34 /* [CP] Copy Pods Resources */,
611+
38FC2B67E093F0BC5011A80B /* [CP] Embed Pods Frameworks */,
611612
);
612613
buildRules = (
613614
);
@@ -1080,6 +1081,24 @@
10801081
shellPath = /bin/sh;
10811082
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
10821083
};
1084+
38FC2B67E093F0BC5011A80B /* [CP] Embed Pods Frameworks */ = {
1085+
isa = PBXShellScriptBuildPhase;
1086+
buildActionMask = 2147483647;
1087+
files = (
1088+
);
1089+
inputPaths = (
1090+
"${PODS_ROOT}/Target Support Files/Pods-CalendarsExample/Pods-CalendarsExample-frameworks.sh",
1091+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework/hermes",
1092+
);
1093+
name = "[CP] Embed Pods Frameworks";
1094+
outputPaths = (
1095+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
1096+
);
1097+
runOnlyForDeploymentPostprocessing = 0;
1098+
shellPath = /bin/sh;
1099+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CalendarsExample/Pods-CalendarsExample-frameworks.sh\"\n";
1100+
showEnvVarsInLog = 0;
1101+
};
10831102
4F4B8DF7F22E3DD11F0E664A /* [CP] Check Pods Manifest.lock */ = {
10841103
isa = PBXShellScriptBuildPhase;
10851104
buildActionMask = 2147483647;
@@ -1372,7 +1391,7 @@
13721391
COPY_PHASE_STRIP = NO;
13731392
ENABLE_STRICT_OBJC_MSGSEND = YES;
13741393
ENABLE_TESTABILITY = YES;
1375-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 ";
1394+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 i386";
13761395
GCC_C_LANGUAGE_STANDARD = gnu99;
13771396
GCC_DYNAMIC_NO_PIC = NO;
13781397
GCC_NO_COMMON_BLOCKS = YES;
@@ -1427,7 +1446,7 @@
14271446
COPY_PHASE_STRIP = YES;
14281447
ENABLE_NS_ASSERTIONS = NO;
14291448
ENABLE_STRICT_OBJC_MSGSEND = YES;
1430-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 ";
1449+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 i386";
14311450
GCC_C_LANGUAGE_STANDARD = gnu99;
14321451
GCC_NO_COMMON_BLOCKS = YES;
14331452
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;

Diff for: ios/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ target 'CalendarsExample' do
1010
use_react_native!(
1111
:path => config[:reactNativePath],
1212
# to enable hermes on iOS, change `false` to `true` and then install pods
13-
:hermes_enabled => false
13+
:hermes_enabled => true
1414
)
1515

1616
target 'CalendarsExampleTests' do

Diff for: ios/Podfile.lock

+35-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ PODS:
1111
- ReactCommon/turbomodule/core (= 0.66.4)
1212
- fmt (6.2.1)
1313
- glog (0.3.5)
14+
- hermes-engine (0.9.0)
1415
- HMSegmentedControl (1.5.6)
16+
- libevent (2.1.12)
1517
- RCT-Folly (2021.06.28.00-v2):
1618
- boost
1719
- DoubleConversion
@@ -23,6 +25,12 @@ PODS:
2325
- DoubleConversion
2426
- fmt (~> 6.2.1)
2527
- glog
28+
- RCT-Folly/Futures (2021.06.28.00-v2):
29+
- boost
30+
- DoubleConversion
31+
- fmt (~> 6.2.1)
32+
- glog
33+
- libevent
2634
- RCTRequired (0.66.4)
2735
- RCTTypeSafety (0.66.4):
2836
- FBLazyVector (= 0.66.4)
@@ -189,6 +197,17 @@ PODS:
189197
- React-logger (= 0.66.4)
190198
- React-perflogger (= 0.66.4)
191199
- React-runtimeexecutor (= 0.66.4)
200+
- React-hermes (0.66.4):
201+
- DoubleConversion
202+
- glog
203+
- hermes-engine
204+
- RCT-Folly (= 2021.06.28.00-v2)
205+
- RCT-Folly/Futures (= 2021.06.28.00-v2)
206+
- React-cxxreact (= 0.66.4)
207+
- React-jsi (= 0.66.4)
208+
- React-jsiexecutor (= 0.66.4)
209+
- React-jsinspector (= 0.66.4)
210+
- React-perflogger (= 0.66.4)
192211
- React-jsi (0.66.4):
193212
- boost (= 1.76.0)
194213
- DoubleConversion
@@ -275,13 +294,13 @@ PODS:
275294
- React-jsi (= 0.66.4)
276295
- React-logger (= 0.66.4)
277296
- React-perflogger (= 0.66.4)
278-
- ReactNativeNavigation (7.25.4):
297+
- ReactNativeNavigation (7.28.0):
279298
- HMSegmentedControl
280299
- React-Core
281300
- React-RCTImage
282301
- React-RCTText
283-
- ReactNativeNavigation/Core (= 7.25.4)
284-
- ReactNativeNavigation/Core (7.25.4):
302+
- ReactNativeNavigation/Core (= 7.28.0)
303+
- ReactNativeNavigation/Core (7.28.0):
285304
- HMSegmentedControl
286305
- React-Core
287306
- React-RCTImage
@@ -294,6 +313,8 @@ DEPENDENCIES:
294313
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
295314
- FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
296315
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
316+
- hermes-engine (~> 0.9.0)
317+
- libevent (~> 2.1.12)
297318
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
298319
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
299320
- RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
@@ -304,6 +325,7 @@ DEPENDENCIES:
304325
- React-Core/RCTWebSocket (from `../node_modules/react-native/`)
305326
- React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
306327
- React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
328+
- React-hermes (from `../node_modules/react-native/ReactCommon/hermes`)
307329
- React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
308330
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
309331
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
@@ -326,7 +348,9 @@ DEPENDENCIES:
326348
SPEC REPOS:
327349
https://github.com/CocoaPods/Specs.git:
328350
- fmt
351+
- hermes-engine
329352
- HMSegmentedControl
353+
- libevent
330354

331355
EXTERNAL SOURCES:
332356
boost:
@@ -355,6 +379,8 @@ EXTERNAL SOURCES:
355379
:path: "../node_modules/react-native/React/CoreModules"
356380
React-cxxreact:
357381
:path: "../node_modules/react-native/ReactCommon/cxxreact"
382+
React-hermes:
383+
:path: "../node_modules/react-native/ReactCommon/hermes"
358384
React-jsi:
359385
:path: "../node_modules/react-native/ReactCommon/jsi"
360386
React-jsiexecutor:
@@ -399,7 +425,9 @@ SPEC CHECKSUMS:
399425
FBReactNativeSpec: fe08c1cd7e2e205718d77ad14b34957cce949b58
400426
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
401427
glog: 5337263514dd6f09803962437687240c5dc39aa4
428+
hermes-engine: bf7577d12ac6ccf53ab8b5af3c6ccf0dd8458c5c
402429
HMSegmentedControl: 34c1f54d822d8308e7b24f5d901ec674dfa31352
430+
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
403431
RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9
404432
RCTRequired: 4bf86c70714490bca4bf2696148638284622644b
405433
RCTTypeSafety: c475a7059eb77935fa53d2c17db299893f057d5d
@@ -408,6 +436,7 @@ SPEC CHECKSUMS:
408436
React-Core: 3eb7432bad96ff1d25aebc1defbae013fee2fd0e
409437
React-CoreModules: ad9e1fd5650e16666c57a08328df86fd7e480cb9
410438
React-cxxreact: 02633ff398cf7e91a2c1e12590d323c4a4b8668a
439+
React-hermes: 7b4c6617b4d4c880d0f44e629651810bf3417440
411440
React-jsi: 805c41a927d6499fb811772acb971467d9204633
412441
React-jsiexecutor: 94ce921e1d8ce7023366873ec371f3441383b396
413442
React-jsinspector: d0374f7509d407d2264168b6d0fad0b54e300b85
@@ -424,9 +453,9 @@ SPEC CHECKSUMS:
424453
React-RCTVibration: e3ffca672dd3772536cb844274094b0e2c31b187
425454
React-runtimeexecutor: dec32ee6f2e2a26e13e58152271535fadff5455a
426455
ReactCommon: 57b69f6383eafcbd7da625bfa6003810332313c4
427-
ReactNativeNavigation: 146bec8f834564f05637b43f469b9ca6e1cbe94f
456+
ReactNativeNavigation: d82a136212f3a581e256b181e5703aa2f79ecba4
428457
Yoga: e7dc4e71caba6472ff48ad7d234389b91dadc280
429458

430-
PODFILE CHECKSUM: ffb49f0b7d9752430ecff5493154eaa340c2e819
459+
PODFILE CHECKSUM: 32b91206a2884c5c81de99d6223073721e61348f
431460

432-
COCOAPODS: 1.10.1
461+
COCOAPODS: 1.11.3

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"react-component-driver": "^0.10.0",
7373
"react-native": "0.66.4",
7474
"react-native-navigation": "^7.23.1",
75+
"react-recipes": "^1.4.0",
7576
"react-test-renderer": "^17.0.2",
7677
"semver": "5.x.x",
7778
"shell-utils": "1.x.x",

0 commit comments

Comments
 (0)