-
Notifications
You must be signed in to change notification settings - Fork 515
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
[Globalization] Exclude not used ICU Files #20828
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b30dc91
Revert "Migrate Messaging Build agent to .NET 8 (#20705)" (#20790)
rolfbjarne a28cf64
[msbuild] Don't support RuntimeIdentifiers for Hot Restart. (#20750)
rolfbjarne a3f61a9
Backport bot: Use managed identity (MI) authorization (#20798)
mjbond-msft 9a88882
[CI] Disable the governance checks on the tests. (#20797)
mandel-macaque 95df610
[build] Parameterize the .NET download script url. (#20806)
rolfbjarne 323d28c
[Foundation] Make the generic collection classes' generic GetEnumerat…
rolfbjarne 6da8273
[src/tools] Propagate the BackwardsCompatibleCodeGeneration field fro…
rolfbjarne 7e615b0
[main] Update dependencies from dotnet/installer (#20753)
dotnet-maestro[bot] 63b4703
[main] Update dependencies from dotnet/xharness (#20770)
dotnet-maestro[bot] 7f2c575
[siminstaller] Don't use the C# compiler server. (#20812)
rolfbjarne c930ab3
[monotouch-test] Remove ignore for Mac Catalyst. (#20810)
rolfbjarne 91ffc65
[msbuild] Show a slightly better warning message when trying to expan…
rolfbjarne 9582522
[xtro] Convert most projects to .NET projects. (#20760)
rolfbjarne 71acf6a
[bgen] Add simple makefile. (#20789)
rolfbjarne 649c3e7
icu dat files are not used anymore
mkhamoyan 80b8e45
Merge branch 'main' into dev/mkhamoyan/clean-icu-files
mkhamoyan 36aaaef
Merge remote-tracking branch 'origin/net9.0' into dev/mkhamoyan/clean…
mkhamoyan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using Microsoft.Build.Framework; | ||
using Microsoft.Build.Utilities; | ||
using Xamarin.Localization.MSBuild; | ||
using Xamarin.MacDev.Tasks; | ||
using Xamarin.Messaging.Build.Client; | ||
using Xamarin.Messaging.Build.Contracts; | ||
using Threading = System.Threading.Tasks; | ||
|
||
namespace Xamarin.MacDev.Tasks { | ||
public class VerifyXcodeVersion : XamarinTask { | ||
public override bool Execute () => ExecuteAsync ().Result; | ||
|
||
async Threading.Task<bool> ExecuteAsync () | ||
{ | ||
try { | ||
var connection = await BuildConnection.GetAsync (BuildEngine4).ConfigureAwait (continueOnCapturedContext: false); | ||
var buildClient = connection.GetClient (SessionId) as BuildClient; | ||
|
||
if (!connection.IsConnected || buildClient is null) { | ||
Log.LogWarning (MSBStrings.E0179, nameof (VerifyXcodeVersion)); | ||
|
||
return true; | ||
} | ||
|
||
var xcodeVerificationResult = await buildClient | ||
.RunMessagingAsync<VerifyXcodeVersionMessage, VerifyXcodeVersionResult> (new VerifyXcodeVersionMessage ()) | ||
.ConfigureAwait (continueOnCapturedContext: false); | ||
|
||
if (!xcodeVerificationResult.IsCompatibleVersion) { | ||
if (string.IsNullOrEmpty (xcodeVerificationResult.XcodeVersion) || string.IsNullOrEmpty (xcodeVerificationResult.RecommendedXcodeVersion)) { | ||
Log.LogWarning (MSBStrings.E0183); | ||
} else { | ||
Log.LogWarning (MSBStrings.E0184, xcodeVerificationResult.XcodeVersion, xcodeVerificationResult.RecommendedXcodeVersion); | ||
} | ||
} | ||
|
||
return true; | ||
} catch (Exception ex) { | ||
Log.LogWarning (MSBStrings.E0185, ex.Message); | ||
|
||
return true; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Instead of adding the condition on .NET 9, you can just target the
net9.0
branch.That way I believe you can just remove these lines, and also any other lines related to the icu file:
Looking at the runtime PR, it also looks like we'll have to stop linking with these libraries:
$ git grep -E 'icudata|icui18n|icuuc' runtime/Makefile:DOTNET_iphonesimulator_DYLIB_FLAGS=-lmonosgen-2.0 -licudata -licui18n -licuuc -framework UIKit runtime/Makefile:DOTNET_iphoneos_DYLIB_FLAGS=-lmonosgen-2.0 -licudata -licui18n -licuuc -framework UIKit runtime/Makefile:DOTNET_tvsimulator_DYLIB_FLAGS=-lmonosgen-2.0 -licudata -licui18n -licuuc -framework UIKit
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.
@rolfbjarne by mistake I pushed 66e7a1a to net9.0 instead of my branch, could you please help me revert that?
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 reverted that commit and pushed the revert.
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.
Thanks a lot!