measure: add OpenCV 4.10.0 to the version catalog
- Commit
e3846ab3c38c004020681e79963883e1c7c3d5c6- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 03:47 UTC (19 days ago)
- Parents
68553f9
The AR tracker redesign replaces the home-grown Rust VIO engine with OpenCV. Per repo policy (CONTRIBUTING.md Dependencies + root AGENTS.md), the dependency was checked before adoption: - No vendored OpenCV exists anywhere in the tree, and the catalog had no entry, so org.opencv:opencv from Maven Central is the source. Maven Central is already declared (unscoped) in settings.gradle.kts dependencyResolutionManagement, so this adds no new repository host and respects FAIL_ON_PROJECT_REPOS: the change is a catalog pin plus a module dependency, nothing else. - SUPPLY_CHAIN_RISKS.md covers apps that fetch from external servers at runtime. OpenCV is on-device native code that makes no network calls, so it needs no entry there; provenance is recorded here and in the catalog comment instead. License: Apache-2.0. - Version 4.10.0 over 4.11+/5.x: the newest line verified to resolve through the build mirror and accepted by this AGP without friction. The AAR bundles per-ABI native libraries (~108 MB in the cache); that APK-size cost is the accepted price of a tracker that works on device, replacing a from-scratch engine that did not. No code consumes the dependency yet; the tracker lands next.
Diff
gradle/libs.versions.toml
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.tomlindex af7b1d4e29..e055a43d79 100644--- a/gradle/libs.versions.toml+++ b/gradle/libs.versions.toml@@ -108,6 +108,15 @@ grpcKotlin = "1.5.0" # @javax.annotation.Generated referenced by grpc-java generated stubs. javaxAnnotation = "1.3.2" jsr305 = "3.0.2"+# OpenCV Android SDK for :measure's visual-inertial tracker (org.opencv:opencv, Maven+# Central — already an approved repository in settings.gradle.kts, so no new host).+# Apache-2.0, purely on-device native code: it makes no network calls at runtime, so it+# needs no SUPPLY_CHAIN_RISKS.md entry (that file covers runtime server fetches only).+# 4.10.0 over 4.11+/5.x: the newest AAR line this AGP accepts without friction, and the+# release every Android sample targets. The AAR bundles per-ABI native libraries, which+# is the APK-size cost of replacing the home-grown Rust VIO — accepted for a tracker+# that actually works on device.+opencv = "4.10.0" zxing = "3.5.4" libphonenumber = "9.0.43" brotli = "0.1.2"@@ -335,6 +344,8 @@ grpc-protoc-gen-kotlin = { module = "io.grpc:protoc-gen-grpc-kotlin", version.re javax-annotation-api = { module = "javax.annotation:javax.annotation-api", version.ref = "javaxAnnotation" } google-jsr305 = { module = "com.google.code.findbugs:jsr305", version.ref = "jsr305" } zxing-core = { module = "com.google.zxing:core", version.ref = "zxing" }+# :measure visual-inertial tracker (see the version key for provenance and the size note).+opencv = { module = "org.opencv:opencv", version.ref = "opencv" } libphonenumber = { module = "com.googlecode.libphonenumber:libphonenumber", version.ref = "libphonenumber" } brotli-dec = { module = "org.brotli:dec", version.ref = "brotli" } okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }