Repository navigation
Conversation
Adds Gemini Nano (ML Kit GenAI Prompt API / AICore) as the Android counterpart to the Apple Intelligence on-device bean import. - BCAndroidNativeCalls: geminiNanoStatus (triggers model download when downloadable) and geminiNanoGenerate, using com.google.mlkit:genai-prompt - New GEMINI_NANO provider; option is shown on Android and disabled with a "not supported on this device" label when Nano is unavailable - sendLLMPrompt and checkReadiness dispatch per platform; the iOS Apple Intelligence path is unchanged - Rename AppleIntelligenceAIBeanImportService to OnDeviceAIBeanImportService since it now serves both platforms - Unit tests for the Gemini Nano prompt path (success, error, timeout) - New strings added to en.json only; other languages follow via Lokalise
Ekalips
marked this pull request as ready for review
November 4, 2026 23:32
This branch has not been deployed
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.
Description
Adds Gemini Nano (ML Kit GenAI Prompt API) as an on-device AI provider for bean import on Android (available on Pixel and Samsung flagships), the counterpart to Apple Intelligence on iOS.
BCAndroidNativeCallsPlugin(geminiNanoStatus,geminiNanoGenerate)GEMINI_NANOprovider, shown on Android like Apple Intelligence on iOSsendLLMPrompt/checkReadinessdispatch per platform; iOS path unchangedAppleIntelligenceAIBeanImportServicerenamed toOnDeviceAIBeanImportServiceso naming makes more senseNote: this can also be achieved via the capacitor plugin, but that would require more changes across the codebase that I was comfortable doing and checking, nevertheless could still be a viable path forward.
Tested on a Pixel 10 Pro: 2 photo import in ~14 s.
GitHub Issue / Discussion Reference
Ref / Closes: #
AI Assistance Disclosure
AI Usage Level
AI Provider / Tool
Type of Change
Screenshots / Videos (if applicable)
Tested Platforms
Checklist