-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[main] Update dependencies from xamarin/xamarin-android #1443
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6e46587
Update dependencies from https://github.com/xamarin/xamarin-android b…
dotnet-maestro[bot] 2f8ca34
[build] set %TEMP% and %TMP%
jonathanpeppers c4c2d1f
Update dependencies from https://github.com/xamarin/xamarin-android b…
dotnet-maestro[bot] 418e26a
Update dependencies from https://github.com/xamarin/xamarin-android b…
dotnet-maestro[bot] 4246aca
Merge branch 'main' into darc-main-9d46297c-7973-476a-b29b-e70150a67406
rmarinho 9861a64
Update dependencies from https://github.com/xamarin/xamarin-android b…
dotnet-maestro[bot] ef7ae19
Update dependencies from https://github.com/xamarin/xamarin-macios bu…
dotnet-maestro[bot] c87bab4
Enable runtimeconfig.json support
jonathanpeppers 9c2ed6a
Merge branch 'main' into darc-main-9d46297c-7973-476a-b29b-e70150a67406
jonathanpeppers 7e10ac4
Install `microsoft-net-runtime-maccatalyst` manually
jonathanpeppers 18d444a
Revert "Install `microsoft-net-runtime-maccatalyst` manually"
jonathanpeppers 08a1873
Manually patch MacCatalyst & iOS workload files
jonathanpeppers 904008d
Set %TMP% and %TEMP% in another spot
jonathanpeppers 6eeee59
For now, include missing workload in maui-maccatalyst
jonathanpeppers b33c423
Update dependencies from https://github.com/xamarin/xamarin-android b…
dotnet-maestro[bot] 4236336
Update dependencies from https://github.com/xamarin/xamarin-macios bu…
dotnet-maestro[bot] 0d28fed
Revert "For now, include missing workload in maui-maccatalyst"
jonathanpeppers da2a11b
No longer need to patch microsoft.net.sdk.maccatalyst/WorkloadManifes…
jonathanpeppers 0421025
Use --temp-dir switch instead of $TMP/$TEMP env vars
jonathanpeppers 4e319f7
[essentials] use AssemblyMetadata w/ IsTrimmable instead of Linkersafe
jonathanpeppers 85853cb
Update dependencies from https://github.com/xamarin/xamarin-android b…
dotnet-maestro[bot] 36770b2
Merge remote-tracking branch 'origin/main' into darc-main-9d46297c-79…
mattleibow 6fc0547
Merge remote-tracking branch 'origin/main' into darc-main-9d46297c-79…
mattleibow c5cdfee
Update dependencies from https://github.com/xamarin/xamarin-android b…
dotnet-maestro[bot] 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<Dependencies> | ||
<ProductDependencies> | ||
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="6.0.100-preview.6.21313.2" CoherentParentDependency="Microsoft.Android.Sdk.Windows"> | ||
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="6.0.100-preview.6.21351.1" CoherentParentDependency="Microsoft.Android.Sdk.Windows"> | ||
<Uri>https://github.com/dotnet/installer</Uri> | ||
<Sha>abb57b4610404b011c76ca8ea1d7ab40c58991d4</Sha> | ||
<Sha>1360c44a086dddc90f0634f5e77281b2bd41b512</Sha> | ||
</Dependency> | ||
<Dependency Name="Microsoft.NETCore.App.Ref" Version="6.0.0-preview.6.21306.1" CoherentParentDependency="Microsoft.Dotnet.Sdk.Internal"> | ||
<Dependency Name="Microsoft.NETCore.App.Ref" Version="6.0.0-preview.6.21325.12" CoherentParentDependency="Microsoft.Dotnet.Sdk.Internal"> | ||
<Uri>https://github.com/dotnet/runtime</Uri> | ||
<Sha>5b8e1780ad7740e632c285bc2af13a8d0b20c5a9</Sha> | ||
<Sha>d4baa2bd2b009cdd0886bba925ce32517041bfa0</Sha> | ||
</Dependency> | ||
<Dependency Name="Microsoft.Android.Sdk.Windows" Version="30.0.100-preview.6.51"> | ||
<Dependency Name="Microsoft.Android.Sdk.Windows" Version="30.0.100-preview.6.61"> | ||
<Uri>https://github.com/xamarin/xamarin-android</Uri> | ||
<Sha>05c0426dc2d52a2ab32c04528d0bbeeebafb2664</Sha> | ||
<Sha>ac0333b7828fd72de2afb43c67d8212f18d5be43</Sha> | ||
</Dependency> | ||
<Dependency Name="Microsoft.MacCatalyst.Sdk" Version="15.0.100-preview.6.60"> | ||
<Dependency Name="Microsoft.MacCatalyst.Sdk" Version="15.0.100-preview.6.62"> | ||
<Uri>https://github.com/xamarin/xamarin-macios</Uri> | ||
<Sha>f1a9961839e4e1bc8adbbea4e2aee0f1808392cc</Sha> | ||
<Sha>52cb862052e3b855fb21b47a097e8018c9938216</Sha> | ||
</Dependency> | ||
<Dependency Name="Microsoft.iOS.Sdk" Version="15.0.100-preview.6.60"> | ||
<Dependency Name="Microsoft.iOS.Sdk" Version="15.0.100-preview.6.62"> | ||
<Uri>https://github.com/xamarin/xamarin-macios</Uri> | ||
<Sha>f1a9961839e4e1bc8adbbea4e2aee0f1808392cc</Sha> | ||
<Sha>52cb862052e3b855fb21b47a097e8018c9938216</Sha> | ||
</Dependency> | ||
<Dependency Name="Microsoft.tvOS.Sdk" Version="15.0.100-preview.6.60"> | ||
<Dependency Name="Microsoft.tvOS.Sdk" Version="15.0.100-preview.6.62"> | ||
<Uri>https://github.com/xamarin/xamarin-macios</Uri> | ||
<Sha>f1a9961839e4e1bc8adbbea4e2aee0f1808392cc</Sha> | ||
<Sha>52cb862052e3b855fb21b47a097e8018c9938216</Sha> | ||
</Dependency> | ||
<Dependency Name="Microsoft.macOS.Sdk" Version="12.0.100-preview.6.60"> | ||
<Dependency Name="Microsoft.macOS.Sdk" Version="12.0.100-preview.6.62"> | ||
<Uri>https://github.com/xamarin/xamarin-macios</Uri> | ||
<Sha>f1a9961839e4e1bc8adbbea4e2aee0f1808392cc</Sha> | ||
<Sha>52cb862052e3b855fb21b47a097e8018c9938216</Sha> | ||
</Dependency> | ||
</ProductDependencies> | ||
</Dependencies> |
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -27,6 +27,8 @@ | |
</_ProvisionDependsOn> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(MauiRootDirectory)eng/ReplaceText.targets" /> | ||
|
||
<!-- Build target provisions ./bin/dotnet/ --> | ||
<Target Name="_Provision" BeforeTargets="Build" DependsOnTargets="$(_ProvisionDependsOn)" /> | ||
|
||
|
@@ -84,8 +86,8 @@ | |
</PropertyGroup> | ||
<WriteLinesToFile File="$(_NuGetConfig)" Lines="$(_NuGetContent)" Overwrite="true" /> | ||
<Exec | ||
Command=""$(_ThisDotNet)" workload install maui --skip-manifest-update --verbosity diag --temp-dir $(DotNetTempDirectory)" | ||
WorkingDirectory="$(DotNetTempDirectory)" | ||
Command=""$(_ThisDotNet)" workload install maui --skip-manifest-update --verbosity diag" | ||
/> | ||
<Delete Files="$(_NuGetConfig)" /> | ||
|
||
|
@@ -171,6 +173,26 @@ | |
VersionBand="$(DotNetPreviewVersionBand)" | ||
/> | ||
|
||
<!-- HACK: temporary fixes for iOS and MacCatalyst workloads --> | ||
<ReplaceText | ||
Input="$(DotNetSdkManifestsDirectory)microsoft.net.workload.mono.toolchain/WorkloadManifest.targets" | ||
Output="$(DotNetSdkManifestsDirectory)microsoft.net.workload.mono.toolchain/WorkloadManifest.targets" | ||
OldValue="Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.maccatalyst"" | ||
NewValue="Condition="%24([MSBuild]::IsOSPlatform('osx'))" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.maccatalyst"" | ||
/> | ||
<ReplaceText | ||
Input="$(DotNetSdkManifestsDirectory)microsoft.net.workload.mono.toolchain/WorkloadManifest.targets" | ||
Output="$(DotNetSdkManifestsDirectory)microsoft.net.workload.mono.toolchain/WorkloadManifest.targets" | ||
OldValue="Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm"" | ||
NewValue="Condition="%24([MSBuild]::IsOSPlatform('osx'))" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm"" | ||
/> | ||
<ReplaceText | ||
Input="$(DotNetSdkManifestsDirectory)microsoft.net.workload.mono.toolchain/WorkloadManifest.targets" | ||
Output="$(DotNetSdkManifestsDirectory)microsoft.net.workload.mono.toolchain/WorkloadManifest.targets" | ||
OldValue="Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm64"" | ||
NewValue="Condition="%24([MSBuild]::IsOSPlatform('osx'))" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm64"" | ||
/> | ||
|
||
<Touch Files="$(DotNetSdkManifestsDirectory).stamp" AlwaysCreate="true" /> | ||
</Target> | ||
|
||
|
@@ -179,7 +201,7 @@ | |
Inputs="$(_Inputs)" | ||
Outputs="$(DotNetPacksDirectory).stamp"> | ||
<Exec | ||
Command=""$(DotNetToolPath)" workload install %(_WorkloadIds.Identity) --skip-manifest-update --verbosity diag" | ||
Command=""$(DotNetToolPath)" workload install @(_WorkloadIds, ' ') --skip-manifest-update --verbosity diag --temp-dir $(DotNetTempDirectory)" | ||
Comment on lines
-182
to
+204
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! |
||
WorkingDirectory="$(MauiRootDirectory)" | ||
/> | ||
<Touch Files="$(DotNetPacksDirectory).stamp" AlwaysCreate="true" /> | ||
|
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
using Android; | ||
using System.Reflection; | ||
|
||
[assembly: LinkerSafe] | ||
[assembly: AssemblyMetadata("IsTrimmable", "True")] |
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.
/cc @Redth @steveisok
I had to manually patch up
microsoft.net.workload.mono.toolchain/WorkloadManifest.targets
for iOS and MacCatalyst projects to be able to build on Windows.These AOT packs have
platforms
limiting to osx:https://github.com/dotnet/runtime/blob/685eda620e0f058b157b6d0a66da6f21c2d165fa/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.json.in#L55
And so on Windows, imports such as these would fail:
https://github.com/dotnet/runtime/blob/685eda620e0f058b157b6d0a66da6f21c2d165fa/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.targets#L23-L25
Not sure if we should merge without this fixed, as it would probably break anyone doing
maui-check --main
.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.
Created an issue on the runtime end and we'll see what we can do.
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.
If you try to build an iOS or Mac Catalyst project on Windows right now, you'll hit: