Build without on-device ML, arm64 only

Replace llamadart, flutter_onnxruntime and flutter_langdetect with
API-compatible stubs via dependency_overrides, so llama.cpp, LiteRT-LM
and ONNX Runtime are not packaged. Translation and the neural image
codec become unavailable; both are off by default upstream.

Also drop non-arm64 prebuilt plugin libraries at packaging time.
APK: 340 MB -> 39.5 MB, flutter test 909/909 passing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-10-19 11:59:53 +02:00
1 parent 3bee159c4f
commit 42e4a1e0de
9 files changed
+144

No files matched your search

+9
View File
@@ -188,3 +188,12 @@ build_pipe:
# Strongly recommended: disables the default service worker which often causes more cache headaches
add_version_query_param: true
# This is the key flag! It appends ?v=<your pubspec version> to bootstrap/JS files
# tth fork: native ML packages replaced by stubs, see stubs/README.md
dependency_overrides:
llamadart:
path: stubs/llamadart
flutter_onnxruntime:
path: stubs/flutter_onnxruntime
flutter_langdetect:
path: stubs/flutter_langdetect