forked from dotnet/android
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump to xamarin/Java.Interop/main@cba61370 (dotnet#5530)
Fixes: dotnet#5400 Changes: dotnet/java-interop@a8f68e5...cba6137 * dotnet/java-interop@cba61370: [Java.Interop] Add JniRuntime.JniValueManager.ActivatePeer() (dotnet#784) * dotnet/java-interop@8c7194fd: [AzDO] Switch default branch from master to main. (dotnet#786) * dotnet/java-interop@b0d170c1: [generator] Only apply ConstSugar to Mono.Android.dll (dotnet#780) dotnet/java-interop@cba61370 removed the the previously required use of System.Linq.Expressions from the internal `ManagedPeer` class, replacing with a call to `JniRuntime.JniValueManager.ActivatePeer()`. Override `JniRuntime.JniValueManager.ActivatePeer()` within `Android.Runtime.AndroidRuntime`, implementing `AndroidRuntime.ActivatePeer()` in terms of `Java.Interop.TypeManager.Activate()`, thus avoiding the need for System.Linq.Expressions. This saves us ~15% in assembly size; size difference of BuildReleaseArm64False on net6: Size difference in bytes ([*1] apk1 only, [*2] apk2 only): + 96 assemblies/Mono.Android.dll - 331 assemblies/System.Collections.Concurrent.dll - 907 assemblies/Java.Interop.dll - 1,003 assemblies/System.Linq.dll - 3,856 assemblies/System.ObjectModel.dll *1 - 4,496 assemblies/System.Collections.dll *1 - 7,824 assemblies/System.Private.CoreLib.dll - 115,284 assemblies/System.Linq.Expressions.dll *1 Summary: - 133,605 Assemblies -15.33% (of 871,776)
- Loading branch information
1 parent
1ec865d
commit c33f557
Showing
5 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
Submodule Java.Interop
updated
from a8f68e to cba613
This file contains 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 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 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 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