-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Migrate yarn to npm #22116
base: main
Are you sure you want to change the base?
Migrate yarn to npm #22116
Conversation
to replace yarn e2e start. This way we will need to run `npm run e2e:start`.
@@ -15,7 +15,7 @@ end | |||
def shared | |||
config = use_native_modules! | |||
|
|||
use_react_native!(:path => config["reactNativePath"]) | |||
use_react_native!(:path => '../node_modules/react-native') |
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.
Not sure why config["reactNativePath"]) has become nil. @fs-eire Do you know the reason behind this?
https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=1496652&view=logs&j=de302ec2-2305-57e0-e8c6-cd89c569f2a3&t=ec15b2e4-bc91-5a2a-85fd-a369ed3087c3&l=24
# Conflicts: # js/react_native/android/gradle.properties # js/react_native/android/gradle/wrapper/gradle-wrapper.properties # js/react_native/e2e/android/app/build.gradle # js/react_native/e2e/android/build.gradle
Not sure how long will this PR take. The following PRs are for upgrading the package version of the yarn lock file: |
To get this PR closed, you need to upgrade Gradle first. Is it right? |
Description
This PR change all reference to yarn to npm
Motivation and Context
This PR is needed to address all Component Governce issue that ORT is facing
Current issue
use_react_native!(:path => config["reactNativePath"]) return nil
For error
CocoaPods could not find compatible versions for pod "RCTRequired"
, we might need to increase iOS targe version from 13.0 to a higher version.For 'react-native' >= 0.73.x , react-native/react.gradle file is no longer used
We need to update to gradle 7.6 or above to upgrade the RN. current gradlew version 7.3.3 that we use does not works on RN 71+.
Instruction on how to implement the React-Native has changed since 0.72.
Error
The new Java toolchain feature cannot be used at the project level in combination with source and/or target compatibility
from gradle.duplicate class: com.facebook.react.PackageList
solution: remove
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
from bottom of andoird/app/build.gradleNeed to update the OnnxruntimeModuleTest because
ReactApplicationContext
is now a abstract class.