[Mono.Android] build and reference non-PCL Java.Interop #2149
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.
Fixes: http://work.devdiv.io/667174
Context: dotnet/java-interop@893562c
Context: dotnet/java-interop@659711c
Context: dotnet/java-interop@b873e81...a09932d
Bumped to java.interop/d15-9/a09932d
Build
lib\xamarin.android\xbuild-frameworks\MonoAndroid\v1.0\Java.Interop.dll
as a
MonoAndroid
-profile assembly instead of as a PCL assembly.This decreases the assemblies referenced in a "Hello World"
Xamarin.Android project dramatically; this:
now becomes:
Because fewer assemblies need to be resolved, the
Rebuild
targettimes improve by 30%-50% for the "Hello World" app:
Debug
+ PCL: 8.424sDebug
+ not PCL: 4.258s (~50% faster!)Release
+ PCL: 13.651sRelease
+ not PCL: 9.487s (~30% faster!)The
lib\xamarin.android\xbuild\Xamarin\Android\Java.Interop.dll
copy used by
Xamarin.Android.Build.Tasks.dll
remains unchanged, asit is referenced by
Xamarin.Android.Build.Tasks.csproj
.