-
Notifications
You must be signed in to change notification settings - Fork 566
[TrimmableTypeMap] Implement runtime TypeManager, ValueManager, and JavaConvert #10967
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
Open
simonrozsival
wants to merge
20
commits into
main
Choose a base branch
from
dev/simonrozsival/trimmable-typemap-runtime-pr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+699
−63
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4ead1b1
[TrimmableTypeMap] Add runtime base types for generated proxies
simonrozsival 70c7d67
[TrimmableTypeMap] Emit JavaPeerProxy<T> as generic base class
simonrozsival 1644e27
[TrimmableTypeMap] Add TrimmableTypeMap, TypeManager, and wire managers
simonrozsival cf8b6f9
[TrimmableTypeMap] Add RegisterNatives bootstrap
simonrozsival 404c3fd
[TrimmableTypeMap] AOT-safe JavaConvert and ArrayCreateInstance
simonrozsival 53e3154
[TrimmableTypeMap] AOT-safe CreateArray with dynamic code fallback
simonrozsival 69d9338
Fix build errors and trimming annotations
simonrozsival a970337
Refactor JavaMarshalValueManager to take TrimmableTypeMap in constructor
simonrozsival 0035032
[tests] Update BuildReleaseArm64SimpleDotNet.MonoVM.apkdesc
jonathanpeppers b225af8
Fix TrimmableTypeMap: ActivateInstance, assembly pre-loading, GetJniT…
simonrozsival dc338a2
Fix trimmer compatibility and TryCreatePeer proxy lookup
simonrozsival 3d56f5f
Simplify TryGetJniNameForType to use IJniNameProviderAttribute
simonrozsival ce09b7f
Address PR feedback: remove TypeMapException, FailFast in OnRegisterN…
simonrozsival 424df43
Guard TrimmableTypeMap reference in ArrayCreateInstance with feature …
simonrozsival e3f576f
Address code review findings
simonrozsival 945b837
Pass RegisterJniNatives via init args, add registerNatives C++ stub
simonrozsival aad2ddb
Revert apkdesc to main baseline
simonrozsival 6f0a24f
Remove assembly pre-loading from TrimmableTypeMap
simonrozsival 57a747f
Fix external/Java.Interop submodule ref to match main
simonrozsival e598f28
Add missing registerNatives declaration to host headers
simonrozsival File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule Java.Interop
updated
9 files
Submodule xamarin-android-tools
updated
15 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #nullable enable | ||
|
|
||
| using System; | ||
|
|
||
| namespace Java.Interop | ||
| { | ||
| /// <summary> | ||
| /// Interface for proxy types that represent Android Callable Wrappers (ACW). | ||
| /// ACW types are .NET types that have a corresponding generated Java class | ||
| /// which calls back into .NET via JNI native methods. | ||
| /// </summary> | ||
| public interface IAndroidCallableWrapper | ||
| { | ||
| /// <summary> | ||
| /// Registers JNI native methods for this ACW type. | ||
| /// Called when the Java class is first loaded and needs its native methods bound. | ||
| /// </summary> | ||
| /// <param name="nativeClass">The JNI type for the Java class.</param> | ||
| void RegisterNatives (JniType nativeClass); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.