Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Aapt2 .flata archives on Nuget Restore. #2101

Closed
dellis1972 opened this issue Aug 24, 2018 · 3 comments
Closed

Generate Aapt2 .flata archives on Nuget Restore. #2101

dellis1972 opened this issue Aug 24, 2018 · 3 comments
Assignees
Labels

Comments

@dellis1972
Copy link
Contributor

To help speed up initial build times we should investigate generating the aapt2 flata archives for support library components when the components are restored.

We should also look again and ways we can cache these archives (with the appropriate aapt2 version) so that they can be reused across a number of projects.

@dellis1972
Copy link
Contributor Author

Need to figure out which Nuget target to hook into for this to work.

@kzu
Copy link
Contributor

kzu commented Nov 8, 2018

One way would be to run a target after Restore target. However, that would make the restore itself slower and could be considered a regression.

Alternatively, we can have the IDEs invoke this after restore is complete, with the same caveats as the Xamarin.Build.Download: if the process hasn't finished by the time the Build runs, it will be done there and then. (causing a slow-ish build the first time).

Using the same nuget package location would ensure it's properly versioned (i.e. a %userprofile%\.nuget\packages\xamarin.android.support.v4\27.0.2.1\obj\[BUILD_TOOLS_VERSION]), so that if users clean the nuget cache, those go away too (with nuget locals all -clear).

@dellis1972
Copy link
Contributor Author

I'm going to close this issue as its probably not going to help

@ghost ghost locked as resolved and limited conversation to collaborators Jun 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants