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:
1 parent
3bee159c4f
commit
42e4a1e0de
9 files changed
+144
No files matched your search
@@ -28,6 +28,14 @@ android {
|
||||
jvmTarget = JavaVersion.VERSION_17.toString()
|
||||
}
|
||||
|
||||
// tth fork: abiFilters does not reach prebuilt plugin .so files
|
||||
// (mlkit barhopper, flserial, ...), so drop the other ABIs at packaging.
|
||||
packaging {
|
||||
jniLibs {
|
||||
excludes += listOf("lib/armeabi-v7a/**", "lib/x86/**", "lib/x86_64/**")
|
||||
}
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId = "com.meshcore.meshcore_open"
|
||||
|
||||
Reference in new issue
Block a user