Skip to content

Conversation

@dellis1972
Copy link
Contributor

Commit 6b91b04 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.

@dellis1972 dellis1972 requested review from jpobst and removed request for jonathanpeppers January 6, 2025 18:00
@dellis1972
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@jpobst jpobst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good. One thing to consider for the future is if we can combine _BuildApkEmbed and _BuildApkFastDev, as ~95% of it is duplicated.

Commit 6b91b04 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.
@dellis1972 dellis1972 force-pushed the dev/dellis1972/fastdevremovecollect branch from ac14713 to 8ca0581 Compare January 7, 2025 13:25
@dellis1972
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jonpryor jonpryor merged commit 7013d3f into main Jan 8, 2025
61 checks passed
@jonpryor jonpryor deleted the dev/dellis1972/fastdevremovecollect branch January 8, 2025 20:22
grendello added a commit that referenced this pull request Jan 9, 2025
* main:
  Add `$(Nullable)` = `annotations` to projects using NRT annotations without NRT enabled. (#9660)
  [Xamarin.Android.Build.Tasks] Add %(NuGetPackage*) to TaskItems (#9559)
  Bump to dotnet/java-interop@ee47652d (#9659)
  [XABT] Remove <CollectAssemblyFilesForArchive/> from FastDeployment (#9650)
  [Mono.Android] Generate API docs for API level 35 (#9647)
  [java-runtime] simplify `mono.MonoPackageManager.LoadApplication()` (#9655)
  [Mono.Android] Bind Android API-Baklava DP2. (#9653)
  [build+macOS] Remove quarantine from OpenJDK installations (#9652)
grendello added a commit that referenced this pull request Jan 9, 2025
* dev/grendel/use-libc++:
  Add `$(Nullable)` = `annotations` to projects using NRT annotations without NRT enabled. (#9660)
  [Xamarin.Android.Build.Tasks] Add %(NuGetPackage*) to TaskItems (#9559)
  Bump to dotnet/java-interop@ee47652d (#9659)
  [XABT] Remove <CollectAssemblyFilesForArchive/> from FastDeployment (#9650)
  [Mono.Android] Generate API docs for API level 35 (#9647)
  [java-runtime] simplify `mono.MonoPackageManager.LoadApplication()` (#9655)
  [Mono.Android] Bind Android API-Baklava DP2. (#9653)
  [build+macOS] Remove quarantine from OpenJDK installations (#9652)
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants