feat: 0.9.0 Android NDK native C++ compilation and Gradle integration - #3
Closed
sebasbad wants to merge 3 commits into
Closed
feat: 0.9.0 Android NDK native C++ compilation and Gradle integration#3sebasbad wants to merge 3 commits into
sebasbad wants to merge 3 commits into
Conversation
sebasbad
force-pushed
the
feat/0.9.0-android-support
branch
from
August 1, 2026 07:56
b3f8e33 to
d6f010e
Compare
sebasbad
changed the base branch from
feat/0.9.0-architecture
to
feat/0.9.0-ios-macos-flutter-support
August 1, 2026 07:56
Owner
Author
|
Closing in favor of Context: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 0.9.0 Android NDK Native C++ Compilation & Gradle Integration
📌 Executive Summary
This PR builds on top of the 0.9.0 isolate architecture (#2) to provide Android NDK C++ native shared object libraries (
libllama.soforarm64-v8a), automatic Flutter Android plugin linking, and NDK cross-compilation toolchain integration.🔑 Key Changes & Implementation Details
Android NDK C++ Shared Objects (
arm64-v8a):libllama.so,libggml-base.so,libggml-cpu.so,libmtmd.so(Vision/VLM), andlibggml.sousing Android NDK toolchain (API level 26 / Oreo floor).llvm-stripto keep binary sizes lightweight (libllama.so~3.1MB).Flutter Android Plugin Integration (
android/):android/build.gradleandandroid/src/main/AndroidManifest.xml.android/src/main/jniLibs/arm64-v8a/containing stripped native.sobinaries for automatic Flutter Gradle embedding.Platform Manifest Update (
pubspec.yaml):android: ffiPlugin: trueunderflutter.plugin.platforms.✅ Verification
dart analyze: 0 Errors, 0 Warnings, 0 Hints (No issues found!)..sobinaries inandroid/src/main/jniLibs/arm64-v8a/.