From 8ca0581dbd07b43f884dc937fdb602c57555beb3 Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Mon, 6 Jan 2025 17:56:34 +0000 Subject: [PATCH] Remove call to CollectAssemblyFilesForArchive for Fast Deployment. Commit 6b91b042 split up the BuildApk task into their own Tasks to improve build performance. In that change the call to `CollectAssemblyFilesForArchive` was a no-op if `EmbedAssembliesIntoApk` was set to `False`. However it was still being called in the `_BuildApkFastDev` target, even though it had a condition which would skip the target entirely if `EmbedAssembliesIntoApk` was `False`. So lets remove the call to `CollectAssemblyFilesForArchive` from `_BuildApkFastDev` completely. We can also remove the `EmbedAssemblies` property from the `CollectAssemblyFilesForArchive` task as it is no longer needed. --- .../Tasks/CollectAssemblyFilesForArchive.cs | 6 ------ .../Xamarin.Android.Common.targets | 16 ---------------- 2 files changed, 22 deletions(-) diff --git a/src/Xamarin.Android.Build.Tasks/Tasks/CollectAssemblyFilesForArchive.cs b/src/Xamarin.Android.Build.Tasks/Tasks/CollectAssemblyFilesForArchive.cs index 20f3e7e15cb..84d66ef827b 100644 --- a/src/Xamarin.Android.Build.Tasks/Tasks/CollectAssemblyFilesForArchive.cs +++ b/src/Xamarin.Android.Build.Tasks/Tasks/CollectAssemblyFilesForArchive.cs @@ -29,8 +29,6 @@ public class CollectAssemblyFilesForArchive : AndroidTask [Required] public string AppSharedLibrariesDir { get; set; } = ""; - public bool EmbedAssemblies { get; set; } - [Required] public bool EnableCompression { get; set; } @@ -58,10 +56,6 @@ public class CollectAssemblyFilesForArchive : AndroidTask public override bool RunTask () { - // If we aren't embedding assemblies, we don't need to do anything - if (!EmbedAssemblies) - return !Log.HasLoggedErrors; - var files = new PackageFileListBuilder (); DSOWrapperGenerator.Config dsoWrapperConfig = DSOWrapperGenerator.GetConfig (Log, AndroidBinUtilsDirectory, IntermediateOutputPath); diff --git a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets index 87406c4e337..ba56eff5b92 100644 --- a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets +++ b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets @@ -2117,7 +2117,6 @@ because xbuild doesn't support framework reference assemblies. AndroidBinUtilsDirectory="$(AndroidBinUtilsDirectory)" ApkOutputPath="$(_ApkOutputPath)" AppSharedLibrariesDir="$(_AndroidApplicationSharedLibraryPath)" - EmbedAssemblies="$(EmbedAssembliesIntoApk)" EnableCompression="$(AndroidEnableAssemblyCompression)" IncludeDebugSymbols="$(AndroidIncludeDebugSymbols)" IntermediateOutputPath="$(IntermediateOutputPath)" @@ -2247,21 +2246,6 @@ because xbuild doesn't support framework reference assemblies. LibraryProjectJars="@(ExtractedJarImports)"> - - - -