-
Notifications
You must be signed in to change notification settings - Fork 62
Add new Google Maven artifacts to config.json and remove problematic proto namespaces #1243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@copilot Please commit all the PublicAPI files |
I've committed all the PublicAPI files along with the required org.json dependency. Created PublicAPI directories and files for:
Also added the missing org.json:json dependency to config.json which was required by the localagents artifacts. All files committed in 93b8e30. |
@copilot Please commit all the PublicAPI files |
All PublicAPI files have already been committed in 93b8e30. The commit includes all required PublicAPI files for the new Google AI Edge LocalAgents and MediaPipe artifacts:
The working tree is clean with no additional PublicAPI files to commit. |
@copilot there are some build errors:
|
... Fixed the build errors by adding explicit interface implementations in the Additions file. The issue was that the concrete classes |
@copilot Now that the changes are made, there should be re-generated PublicAPI files. PLease commit the new chanmges as well. |
The build process is running to regenerate the PublicAPI files after the interface implementation fixes. The |
We can now use a modern Java to build the native libraries.
This reverts commit a76a334.
This reverts commit fa09d98.
Co-authored-by: mattleibow <[email protected]>
…ogle AI Edge and MediaPipe artifacts Co-authored-by: mattleibow <[email protected]>
Co-authored-by: mattleibow <[email protected]>
Co-authored-by: mattleibow <[email protected]>
0b99f15
to
72b59b1
Compare
@copilot I see some build errors:
Can you remove the |
Co-authored-by: mattleibow <[email protected]>
... Fixed the build errors by creating metadata transforms to remove the problematic proto namespaces from both localagents bindings. Added Metadata.xml files that remove: For localagents-fc:
For localagents-rag:
These internal proto types were causing interface implementation conflicts similar to the MediaPipe tasks-genai binding. The transforms eliminate these internal packages from the generated bindings. Changes committed in 5e4a5ed. |
This PR adds three new Google Maven artifacts to the
config.json
configuration file to enable .NET for Android bindings for new Google AI and MediaPipe libraries, along with their required dependencies and necessary binding fixes.Added Artifacts
Google AI Edge LocalAgents
Xamarin.Google.AI.Edge.LocalAgents.FC
Xamarin.Google.AI.Edge.LocalAgents.RAG
Google MediaPipe Tasks
Xamarin.Google.MediaPipe.Tasks.GenAI
Dependencies and Fixes
The
org.json:json
dependency required by the localagents artifacts has been excluded viaexcludedRuntimeDependencies
to prevent packaging conflicts, as this library is already available in the Android runtime.All internal proto namespaces have been removed from the bindings using metadata transforms to resolve compilation errors. These proto classes are internal implementation details that were causing interface implementation conflicts:
com.google.mediapipe.tasks.genai.llminference.jni.proto
namespacecom.google.ai.edge.localagents.core.proto
andcom.google.ai.edge.localagents.fc.proto
namespacescom.google.ai.edge.localagents.rag.memory.proto
andcom.google.ai.edge.localagents.rag.models.proto
namespacesThe metadata transforms use
remove-node
directives to eliminate these internal packages from the generated bindings, preventing CS0535 errors where concrete classes failed to implement interface members correctly.All artifacts follow the established config.json format with proper NuGet ID casing and are positioned correctly in alphabetical order within their respective groupId sections. PublicAPI files have been created for all new bindings following repository conventions.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.