From 448ea6ca2caa0c07859ddd448709eaecf5137607 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 21 Jul 2026 12:29:34 +0200 Subject: [PATCH] Guard AndroidLegoServiceExtensions with #if __ANDROID__ The Android transport helper referenced SharpBrick.PoweredUp(.Mobile) unconditionally, so the plain net10.0 build (the CI gate) failed with CS0246 since those packages only exist on the Android head. Wrap the file in #if __ANDROID__ ... #endif to match its WINDOWS / __IOS__ siblings. Co-Authored-By: Claude Opus 4.8 --- .../Services/AndroidLegoServiceExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Trackify.Application/Services/AndroidLegoServiceExtensions.cs b/Source/Trackify.Application/Services/AndroidLegoServiceExtensions.cs index 1106b57..d685748 100644 --- a/Source/Trackify.Application/Services/AndroidLegoServiceExtensions.cs +++ b/Source/Trackify.Application/Services/AndroidLegoServiceExtensions.cs @@ -1,3 +1,4 @@ +#if __ANDROID__ using Microsoft.Extensions.DependencyInjection; using SharpBrick.PoweredUp; using SharpBrick.PoweredUp.Mobile; @@ -18,3 +19,4 @@ public static IServiceCollection AddAndroidLego(this IServiceCollection services return services; } } +#endif