From f7671a7eb5b2c11305ab50d60ae7e7934a6cd1ff Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Thu, 21 Nov 2024 14:01:42 -1000 Subject: [PATCH] [XABT] Use a response file for `D8` task. --- src/Xamarin.Android.Build.Tasks/Tasks/D8.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Xamarin.Android.Build.Tasks/Tasks/D8.cs b/src/Xamarin.Android.Build.Tasks/Tasks/D8.cs index e2e5b9349b1..463d1cb2280 100644 --- a/src/Xamarin.Android.Build.Tasks/Tasks/D8.cs +++ b/src/Xamarin.Android.Build.Tasks/Tasks/D8.cs @@ -4,6 +4,7 @@ using System.IO; using Xamarin.Android.Tools; using Microsoft.Android.Build.Tasks; +using System.Text; namespace Xamarin.Android.Tasks { @@ -42,11 +43,13 @@ public class D8 : JavaToolTask public string ExtraArguments { get; set; } - protected override string GenerateCommandLineCommands () + protected override string GenerateResponseFileCommands () { return GetCommandLineBuilder ().ToString (); } + protected override Encoding ResponseFileEncoding => Encoding.UTF8; + protected virtual string MainClass => "com.android.tools.r8.D8"; protected int MinSdkVersion { get; set; }