Skip to content

Commit

Permalink
[js/rn] upgrade package react-native@^0.69.1 (#12155)
Browse files Browse the repository at this point in the history
* [js/rn] upgrade package react-native@^0.69.1

* upgrade compile sdk to v31

* update ios version requirement

* update pod path for onnxruntime-react-native
  • Loading branch information
fs-eire authored and RandyShuai committed Aug 2, 2022
1 parent af6eb74 commit ede3396
Show file tree
Hide file tree
Showing 9 changed files with 1,004 additions and 867 deletions.
2 changes: 1 addition & 1 deletion js/react_native/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
android.enableJetifier=true
android.useAndroidX=true
OnnxruntimeModule_buildToolsVersion=29.0.2
OnnxruntimeModule_compileSdkVersion=29
OnnxruntimeModule_compileSdkVersion=31
OnnxruntimeModule_minSdkVersion=21
OnnxruntimeModule_targetSdkVersion=29
2 changes: 1 addition & 1 deletion js/react_native/e2e/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 29
compileSdkVersion = 31
targetSdkVersion = 29
}
repositories {
Expand Down
4 changes: 2 additions & 2 deletions js/react_native/e2e/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'
platform :ios, '12.4'

target 'OnnxruntimeModuleExample' do
config = use_native_modules!
Expand All @@ -13,7 +13,7 @@ target 'OnnxruntimeModuleExample' do
if File.exist?('../../local_pods/onnxruntime-mobile-c.zip')
pod 'onnxruntime-mobile-c', :podspec => '../../onnxruntime-mobile-c.podspec'
end
pod 'onnxruntime-react-native', :path => '../..'
pod 'onnxruntime-react-native', :path => '../node_modules/onnxruntime-react-native'

inherit! :search_paths
end
2 changes: 1 addition & 1 deletion js/react_native/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"react": "^18.1.0",
"react-native": "^0.68.2"
"react-native": "^0.69.1"
},
"devDependencies": {
"@babel/core": "^7.17.0",
Expand Down
971 changes: 522 additions & 449 deletions js/react_native/e2e/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/react_native/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'
platform :ios, '12.4'

def shared
config = use_native_modules!
Expand Down
2 changes: 1 addition & 1 deletion js/react_native/onnxruntime-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Pod::Spec.new do |spec|
spec.license = package["license"]
spec.authors = package["author"]

spec.platforms = { :ios => "11.0" }
spec.platforms = { :ios => "12.4" }
spec.source = { :git => "https://github.com/Microsoft/onnxruntime.git", :tag => "rel-#{spec.version}" }

spec.source_files = "ios/*.{h,mm}"
Expand Down
2 changes: 1 addition & 1 deletion js/react_native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"pod-install": "^0.1.36",
"prettier": "^2.6.2",
"react": "^18.1.0",
"react-native": "^0.68.2",
"react-native": "^0.69.1",
"react-native-builder-bob": "^0.18.2",
"typescript": "^4.5.5"
},
Expand Down
884 changes: 474 additions & 410 deletions js/react_native/yarn.lock

Large diffs are not rendered by default.

0 comments on commit ede3396

Please sign in to comment.