π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Remove redundant ONNX Runtime readme
laurenspriem8e92ad5223d1
diff --git a/mobile/apps/photos/android/app/build.gradle b/mobile/apps/photos/android/app/build.gradleindex 57cc8ec116..c126886654 100644--- a/mobile/apps/photos/android/app/build.gradle+++ b/mobile/apps/photos/android/app/build.gradle@@ -31,7 +31,7 @@ if (keystorePropertiesFile.exists()) {// Ente's custom prebuilt ONNX Runtime AAR is resolved straight from its// GitHub release through an Ivy repository; its SHA-256 is pinned in-// gradle/verification-metadata.xml. See mobile/native/onnxruntime.md.+// gradle/verification-metadata.xml.repositories {exclusiveContent {forRepository {diff --git a/mobile/apps/photos/android/gradle/verification-metadata.xml b/mobile/apps/photos/android/gradle/verification-metadata.xmlindex fbc6832b29..92a8a213eb 100644--- a/mobile/apps/photos/android/gradle/verification-metadata.xml+++ b/mobile/apps/photos/android/gradle/verification-metadata.xml@@ -6,8 +6,6 @@binaries: those are fetched from a plain GitHub release (no repositorymetadata), so their SHA-256 digests are pinned here. The digests come fromthe SHA256SUMS asset published with the ort-packaging release.-- See mobile/native/onnxruntime.md for the release bump checklist.--><verification-metadata xmlns="https://schema.gradle.org/dependency-verification"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"diff --git a/mobile/native/android/apps/ensu/gradle/verification-metadata.xml b/mobile/native/android/apps/ensu/gradle/verification-metadata.xmlindex fbc6832b29..92a8a213eb 100644--- a/mobile/native/android/apps/ensu/gradle/verification-metadata.xml+++ b/mobile/native/android/apps/ensu/gradle/verification-metadata.xml@@ -6,8 +6,6 @@binaries: those are fetched from a plain GitHub release (no repositorymetadata), so their SHA-256 digests are pinned here. The digests come fromthe SHA256SUMS asset published with the ort-packaging release.-- See mobile/native/onnxruntime.md for the release bump checklist.--><verification-metadata xmlns="https://schema.gradle.org/dependency-verification"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"diff --git a/mobile/native/android/apps/ensu/settings.gradle.kts b/mobile/native/android/apps/ensu/settings.gradle.ktsindex 7bca1adbc0..5409dec6a0 100644--- a/mobile/native/android/apps/ensu/settings.gradle.kts+++ b/mobile/native/android/apps/ensu/settings.gradle.kts@@ -14,7 +14,7 @@ dependencyResolutionManagement {maven { url = uri("https://jitpack.io") }// Ente's custom prebuilt ONNX Runtime AAR is resolved straight from// its GitHub release; its SHA-256 is pinned in- // gradle/verification-metadata.xml. See mobile/native/onnxruntime.md.+ // gradle/verification-metadata.xml.exclusiveContent {forRepository {ivy {diff --git a/mobile/native/apple/packages/EnteOnnxRuntime/EnteOnnxRuntime.podspec b/mobile/native/apple/packages/EnteOnnxRuntime/EnteOnnxRuntime.podspecindex 88e9ba3cb5..c621a584b6 100644--- a/mobile/native/apple/packages/EnteOnnxRuntime/EnteOnnxRuntime.podspec+++ b/mobile/native/apple/packages/EnteOnnxRuntime/EnteOnnxRuntime.podspec@@ -3,8 +3,6 @@# verifies its SHA-256, and caches it. Nothing is compiled or linked here:# the ente_photos_rust pod's build phase points the Rust `ort` crate at the# XCFramework's static archive for the active platform via ORT_LIB_PATH.-#-# See mobile/native/onnxruntime.md for the release bump checklist.Pod::Spec.new do |s|s.name = 'EnteOnnxRuntime's.version = '1.27.0-r3'diff --git a/mobile/native/apple/packages/EnteOnnxRuntime/Package.swift b/mobile/native/apple/packages/EnteOnnxRuntime/Package.swiftindex d83c90541d..48f0e47c2b 100644--- a/mobile/native/apple/packages/EnteOnnxRuntime/Package.swift+++ b/mobile/native/apple/packages/EnteOnnxRuntime/Package.swift@@ -8,8 +8,6 @@// The Rust side (ente-ensu's iOS `ort-sys` dependency) is built with// "disable-linking" so that it neither downloads nor bundles any other ONNX// Runtime; the symbols resolve against this static library at app link time.-//-// See mobile/native/onnxruntime.md for the release bump checklist.import PackageDescriptionlet package = Package(diff --git a/mobile/native/onnxruntime.md b/mobile/native/onnxruntime.mddeleted file mode 100644index 736f281e94..0000000000--- a/mobile/native/onnxruntime.md+++ /dev/null@@ -1,44 +0,0 @@-# Custom ONNX Runtime binaries--Photos and Ensu use Ente's pinned ONNX Runtime 1.27.0 packaging build,-`ort-1.27.0-r3` from the ort-packaging repository.--## Consumers--- Android resolves `io.ente.onnxruntime:onnxruntime-webgpu-android` directly- from the GitHub release and verifies its SHA-256 with Gradle. The AAR contains- WebGPU, XNNPACK, and CPU support for ARM64, ARMv7, and x86_64.-- Photos on iOS uses the `EnteOnnxRuntime` pod as a verified downloader. The- pod is deliberately not a vendored framework; `ente_photos_rust` links the- selected static XCFramework archive through `ORT_LIB_PATH`.-- Ensu on iOS links the same static XCFramework through SwiftPM. Its Rust- `ort-sys` dependency uses `disable-linking` so ONNX Runtime is linked once by- the app.--## Updating the release--Use the digests in the release's `SHA256SUMS` asset and keep every mobile-consumer on the same packaging revision.--- iOS: update `Package.swift` and `EnteOnnxRuntime.podspec` in- `mobile/native/apple/packages/EnteOnnxRuntime`, then run `pod install` in- `mobile/apps/photos/ios` and commit the updated lockfile.-- Photos Android: update `mobile/apps/photos/android/app/build.gradle` and its- `gradle/verification-metadata.xml`.-- Ensu Android: update- `mobile/native/android/apps/ensu/rust/build.gradle.kts` and its- `gradle/verification-metadata.xml`.--## Building Photos Rust directly for iOS--Xcode normally sets `ORT_LIB_PATH`. For a direct Cargo invocation, install the-Photos pods first and set it explicitly:--```sh-ORT_LIB_PATH="$PWD/mobile/apps/photos/ios/Pods/EnteOnnxRuntime/onnxruntime.xcframework/ios-arm64" \-IPHONEOS_DEPLOYMENT_TARGET=15.1 \-cargo check -p ente-photos --target aarch64-apple-ios-```--For an Apple Silicon Simulator build, use the `ios-arm64-simulator` slice and-the `aarch64-apple-ios-sim` Rust target.diff --git a/rust/crates/ensu/Cargo.toml b/rust/crates/ensu/Cargo.tomlindex 1e85c33b9b..76445bd803 100644--- a/rust/crates/ensu/Cargo.toml+++ b/rust/crates/ensu/Cargo.toml@@ -57,7 +57,7 @@ llama-cpp-2 = { version = "=0.1.144", features = ["mtmd"] }ort = { workspace = true, features = ["load-dynamic"], optional = true }# The iOS app links Ente's custom ONNX Runtime XCFramework via SPM, so ort-sys-# must not download/link pyke's binaries. See mobile/native/onnxruntime.md.+# must not download/link pyke's binaries.[target.'cfg(target_os = "ios")'.dependencies]ort-sys = { workspace = true, features = ["disable-linking"], optional = true }diff --git a/rust/crates/photos/Cargo.toml b/rust/crates/photos/Cargo.tomlindex dae8aebe86..55b89925df 100644--- a/rust/crates/photos/Cargo.toml+++ b/rust/crates/photos/Cargo.toml@@ -26,8 +26,7 @@ usearch = "=2.21.4"# ORT source and revision are pinned once in the workspace manifest; only the# per-target feature sets are declared here.# The iOS Cargokit build sets ORT_LIB_PATH to the directory containing the-# verified custom static archive; see mobile/native/onnxruntime.md for-# building outside Xcode.+# verified custom static archive.[target.'cfg(target_os = "ios")'.dependencies]ort = { workspace = true, features = ["std",