You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[NativeAOT] add sample that runs successfully (#9636)
Context: https://github.com/dotnet/java-interop/tree/9b1d8781e8e322849d05efac32119c913b21c192/samples/Hello-NativeAOTFromAndroid
"Import" the [Hello-NativeAOTFromAndroid][0] from
dotnet/java-interop, and update it to use `Mono.Android.dll` and
parts of the .NET for Android build system.
It currently relies on `[InternalsVisibleTo("NativeAOT")]` within
`Mono.Android.dll` for access to things like:
* `Android.Runtime.JNIEnvInit.InitializeJniRuntime()`
There are a couple MSBuild changes still left:
TODO:
* `$(_ExtraTrimmerArgs)` needs to be specified for trimmer warnings
to not be displayed twice. This is the same thing done in
xamarin/xamarin-macios.
* `@(TrimmerRootAssembly)` needs to be set for illink's
"already trimmed" output for ILC. We exclude
`System.Private.CoreLib.dll` from this list.
* Remove use of `Java.Runtime.Environment.dll`, and otherwise allow
the sample to be built from the .NET for Android workload packs.
* "MOAR Integration": sample depends upon a manually specified
"type map" dictionary. This needs to be automagic to be useful.
* Figure out what to do about C++: do we dynamically link against
and bundle `libc++_shared.so`?
Statically link against `libc++_static.a`?
[0]: dotnet/java-interop@78d5937
0 commit comments