From a0d8491eec8069bff65eaa6357b2737d904eacd2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 02:13:08 +0000 Subject: [PATCH] Enable nullable annotations for GetGdbSymbols Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Tasks/GetGdbSymbols.cs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/Xamarin.Android.Build.Debugging.Tasks/Tasks/GetGdbSymbols.cs b/src/Xamarin.Android.Build.Debugging.Tasks/Tasks/GetGdbSymbols.cs index c84b27b1f78..e26489c7c63 100644 --- a/src/Xamarin.Android.Build.Debugging.Tasks/Tasks/GetGdbSymbols.cs +++ b/src/Xamarin.Android.Build.Debugging.Tasks/Tasks/GetGdbSymbols.cs @@ -1,4 +1,5 @@ -using System; +#nullable enable +using System; using System.IO; using System.Linq; using System.Threading; @@ -15,24 +16,19 @@ public class GetGdbSymbols : AndroidTask { public override string TaskPrefix => "GGDB"; - public string AdbTarget { get; set; } + public string? AdbTarget { get; set; } [Required] - public string GdbSymbolsPath { get; set;} + public string GdbSymbolsPath { get; set; } = ""; [Required] - public string Package { get; set; } + public string Package { get; set; } = ""; [Required] - public string OutputPath { get; set; } + public string OutputPath { get; set; } = ""; [Required] - public string PrimaryCpuAbi {get; set; } - - public GetGdbSymbols () - { - AdbTarget = null; - } + public string PrimaryCpuAbi { get; set; } = ""; public override bool RunTask () { @@ -63,4 +59,3 @@ void ExtractFilesFromPath(string apk, string path) } } } -