Skip to content
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

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open

Migrate yarn to npm #22116

wants to merge 36 commits into from

Conversation

jchen351
Copy link
Contributor

@jchen351 jchen351 commented Sep 17, 2024

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.gradle

  • Need to update the OnnxruntimeModuleTest because ReactApplicationContext is now a abstract class.

@jchen351 jchen351 requested a review from a team as a code owner September 17, 2024 19:32
@@ -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')
Copy link
Contributor Author

@jchen351 jchen351 Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jchen351 jchen351 mentioned this pull request Sep 19, 2024
2 tasks
@jchen351 jchen351 mentioned this pull request Sep 30, 2024
9 tasks
@fs-eire
Copy link
Contributor

fs-eire commented Oct 7, 2024

Not sure how long will this PR take. The following PRs are for upgrading the package version of the yarn lock file:

@snnn
Copy link
Member

snnn commented Nov 12, 2024

To get this PR closed, you need to upgrade Gradle first. Is it right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants