Skip to content

Commit 17f4bc7

Browse files
committed
Merge branch 'master' into sync_msft_29_2_25
2 parents 9c2fee5 + 2a4cfab commit 17f4bc7

File tree

72 files changed

+3816
-4292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+3816
-4292
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
[submodule "cmake/external/emsdk"]
88
path = cmake/external/emsdk
99
url = https://github.com/emscripten-core/emsdk.git
10-
branch = 4.0.3
10+
branch = 4.0.4

cmake/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,11 @@ if (onnxruntime_USE_OPENVINO)
15121512

15131513
endif()
15141514

1515+
if (onnxruntime_USE_OPENVINO_INTERFACE AND (NOT onnxruntime_USE_OPENVINO))
1516+
add_definitions(-DUSE_OPENVINO=1)
1517+
add_definitions(-DOPENVINO_CONFIG_NPU=1)
1518+
endif()
1519+
15151520
if (onnxruntime_USE_VITISAI)
15161521
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_LIST_DIR}")
15171522
endif()

cmake/deps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ mimalloc;https://github.com/microsoft/mimalloc/archive/refs/tags/v2.1.1.zip;d5ee
3737
mp11;https://github.com/boostorg/mp11/archive/refs/tags/boost-1.82.0.zip;9bc9e01dffb64d9e0773b2e44d2f22c51aace063
3838
onnx;https://github.com/onnx/onnx/archive/refs/tags/v1.17.0.zip;13a60ac5217c104139ce0fd024f48628e7bcf5bc
3939
# Use the latest commit of 10.8-GA
40-
onnx_tensorrt;https://github.com/onnx/onnx-tensorrt/archive/118ed0aea197fa9a7d3ea66180a1d5ddb9deecc3.zip;b78aed3728ad4daf6dc47ea10c1d243dee1d95b1
40+
onnx_tensorrt;https://github.com/onnx/onnx-tensorrt/archive/c5ca8912f30e9ad630a0ef565e3d5f4bd5e91563.zip;588b294aaa9e84679ed5815cea1d399210ac98c2
4141
protobuf;https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.12.zip;7cf2733949036c7d52fda017badcab093fe73bfa
4242
protoc_win64;https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-win64.zip;b4521f7ada5b260380f94c4bd7f1b7684c76969a
4343
protoc_win32;https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-win32.zip;3688010318192c46ce73213cdfb6b3e5656da874

cmake/external/onnxruntime_external_deps.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ if(NOT TARGET Boost::mp11)
301301
onnxruntime_fetchcontent_declare(
302302
mp11
303303
URL ${DEP_URL_mp11}
304+
EXCLUDE_FROM_ALL
304305
FIND_PACKAGE_ARGS NAMES Boost
305306
)
306307
onnxruntime_fetchcontent_makeavailable(mp11)

js/react_native/android/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Specifies the JVM arguments used for the daemon process.
55
# The setting is particularly useful for tweaking memory settings.
66
# Default value: -Xmx1024m -XX:MaxPermSize=256m
7-
org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=all
7+
org.gradle.jvmargs=-Xmx8192m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=all
88
#
99
# When configured, Gradle will run in incubating parallel mode.
1010
# This option should only be used with decoupled projects. More details, visit
@@ -13,7 +13,7 @@ org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF
1313
#Tue Jan 26 17:36:02 PST 2021
1414
android.enableJetifier=true
1515
android.useAndroidX=true
16-
OnnxruntimeModule_buildToolsVersion=33.0.0
16+
OnnxruntimeModule_buildToolsVersion=34.0.0
1717
OnnxruntimeModule_compileSdkVersion=34
1818
OnnxruntimeModule_minSdkVersion=24
1919
OnnxruntimeModule_targetSdkVersion=34

js/react_native/babel.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

js/react_native/e2e/android/app/build.gradle

Lines changed: 12 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
apply plugin: "com.android.application"
2+
apply plugin: "org.jetbrains.kotlin.android"
23
apply plugin: "com.facebook.react"
34

4-
import com.android.build.OutputFile
5-
65
/**
76
* This is the configuration block to customize your React Native Android app.
87
* By default you don't need to apply any configuration, just uncomment the lines you need.
@@ -13,8 +12,8 @@ react {
1312
// root = file("../")
1413
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
1514
// reactNativeDir = file("../node_modules/react-native")
16-
// The folder where the react-native Codegen package is. Default is ../node_modules/react-native-codegen
17-
// codegenDir = file("../node_modules/react-native-codegen")
15+
// The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
16+
// codegenDir = file("../node_modules/@react-native/codegen")
1817
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
1918
// cliFile = file("../node_modules/react-native/cli.js")
2019

@@ -52,14 +51,6 @@ react {
5251
// hermesFlags = ["-O", "-output-source-map"]
5352
}
5453

55-
/**
56-
* Set this to true to create four separate APKs instead of one,
57-
* one for each native architecture. This is useful if you don't
58-
* use App Bundles (https://developer.android.com/guide/app-bundle/)
59-
* and want to have separate APKs to upload to the Play Store.
60-
*/
61-
def enableSeparateBuildPerCPUArchitecture = false
62-
6354
/**
6455
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
6556
*/
@@ -78,45 +69,33 @@ def enableProguardInReleaseBuilds = false
7869
*/
7970
def jscFlavor = 'org.webkit:android-jsc:+'
8071

81-
/**
82-
* Private function to get the list of Native Architectures you want to build.
83-
* This reads the value from reactNativeArchitectures in your gradle.properties
84-
* file and works together with the --active-arch-only flag of react-native run-android.
85-
*/
86-
def reactNativeArchitectures() {
87-
def value = project.getProperties().get("reactNativeArchitectures")
88-
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
89-
}
9072

9173
android {
9274

75+
buildToolsVersion rootProject.ext.buildToolsVersion
9376
compileSdkVersion rootProject.ext.compileSdkVersion
94-
namespace "com.example.reactnativeonnxruntimemodule"
77+
namespace "com.reactnativeonnxruntimemodule"
9578
compileOptions {
9679
sourceCompatibility JavaVersion.VERSION_17
9780
targetCompatibility JavaVersion.VERSION_17
9881
}
9982
packagingOptions {
10083
pickFirst '**/libc++_shared.so'
10184
pickFirst '**/libfbjni.so'
85+
excludes = [
86+
"META-INF",
87+
"META-INF/**",
88+
]
10289
}
10390
defaultConfig {
104-
applicationId "com.example.reactnativeonnxruntimemodule"
91+
applicationId "com.reactnativeonnxruntimemodule"
10592
minSdkVersion rootProject.ext.minSdkVersion
10693
targetSdkVersion rootProject.ext.targetSdkVersion
10794
versionCode 1
10895
versionName "1.0"
10996
testBuildType System.getProperty('testBuildType', 'debug')
11097
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
11198
}
112-
splits {
113-
abi {
114-
reset()
115-
enable enableSeparateBuildPerCPUArchitecture
116-
universalApk false // If true, also generate a universal APK
117-
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
118-
}
119-
}
12099
signingConfigs {
121100
debug {
122101
storeFile rootProject.file('debug.keystore')
@@ -135,20 +114,6 @@ android {
135114
proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro"
136115
}
137116
}
138-
// applicationVariants are e.g. debug, release
139-
applicationVariants.all { variant ->
140-
variant.outputs.each { output ->
141-
// For each separate APK per architecture, set a unique version code as described here:
142-
// https://developer.android.com/studio/build/configure-apk-splits.html
143-
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
144-
def abi = output.getFilter(OutputFile.ABI)
145-
if (abi != null) { // null for the universal-debug, universal-release variants
146-
output.versionCodeOverride =
147-
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
148-
}
149-
150-
}
151-
}
152117
}
153118

154119
repositories {
@@ -164,19 +129,8 @@ dependencies {
164129
implementation fileTree(dir: "libs", include: ["*.jar"])
165130
// The version of react-native is set by the React Native Gradle Plugin
166131
implementation("com.facebook.react:react-android")
167-
168-
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
132+
implementation("com.facebook.react:flipper-integration")
169133
implementation 'androidx.test.ext:junit:1.1.5'
170-
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
171-
exclude group:'com.facebook.fbjni'
172-
}
173-
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
174-
exclude group:'com.facebook.flipper'
175-
exclude group:'com.squareup.okhttp3', module:'okhttp'
176-
}
177-
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
178-
exclude group:'com.facebook.flipper'
179-
}
180134

181135
if (hermesEnabled.toBoolean()) {
182136
implementation("com.facebook.react:hermes-android")
@@ -188,7 +142,7 @@ dependencies {
188142
androidTestImplementation "androidx.test:runner:1.5.2"
189143
androidTestImplementation "androidx.test:rules:1.5.0"
190144

191-
implementation project(':onnxruntime-react-native')
145+
implementation (project(':onnxruntime-react-native'))
192146
// specify ORT dependency here so it can be found in libs flatDir repository
193147
implementation "com.microsoft.onnxruntime:onnxruntime-android:latest.integration@aar"
194148
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Detox requires the project to have a single dummy native Android Test with some special content,
33
// which will be picked up by the testRunner.
44

5-
package com.example.reactnativeonnxruntimemodule;
5+
package com.reactnativeonnxruntimemodule;
66

77
import android.content.Intent;
88

js/react_native/e2e/android/app/src/debug/AndroidManifest.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)