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

Rework Design Time Build to use .aar files directly. #9423

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dellis1972
Copy link
Contributor

@dellis1972 dellis1972 commented Oct 18, 2024

Context dotnet/maui#25207
Also

  1. Only import targets we actually need for a DTB
  2. re-order the targets to they run in the right places
  3. don't run targets we don't need to.
  4. move all design time files (as much as possible) to the designtime folder.

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972 dellis1972 marked this pull request as ready for review December 9, 2024 19:46
@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jonathanpeppers
Copy link
Member

I reran several of the test lanes.

continue;
}
using (var file = File.OpenRead (aar)) {
using var zip = ZipArchive.Open (file);
Copy link
Member

Choose a reason for hiding this comment

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

Given #9623 and the apparent immense performance difference between Xamarin.Tools.Zip and System.IO.Compression, I think we should try using System.IO.Compression to read the .aar files, unless we require Xamarin.Tools.Zip for some reason…

continue;
}
using (var file = File.Open (aar, FileMode.Open, FileAccess.ReadWrite, FileShare.Read)) {
using var zip = ZipArchive.Open (file);
Copy link
Member

Choose a reason for hiding this comment

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

Given #9623 and the apparent immense performance difference between Xamarin.Tools.Zip and System.IO.Compression, I think we should try using System.IO.Compression to read the .aar files, unless we require Xamarin.Tools.Zip for some reason…

custom_types.Add (custom_id);
}
if (!string.IsNullOrEmpty (id)) {
CreateResourceField (custom_id ?? "id", id.Replace ("-", "_").Replace (".", "_"), resources);
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this should instead use a Regex to replace anything outside [A-Za-z][A-Za-z0-9_]* with _.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants