-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(all): add support new arch #37
Conversation
218c51b
to
4469134
Compare
@MasonLe2497 can you also add new arch support for IOS?, so we test it on both platform for RN 0.65, 0.69 and 0.72 |
@numandev1 sure. I'm working on it |
Hi @numandev1 , i'm trying to add support, but when run example ios, i catch this error:
Can u helpme? |
@MasonLe2497 i think, somehow
i see you have removed react-native-keys from pod file, can you add that line and test
|
No, i just update pod file like this:
|
@MasonLe2497 can you try like this
|
I just move |
@numandev1 can u review my PR? |
it is big PR, hopefully i will review it tomorrow, sorry for delay 🙏🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot 💖💖 for PR, you are awesome
@numandev1 yeah. i resolved all comment. ha ha |
can you squash all commit to one commit? I have to check all test cases and try this code on different versions, I will let you know if I face any problems, and after that, we will release a new version with this PR Thanks a lot, you are awesome |
Yes. of cource |
6a2f467
to
8b7aaa8
Compare
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", | ||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17" | ||
} | ||
s.dependency "React-Codegen" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm that this file block is not executing
you can add this puts "executing RCT_NEW_ARCH_ENABLED"
line in this block to print if this block is executing or not
this command should work, currently, only this command is working but it is also not executing that block RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
RCT_NEW_ARCH_ENABLED=1 && pod install
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u want to remove this?
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MasonLe2497 No, I see that install_modules_dependencies
does not exist in 0.70
we have to just verify if RCT_NEW_ARCH_ENABLED=1 && pod install
command is enabling new arch or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@numandev1 yes. it available in 0.71 and further
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
s.dependency "React-Core"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but RCT_NEW_ARCH_ENABLED=1 && pod install
this command is not installing new arch, can you check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can resolve this conversation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MasonLe2497 did you fix enabling new arch by this command cd ios && RCT_NEW_ARCH_ENABLED=1 pod install
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it still working as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keys.mp4
on my side, this cd ios && RCT_NEW_ARCH_ENABLED=1 pod install
command is not picking codegen schema or artifacts but RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
this is picking codegen schema and artifacts correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Result of rn info:
System:
OS: macOS 13.4.1
CPU: (8) arm64 Apple M1
Memory: 85.13 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 16.20.1
path: ~/Library/Caches/fnm_multishells/6573_1691481597947/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 8.19.4
path: ~/Library/Caches/fnm_multishells/6573_1691481597947/bin/npm
Watchman:
version: 2023.07.10.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.12.1
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK:
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode:
version: 14.3.1/14E300c
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.20
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /Users/ngoc.le/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.3
wanted: 0.72.3
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: true
7b9c49f
to
3138e52
Compare
3138e52
to
eeb7f84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot ❤️. Going to release an alpha version, lets see the feedback of users
available in 0.6.0-alpha.0 |
Summary
Add support New Architecture Turbo module
Add support typescript by env json file:
Changelog
[feat] [all] - Add support New Architecture Turbo module
Test Plan