Merged
Conversation
…ration - Enable EdgeAI to bind to a local engine service within the host app (embedded mode), prioritizing it over the standalone app. - Add targetPackageName parameter to initialize for explicit binding control. - Lower minSdk from 34 to 23 to allow integration with apps supporting older Android versions (e.g., Signal-Android).
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.
Overview
This PR adapts the BreezeApp-engine to be fully "embeddable" as a library within host applications. It lowers system requirements, implements library-aware build logic, and cleans up legacy resources.
Key Changes & Rationale
EdgeAI SDK Updates (Integration Logic)
Embedded Service Binding: Updated EdgeAI.initialize() to prioritize finding the engine service within the host app's package first. This enables a zero-dependency integration where the host app can include the engine internally.
minSdk Downgrade (34 -> 23): Lowered the minimum Android API requirement for the SDK from Android 14 to Android 6.0. This removes a major blocker for apps that need to support a wide range of devices.
BreezeApp-engine Build Refactoring (Library Mode Support)
The changes in build.gradle.kts are significant to support dual-mode (Standalone App vs. Embedded Library).
Source Set Separation: Configured sourceSets to conditionally exclude standalone resources (e.g., launcher icons, specific activities) when building in Library Mode (isLibraryMode). This prevents resource conflicts (e.g., duplicate ic_launcher) when mergining into a host app.
Dependency Management:
Cleanup
Impact