Skip to content

Commit 28e517e

Browse files
Merge pull request #489 from RunanywhereAI/smonga/release-v0.19.12
chore(release): v0.19.12 — remove obsolete ONNXRuntime binary targets (fixes CodeQL on main)
2 parents 78209e2 + cf53724 commit 28e517e

17 files changed

Lines changed: 49 additions & 50 deletions

File tree

Package.swift

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ let useLocalNatives = false // Toggle: true for local dev, false for release
4444

4545
// Version for remote XCFrameworks (used when useLocalNatives = false)
4646
// Updated automatically by CI/CD during releases
47-
let sdkVersion = "0.19.11"
47+
let sdkVersion = "0.19.12"
4848

4949
// MetalRT remote binary availability flag.
5050
// Set to `false` until a real checksum for RABackendMetalRT-v<sdkVersion>.zip
@@ -129,13 +129,16 @@ let package = Package(
129129

130130
// =================================================================
131131
// C Bridge Module - ONNX Backend Headers
132+
//
133+
// ONNX Runtime is now statically linked into RABackendONNX.a — no
134+
// separate ONNXRuntime{iOS,macOS}Binary targets needed. They were
135+
// previously distributed as separate xcframeworks but are bundled
136+
// since v0.19.0.
132137
// =================================================================
133138
.target(
134139
name: "ONNXBackend",
135140
dependencies: [
136141
"RABackendONNXBinary",
137-
.target(name: "ONNXRuntimeiOSBinary", condition: .when(platforms: [.iOS])),
138-
.target(name: "ONNXRuntimemacOSBinary", condition: .when(platforms: [.macOS])),
139142
],
140143
path: "sdk/runanywhere-swift/Sources/ONNXRuntime/include",
141144
publicHeadersPath: "."
@@ -175,8 +178,6 @@ let package = Package(
175178
"RunAnywhere",
176179
"ONNXBackend",
177180
"RABackendONNXBinary",
178-
.target(name: "ONNXRuntimeiOSBinary", condition: .when(platforms: [.iOS])),
179-
.target(name: "ONNXRuntimemacOSBinary", condition: .when(platforms: [.macOS])),
180181
],
181182
path: "sdk/runanywhere-swift/Sources/ONNXRuntime",
182183
exclude: ["include"],
@@ -304,7 +305,9 @@ func binaryTargets() -> [Target] {
304305
// For macOS support, build with --include-macos:
305306
// ./scripts/build-swift.sh --setup --include-macos
306307
// =====================================================================
307-
var targets: [Target] = [
308+
// ONNX Runtime is statically linked into RABackendONNX — no separate
309+
// local xcframework targets needed (v0.19.0+).
310+
return [
308311
.binaryTarget(
309312
name: "RACommonsBinary",
310313
path: "sdk/runanywhere-swift/Binaries/RACommons.xcframework"
@@ -322,22 +325,6 @@ func binaryTargets() -> [Target] {
322325
path: "sdk/runanywhere-swift/Binaries/RABackendMetalRT.xcframework"
323326
),
324327
]
325-
326-
// ONNX Runtime xcframeworks - split by platform
327-
// iOS: static library format (not embedded in app bundle)
328-
// macOS: dynamic framework format (embedded in app bundle)
329-
targets.append(contentsOf: [
330-
.binaryTarget(
331-
name: "ONNXRuntimeiOSBinary",
332-
path: "sdk/runanywhere-swift/Binaries/onnxruntime-ios.xcframework"
333-
),
334-
.binaryTarget(
335-
name: "ONNXRuntimemacOSBinary",
336-
path: "sdk/runanywhere-swift/Binaries/onnxruntime-macos.xcframework"
337-
),
338-
])
339-
340-
return targets
341328
} else {
342329
// =====================================================================
343330
// PRODUCTION MODE (for external SPM consumers)
@@ -360,16 +347,6 @@ func binaryTargets() -> [Target] {
360347
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/v\(sdkVersion)/RABackendONNX-ios-v\(sdkVersion).zip",
361348
checksum: "809e2510da49f71f6d019e77bcc0a7e12e967f3b739ba0b9eea7adb77936edc0"
362349
),
363-
.binaryTarget(
364-
name: "ONNXRuntimeiOSBinary",
365-
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/v\(sdkVersion)/onnxruntime-ios-v\(sdkVersion).zip",
366-
checksum: "310022d76a16b2d2d106577a1aa84a9e608c721bb6221c4ba47bf962a88bd9fd"
367-
),
368-
.binaryTarget(
369-
name: "ONNXRuntimemacOSBinary",
370-
url: "https://github.com/RunanywhereAI/runanywhere-sdks/releases/download/v\(sdkVersion)/onnxruntime-macos-v\(sdkVersion).zip",
371-
checksum: "f73db9dc09012325b35fd3da74de794a75f4e9971d9b923af0805d6ab1dfc243"
372-
),
373350
]
374351

375352
// MetalRT remote binary is only appended once a real checksum has been

scripts/sync-versions.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@ bump_pubspec_version() {
7373
bump_line "$file" '^version: .+' "version: ${NEW_VERSION}"
7474
}
7575

76+
# Flutter sub-packages (genie/llamacpp/onnx) depend on the core `runanywhere`
77+
# package via a caret constraint like `runanywhere: ^0.19.0`. When we bump
78+
# the suite, that constraint must track the NEW_VERSION's MAJOR.MINOR floor
79+
# so the sub-packages pull a matching core, not an older published one.
80+
bump_pubspec_runanywhere_dep() {
81+
local file="$1"
82+
# Caret floor = current MAJOR.MINOR.0 (e.g. 0.19.12 → 0.19.0)
83+
local major_minor
84+
major_minor="$(echo "${NEW_VERSION}" | awk -F. '{print $1"."$2".0"}')"
85+
bump_line "$file" '^ runanywhere: \^[0-9]+\.[0-9]+\.[0-9]+' \
86+
" runanywhere: ^${major_minor}"
87+
}
88+
7689
echo ">> Syncing versions to ${NEW_VERSION}"
7790
echo ">> Repo root: ${REPO_ROOT}"
7891
echo ""
@@ -141,6 +154,15 @@ for pkg in \
141154
bump_pubspec_version "$pkg"
142155
done
143156

157+
# Sub-packages depend on the core `runanywhere` package; align their
158+
# dependency floor to match the bumped suite version.
159+
for pkg in \
160+
"${REPO_ROOT}/sdk/runanywhere-flutter/packages/runanywhere_genie/pubspec.yaml" \
161+
"${REPO_ROOT}/sdk/runanywhere-flutter/packages/runanywhere_llamacpp/pubspec.yaml" \
162+
"${REPO_ROOT}/sdk/runanywhere-flutter/packages/runanywhere_onnx/pubspec.yaml"; do
163+
bump_pubspec_runanywhere_dep "$pkg"
164+
done
165+
144166
echo ""
145167
echo ">> Done. Verify with:"
146168
echo " git diff -- sdk/ Package.swift"

sdk/runanywhere-commons/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.19.11
1+
0.19.12

sdk/runanywhere-commons/VERSIONS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# =============================================================================
1515

1616
# Project version (read from VERSION file, but also defined here for scripts)
17-
PROJECT_VERSION=0.19.11
17+
PROJECT_VERSION=0.19.12
1818

1919
# =============================================================================
2020
# Platform Deployment Targets

sdk/runanywhere-flutter/packages/runanywhere/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere
22
description: Privacy-first, on-device AI SDK for Flutter. Run LLMs, STT, TTS, and VAD directly on device with no data leaving the device.
3-
version: 0.19.11
3+
version: 0.19.12
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_genie/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_genie
22
description: Qualcomm Genie NPU backend for RunAnywhere Flutter SDK. On-device LLM inference on Snapdragon NPU.
3-
version: 0.19.11
3+
version: 0.19.12
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues
@@ -19,7 +19,7 @@ dependencies:
1919
flutter:
2020
sdk: flutter
2121
# Core SDK dependency (provides RACommons)
22-
runanywhere: ^0.16.0
22+
runanywhere: ^0.19.0
2323
ffi: ^2.1.0
2424

2525
dev_dependencies:

sdk/runanywhere-flutter/packages/runanywhere_llamacpp/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_llamacpp
22
description: LlamaCpp backend for RunAnywhere Flutter SDK. High-performance on-device LLM text generation with GGUF model support.
3-
version: 0.19.11
3+
version: 0.19.12
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues
@@ -19,7 +19,7 @@ dependencies:
1919
flutter:
2020
sdk: flutter
2121
# Core SDK dependency (provides RACommons)
22-
runanywhere: ^0.16.0
22+
runanywhere: ^0.19.0
2323
ffi: ^2.1.0
2424

2525
dev_dependencies:

sdk/runanywhere-flutter/packages/runanywhere_onnx/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_onnx
22
description: ONNX Runtime backend for RunAnywhere Flutter SDK. On-device Speech-to-Text, Text-to-Speech, and Voice Activity Detection.
3-
version: 0.19.11
3+
version: 0.19.12
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues
@@ -19,7 +19,7 @@ dependencies:
1919
flutter:
2020
sdk: flutter
2121
# Core SDK dependency (provides RACommons)
22-
runanywhere: ^0.16.0
22+
runanywhere: ^0.19.0
2323
ffi: ^2.1.0
2424
# HTTP for download strategy
2525
http: ^1.2.1

sdk/runanywhere-kotlin/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ runanywhere.coreVersion=0.1.4
6060
# Must match a GitHub release tag at: https://github.com/RunanywhereAI/runanywhere-sdks/releases
6161
# Contains: RACommons-android (librac_commons.so, librac_commons_jni.so)
6262
runanywhere.commonsVersion=0.1.4
63-
runanywhere.nativeLibVersion=0.19.11
63+
runanywhere.nativeLibVersion=0.19.12

sdk/runanywhere-react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "runanywhere-react-native-monorepo",
3-
"version": "0.19.11",
3+
"version": "0.19.12",
44
"private": true,
55
"description": "RunAnywhere React Native SDK - Multi-Package Monorepo",
66
"workspaces": [

0 commit comments

Comments
 (0)