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

@@ -0,0 +1,4 @@
Future<void> initLangDetect() async {}
String detect(String text) =>
throw UnsupportedError('Language detection is not built in.');
+6
View File
@@ -0,0 +1,6 @@
name: flutter_langdetect
description: Stub without native code (meshcore-open tth fork).
version: 0.0.1
publish_to: none
environment:
sdk: ^3.9.2