CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop

Unable to Add Android Project-Level Plugin Dependencies to MAUI

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
249
Forks
48
PR merge metrics
No merged PRs in 30d

Description

I have tried multiple approaches, but I’m unable to add project-level build.gradle plugin dependencies to MAUI. Specifically, I attempted to integrate the [Instana Android Agent](https://github.com/instana/android-agent) into a MAUI project. While I was able to include the runtime library, the plugin itself could not be integrated.

```
plugins {
id("com.android.application")
id("com.instana.android-agent-plugin")
}
```

The plugin is included in the .aar package but is not applied when running MAUI. It seems that only build.gradle libraries at the app level are successfully included, while project-level plugin dependencies are not being applied.

I’m looking for a way to support the integration of project-level plugins in MAUI, as this behavior seems to affect other plugin-level injections as well.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the MAUI integration with the Instana Android Agent and compare the app-level library behavior with the project-level build.gradle plugin declarations. Inspect how the .aar package is consumed; done means project-level Android plugins are applied when running MAUI, not only runtime libraries.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
build-system, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.