From f6e8b158667d965f4bc8352b27b70b7e455e5ba8 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Thu, 20 Aug 2026 11:03:00 -0500 Subject: [PATCH] [build] Serialize pose detection projects Add a reusable build-order mapping that emits ordering-only ProjectReference items, preventing the pose detection projects from concurrently consuming their shared AAR. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- source/_PackageLevelCustomizations.cshtml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/source/_PackageLevelCustomizations.cshtml b/source/_PackageLevelCustomizations.cshtml index 4f48b1bc7..654631aea 100644 --- a/source/_PackageLevelCustomizations.cshtml +++ b/source/_PackageLevelCustomizations.cshtml @@ -1,12 +1,33 @@ @model AndroidBinderator.BindingProjectModel @using System +@using System.Collections.Generic @using System.Linq @* Ideally we don't want to maintain any package-specific customizations, but we don't always have a better option. *@ - + +@{ + // Build-order-only edges for projects that contend for shared generated outputs. + var buildOrderProjectReferences = new Dictionary { + ["Xamarin.Google.MLKit.PoseDetection"] = new [] { + "com.google.mlkit.pose-detection-accurate", + }, + }; +} + +@if (buildOrderProjectReferences.TryGetValue(Model.NuGetPackageId, out var buildOrderDependencies)) +{ + + @foreach (var dependency in buildOrderDependencies) { + + } + +} + @if(Model.NuGetPackageId == "Xamarin.Google.Guava") {