CommunityToolkit / Maui.NativeLibraryInterop

Maui.NativeLibraryInterop is a community-created library of binding samples to help .NET MAUI developers interop with native libraries more easily
MIT License
179 stars 28 forks source link

[android] Add gradle build task #19

Closed pjcollins closed 5 months ago

pjcollins commented 6 months ago

Introduces a new @(GradleProjectReference) item to help simplify the content that needs to be added to the binding .csproj file. This item will translate relevant metadata to the @(AndroidLibrary) item that is automatically added to the project after the gradle project is built.

A gradle build task has been added to improve msbuild output and error logging when a gradle invocation fails.

We will now attempt to set $ANDROID_HOME and $JAVA_HOME automatically when invoking gradle. These values will be determined by Android SDK tooling resolution tasks, and can be changed by setting $(AndroidSdkDirectory) and $(JavaSdkDirectory) in the project file or on the command line.