Skip to content

[pull] main from xamarin:main - #223

Merged
pull[bot] merged 1 commit into
MaxMood96:mainfrom
dotnet:main
May 12, 2022
Merged

pull[bot] merged 1 commit into
MaxMood96:mainfrom
dotnet:main

Conversation

@pull

@pull pull Bot commented May 12, 2022 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

Update the `@(AndroidJavaSource)` Build action:

 1. In .NET 7, all `**\*.java` files are automatically added to the
    `@(AndroidJavaSource)` Build action.

 2. Add `%(AndroidJavaSource.Bind)` item metadata, a boolean value
    (default is True) which controls whether or not the file is
    compiled and bound *prior* to the C# build.

The combination of these means that custom Java code can be added to
any .NET Android project, and a binding of that Java code will be
usable by the C# code.  Both Java code and bindings will be included
in App builds of referencing apps.

There are some restrictions on the Java code.  You can only use Java
types or types which are defined in `.jar` or `.aar` files referenced
by the project via `@(AndroidLibrary)` or `@(EmbeddedJar)`.  It is
suggested that you *do not* have `publi` Java types which use Java
generics.  As with normal bindings, Java generics can cause
significant problems; try to stuck to normal types if you can.
@pull pull Bot added the ⤵️ pull label May 12, 2022
@pull
pull Bot merged commit 67ce902 into MaxMood96:main May 12, 2022
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant