-
Notifications
You must be signed in to change notification settings - Fork 534
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
base: main
Are you sure you want to change the base?
Conversation
d08fdf2
to
8f05381
Compare
373a6a5
to
f96ca96
Compare
8b86bf8
to
ddc632f
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
src/Xamarin.Android.Build.Tasks/Utilities/FileResourceParser.cs
Outdated
Show resolved
Hide resolved
src/Xamarin.Android.Build.Tasks/Tasks/GenerateResourceCaseMap.cs
Outdated
Show resolved
Hide resolved
...amarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.Resource.Designer.targets
Outdated
Show resolved
Hide resolved
...d.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.AssemblyResolution.targets
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
...d.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.AssemblyResolution.targets
Show resolved
Hide resolved
src/Xamarin.Android.Build.Tasks/Tasks/GenerateResourceCaseMap.cs
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I reran several of the test lanes. |
continue; | ||
} | ||
using (var file = File.OpenRead (aar)) { | ||
using var zip = ZipArchive.Open (file); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 _
.
Context dotnet/maui#25207
Also
designtime
folder.