xamarin-android-d8-build
0.2.1
dotnet add package xamarin-android-d8-build --version 0.2.1
NuGet\Install-Package xamarin-android-d8-build -Version 0.2.1
<PackageReference Include="xamarin-android-d8-build" Version="0.2.1" />
paket add xamarin-android-d8-build --version 0.2.1
#r "nuget: xamarin-android-d8-build, 0.2.1"
// Install xamarin-android-d8-build as a Cake Addin #addin nuget:?package=xamarin-android-d8-build&version=0.2.1 // Install xamarin-android-d8-build as a Cake Tool #tool nuget:?package=xamarin-android-d8-build&version=0.2.1
d8 or r8 compiler support for Xamarin.Android
Xamarin.Android as of b84de80 (which should be in d15-5) makes it possible to alter Dex tool path and arguments enough to switch to new D8 dex compiler in release mode, and e25f843 makes it possible to do it in debug mode.
It is simply done by setting MSBuild properties: DxJarPath and DxExtraArguments (the latter is new in d15-5, so it won't be usable in d15-4 or earlier).
There is a NuGet package that you can just install and add to your Android application project: https://github.com/atsushieno/xamarin-android-d8-build
r8 sources can be found at https://r8.googlesource.com/r8
The LICENSE file is only for r8 itself. I don't believe the rest of this project contains any creative source to make it copyrightable.
r8 or d8?
Both of them are packaged in the NuGet package above, and it is just a
matter of which DxJarPath
MSBuild property points to. But basically, r8
is a proguard replacement so it will run linking steps too.
Add <DesugarWithR8>true</DesugarWithR8>
in your .csproj
to use r8.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
See github commits, there is not a lot.