Skip to content

Commit

Permalink
Merge branch 'net7.0' into enable-parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Nov 10, 2022
2 parents cc91d87 + 6c15e16 commit 4b5110b
Show file tree
Hide file tree
Showing 344 changed files with 2,232 additions and 1,188 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
]
},
"microsoft.dotnet.xharness.cli": {
"version": "1.0.0-prerelease.22514.1",
"version": "1.0.0-prerelease.22524.1",
"commands": [
"xharness"
]
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/dotnet-autoformat-pr-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PR code format check - push results
on:
workflow_run:
workflows: ["PR code format check"]
types:
- completed

permissions:
pull-requests: write
contents: write

jobs:
push-and-notify:
name: Push autoformatted code and notify user
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
- name: 'Push autoformatted patch'
uses: rolfbjarne/[email protected]
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/dotnet-autoformat-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR code format check
on: pull_request

# This action only need a single permission in order to autoformat the code.
permissions:
contents: read

jobs:
autoformat-code:
name: code format check
runs-on: ubuntu-latest

steps:
- name: 'Autoformat'
uses: rolfbjarne/[email protected]
with:
projects: "Microsoft.Maui.sln"
2 changes: 1 addition & 1 deletion GitInfo.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0-rc.2
7.0.0-ci.net7
4 changes: 3 additions & 1 deletion Microsoft.Maui-mac.slnf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"src\\Compatibility\\Core\\tests\\iOS\\Compatibility.iOS.UnitTests.csproj",
"src\\Compatibility\\Maps\\src\\Android\\Compatibility.Maps.Android.csproj",
"src\\Compatibility\\Maps\\src\\iOS\\Compatibility.Maps.iOS.csproj",
"src\\Controls\\Foldable\\src\\Controls.Foldable.csproj",
"src\\Controls\\Maps\\src\\Controls.Maps.csproj",
"src\\Controls\\samples\\Controls.Sample.Profiling\\Maui.Controls.Sample.Profiling.csproj",
"src\\Controls\\samples\\Controls.Sample.Sandbox\\Maui.Controls.Sample.Sandbox.csproj",
Expand All @@ -33,6 +34,7 @@
"src\\Controls\\tests\\CustomAttributes\\Controls.CustomAttributes.csproj",
"src\\Controls\\tests\\DeviceTests\\Controls.DeviceTests.csproj",
"src\\Controls\\tests\\Xaml.UnitTests\\Controls.Xaml.UnitTests.csproj",
"src\\Core\\maps\\src\\Maps.csproj",
"src\\Core\\src\\Core.csproj",
"src\\Core\\tests\\Benchmarks\\Core.Benchmarks.csproj",
"src\\Core\\tests\\DeviceTests\\Core.DeviceTests.csproj",
Expand Down Expand Up @@ -63,4 +65,4 @@
"src\\Workload\\Microsoft.NET.Sdk.Maui\\Microsoft.NET.Sdk.Maui.csproj"
]
}
}
}
1 change: 1 addition & 0 deletions docs/CodeDocumentationGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ If you're unsure about how to document a certain element, have a look the [.NET
These are the tags that we would like to see when applicable: `<summary>`, `<remarks>`, `<returns>`, `<param>`, `<exception>`, `<inheritdoc>`, `<see>`, `<c>`.

* All public members should have at the very least a `<summary>`
* Add "This is a bindable property." to the end of the summary of the regular C# properties that are bindable properties.
* Keep the descriptions short and concise
* 1-2 lines typically, no screenshots or long code-blocks (those belong in the conceptual docs)
* Make sure the spelling is correct
Expand Down
26 changes: 13 additions & 13 deletions eng/AndroidX.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,55 @@
<ItemGroup>
<PackageReference
Update="Xamarin.AndroidX.AppCompat.AppCompatResources"
Version="1.5.1"
Version="1.5.1.1"
/>
<PackageReference
Update="Xamarin.AndroidX.Browser"
Version="1.4.0.2"
Version="1.4.0.3"
/>
<PackageReference
Update="Xamarin.AndroidX.Legacy.Support.V4"
Version="1.0.0.14"
Version="1.0.0.15"
/>
<PackageReference
Update="Xamarin.AndroidX.Lifecycle.LiveData"
Version="2.5.1"
Version="2.5.1.1"
/>
<PackageReference
Update="Xamarin.AndroidX.Navigation.UI"
Version="2.5.2"
Version="2.5.2.1"
/>
<PackageReference
Update="Xamarin.AndroidX.Navigation.Fragment"
Version="2.5.2"
Version="2.5.2.1"
/>
<PackageReference
Update="Xamarin.AndroidX.Navigation.Runtime"
Version="2.5.2"
Version="2.5.2.1"
/>
<PackageReference
Update="Xamarin.AndroidX.Navigation.Common"
Version="2.5.2"
Version="2.5.2.1"
/>
<PackageReference
Update="Xamarin.AndroidX.MediaRouter"
Version="1.3.1"
Version="1.3.1.1"
/>
<PackageReference
Update="Xamarin.AndroidX.Palette"
Version="1.0.0.14"
Version="1.0.0.15"
/>
<PackageReference
Update="Xamarin.AndroidX.RecyclerView"
Version="1.2.1.7"
Version="1.2.1.8"
/>
<PackageReference
Update="Xamarin.Build.Download"
Version="0.11.3"
/>
<PackageReference
Update="Xamarin.Google.Android.Material"
Version="1.6.1.1"
Version="1.7.0"
/>
<PackageReference
Update="Xamarin.AndroidX.Migration"
Expand All @@ -59,7 +59,7 @@
/>
<PackageReference
Update="Xamarin.AndroidX.Window.WindowJava"
Version="1.0.0.9"
Version="1.0.0.10"
/>
</ItemGroup>
</Project>
36 changes: 18 additions & 18 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<Dependencies>
<ProductDependencies>
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="7.0.100-rtm.22517.4" CoherentParentDependency="Microsoft.Android.Sdk.Windows">
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="7.0.100-rtm.22519.39" CoherentParentDependency="Microsoft.Android.Sdk.Windows">
<Uri>https://github.com/dotnet/installer</Uri>
<Sha>036f883b74c6825c1d89280995d6c33e52c5f23e</Sha>
<Sha>e6dd91c290b808f971a1ac69c2fb29395bbf1051</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.App.Ref" Version="7.0.0-rtm.22511.4" CoherentParentDependency="Microsoft.Android.Sdk.Windows">
<Uri>https://github.com/dotnet/runtime</Uri>
<Sha>d25158d0dffd699340cedcfd43324c87a809a214</Sha>
</Dependency>
<Dependency Name="Microsoft.Android.Sdk.Windows" Version="33.0.3">
<Dependency Name="Microsoft.Android.Sdk.Windows" Version="33.0.4">
<Uri>https://github.com/xamarin/xamarin-android</Uri>
<Sha>d8b5a177afa0061ed34390373f1b7918f308f016</Sha>
<Sha>8f1d9a47205ead80132661f68b0cee9ed0e0220b</Sha>
</Dependency>
<Dependency Name="Microsoft.MacCatalyst.Sdk" Version="15.4.1186-rc.2">
<Dependency Name="Microsoft.MacCatalyst.Sdk" Version="15.4.2372">
<Uri>https://github.com/xamarin/xamarin-macios</Uri>
<Sha>903a8512b8edf8a6d85db1a82719ae4ba3a355dd</Sha>
<Sha>754abbf6a3563f6267e5717ae832b4ac25b1f2fb</Sha>
</Dependency>
<Dependency Name="Microsoft.macOS.Sdk" Version="12.3.1186-rc.2">
<Dependency Name="Microsoft.macOS.Sdk" Version="12.3.2372">
<Uri>https://github.com/xamarin/xamarin-macios</Uri>
<Sha>903a8512b8edf8a6d85db1a82719ae4ba3a355dd</Sha>
<Sha>754abbf6a3563f6267e5717ae832b4ac25b1f2fb</Sha>
</Dependency>
<Dependency Name="Microsoft.iOS.Sdk" Version="16.0.1271-rc.2-xcode14">
<Dependency Name="Microsoft.iOS.Sdk" Version="16.0.1478">
<Uri>https://github.com/xamarin/xamarin-macios</Uri>
<Sha>64139f79ddb9ae7cf000d1be8f69154ee7eb4da8</Sha>
<Sha>7e129d7643d1d820e9eb20c102d7ab6ad06f7937</Sha>
</Dependency>
<Dependency Name="Microsoft.tvOS.Sdk" Version="16.0.1271-rc.2-xcode14">
<Dependency Name="Microsoft.tvOS.Sdk" Version="16.0.1478">
<Uri>https://github.com/xamarin/xamarin-macios</Uri>
<Sha>64139f79ddb9ae7cf000d1be8f69154ee7eb4da8</Sha>
<Sha>7e129d7643d1d820e9eb20c102d7ab6ad06f7937</Sha>
</Dependency>
<Dependency Name="Microsoft.NET.Workload.Emscripten.net6.Manifest-7.0.100" Version="7.0.0-rtm.22504.3" CoherentParentDependency="Microsoft.NETCore.App.Ref">
<Uri>https://github.com/dotnet/emsdk</Uri>
Expand Down Expand Up @@ -87,17 +87,17 @@
<Uri>https://github.com/dotnet/templating</Uri>
<Sha>3f4da9ced34942d83054e647f3b1d9d7dde281e8</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XHarness.TestRunners.Common" Version="1.0.0-prerelease.22514.1">
<Dependency Name="Microsoft.DotNet.XHarness.TestRunners.Common" Version="1.0.0-prerelease.22524.1">
<Uri>https://github.com/dotnet/xharness</Uri>
<Sha>625a866f72b15b09cab79e84ef0f1cf4729de634</Sha>
<Sha>49b581c1ac56352864cb692d3c523b3fc27eddf7</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XHarness.TestRunners.Xunit" Version="1.0.0-prerelease.22514.1">
<Dependency Name="Microsoft.DotNet.XHarness.TestRunners.Xunit" Version="1.0.0-prerelease.22524.1">
<Uri>https://github.com/dotnet/xharness</Uri>
<Sha>625a866f72b15b09cab79e84ef0f1cf4729de634</Sha>
<Sha>49b581c1ac56352864cb692d3c523b3fc27eddf7</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XHarness.CLI" Version="1.0.0-prerelease.22514.1">
<Dependency Name="Microsoft.DotNet.XHarness.CLI" Version="1.0.0-prerelease.22524.1">
<Uri>https://github.com/dotnet/xharness</Uri>
<Sha>625a866f72b15b09cab79e84ef0f1cf4729de634</Sha>
<Sha>49b581c1ac56352864cb692d3c523b3fc27eddf7</Sha>
</Dependency>
</ProductDependencies>
</Dependencies>
28 changes: 14 additions & 14 deletions eng/Versions.props
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<Project>
<PropertyGroup>
<!-- Current previous .NET SDK major version's stable release of MAUI packages -->
<MicrosoftMauiPreviousDotNetReleasedVersion>6.0.541</MicrosoftMauiPreviousDotNetReleasedVersion>
<MicrosoftMauiPreviousDotNetReleasedVersion>6.0.547</MicrosoftMauiPreviousDotNetReleasedVersion>
<!-- dotnet/installer -->
<MicrosoftDotnetSdkInternalPackageVersion>7.0.100-rtm.22517.4</MicrosoftDotnetSdkInternalPackageVersion>
<MicrosoftDotnetSdkInternalPackageVersion>7.0.100-rtm.22519.39</MicrosoftDotnetSdkInternalPackageVersion>
<!-- dotnet/runtime -->
<MicrosoftNETCoreAppRefPackageVersion>7.0.0-rtm.22511.4</MicrosoftNETCoreAppRefPackageVersion>
<!-- NOTE: should eventually revert back to $(MicrosoftNETCoreAppRefPackageVersion) in .NET 7 -->
<MicrosoftExtensionsPackageVersion>7.0.0</MicrosoftExtensionsPackageVersion>
<MicrosoftExtensionsServicingPackageVersion>7.0.0</MicrosoftExtensionsServicingPackageVersion>
<SystemCodeDomPackageVersion>7.0.0</SystemCodeDomPackageVersion>
<!-- xamarin/xamarin-android -->
<MicrosoftAndroidSdkWindowsPackageVersion>33.0.3</MicrosoftAndroidSdkWindowsPackageVersion>
<MicrosoftAndroidSdkWindowsPackageVersion>33.0.4</MicrosoftAndroidSdkWindowsPackageVersion>
<!-- xamarin/xamarin-macios -->
<MicrosoftiOSSdkPackageVersion>16.0.1271-rc.2-xcode14</MicrosoftiOSSdkPackageVersion>
<MicrosoftMacCatalystSdkPackageVersion>15.4.1186-rc.2</MicrosoftMacCatalystSdkPackageVersion>
<MicrosoftmacOSSdkPackageVersion>12.3.1186-rc.2</MicrosoftmacOSSdkPackageVersion>
<MicrosofttvOSSdkPackageVersion>16.0.1271-rc.2-xcode14</MicrosofttvOSSdkPackageVersion>
<MicrosoftMacCatalystSdkPackageVersion>15.4.2372</MicrosoftMacCatalystSdkPackageVersion>
<MicrosoftmacOSSdkPackageVersion>12.3.2372</MicrosoftmacOSSdkPackageVersion>
<MicrosoftiOSSdkPackageVersion>16.0.1478</MicrosoftiOSSdkPackageVersion>
<MicrosofttvOSSdkPackageVersion>16.0.1478</MicrosofttvOSSdkPackageVersion>
<!-- Samsung/Tizen.NET -->
<SamsungTizenSdkPackageVersion>7.0.100-rc.2.24</SamsungTizenSdkPackageVersion>
<SamsungTizenSdkPackageVersion>7.0.100</SamsungTizenSdkPackageVersion>
<!-- emsdk -->
<MicrosoftNETWorkloadEmscriptennet7Manifest70100PackageVersion>7.0.0-rtm.22504.3</MicrosoftNETWorkloadEmscriptennet7Manifest70100PackageVersion>
<MicrosoftNETWorkloadEmscriptenPackageVersion>$(MicrosoftNETWorkloadEmscriptennet7Manifest70100PackageVersion)</MicrosoftNETWorkloadEmscriptenPackageVersion>
Expand Down Expand Up @@ -48,7 +48,7 @@
<!-- must be kept in sync with the binding library version to it here: -->
<_XamarinAndroidGlideVersion>4.13.2.2</_XamarinAndroidGlideVersion>
<_XamarinAndroidXSecurityVersion>1.1.0-alpha03</_XamarinAndroidXSecurityVersion>
<_XamarinGoogleCryptoTinkAndroidVersion>1.7.0</_XamarinGoogleCryptoTinkAndroidVersion>
<_XamarinGoogleCryptoTinkAndroidVersion>1.7.0.1</_XamarinGoogleCryptoTinkAndroidVersion>
<!-- Android Maps -->
<XamarinGooglePlayServicesMaps>118.1.0</XamarinGooglePlayServicesMaps>
<!--
Expand All @@ -61,9 +61,9 @@
<_HarfBuzzSharpVersion>2.8.2.2</_HarfBuzzSharpVersion>
<_SkiaSharpNativeAssetsVersion>0.0.0-commit.193b587552cb0ed39372a049d7e6c692db98c267.483</_SkiaSharpNativeAssetsVersion>
<MicrosoftTemplateEngineTasksVersion>7.0.100-preview.5.22226.1</MicrosoftTemplateEngineTasksVersion>
<MicrosoftDotNetXHarnessTestRunnersCommonVersion>1.0.0-prerelease.22514.1</MicrosoftDotNetXHarnessTestRunnersCommonVersion>
<MicrosoftDotNetXHarnessTestRunnersXunitVersion>1.0.0-prerelease.22514.1</MicrosoftDotNetXHarnessTestRunnersXunitVersion>
<MicrosoftDotNetXHarnessCLIVersion>1.0.0-prerelease.22514.1</MicrosoftDotNetXHarnessCLIVersion>
<MicrosoftDotNetXHarnessTestRunnersCommonVersion>1.0.0-prerelease.22524.1</MicrosoftDotNetXHarnessTestRunnersCommonVersion>
<MicrosoftDotNetXHarnessTestRunnersXunitVersion>1.0.0-prerelease.22524.1</MicrosoftDotNetXHarnessTestRunnersXunitVersion>
<MicrosoftDotNetXHarnessCLIVersion>1.0.0-prerelease.22524.1</MicrosoftDotNetXHarnessCLIVersion>
<TizenUIExtensionsVersion>0.9.0</TizenUIExtensionsVersion>
<SvgSkiaPackageVersion>0.5.13</SvgSkiaPackageVersion>
<FizzlerPackageVersion>1.2.0</FizzlerPackageVersion>
Expand All @@ -75,7 +75,7 @@
<DotNetMonoManifestVersionBand>$(DotNetVersionBand)</DotNetMonoManifestVersionBand>
<DotNetEmscriptenManifestVersionBand>$(DotNetVersionBand)</DotNetEmscriptenManifestVersionBand>
<DotNetAndroidManifestVersionBand>$(DotNetSdkManifestsFolder)</DotNetAndroidManifestVersionBand>
<DotNetMaciOSManifestVersionBand>7.0.100-rc.2</DotNetMaciOSManifestVersionBand>
<DotNetTizenManifestVersionBand>7.0.100-rc.2</DotNetTizenManifestVersionBand>
<DotNetMaciOSManifestVersionBand>$(DotNetSdkManifestsFolder)</DotNetMaciOSManifestVersionBand>
<DotNetTizenManifestVersionBand>7.0.100</DotNetTizenManifestVersionBand>
</PropertyGroup>
</Project>
15 changes: 15 additions & 0 deletions eng/cake/dotnet.cake
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ Task("dotnet-pack-docs")
EnsureDirectoryExists(destDir);
CleanDirectories(destDir);

// Get the docs for .NET MAUI
foreach (var nupkg in GetFiles("./artifacts/Microsoft.Maui.*.Ref.*.nupkg"))
{
var d = $"{tempDir}/{nupkg.GetFilename()}";
Expand All @@ -332,6 +333,20 @@ Task("dotnet-pack-docs")
CopyDirectory($"{d}/ref", $"{destDir}");
}

// Get the docs for libraries separately distributed as NuGets
foreach (var pattern in NuGetOnlyPackages)
{
foreach (var nupkg in GetFiles($"./artifacts/{pattern}"))
{
var d = $"{tempDir}/{nupkg.GetFilename()}";
Unzip(nupkg, d);
DeleteFiles($"{d}/**/*.pri");
DeleteFiles($"{d}/**/*.aar");
DeleteFiles($"{d}/**/*.pdb");
CopyDirectory($"{d}/lib", $"{destDir}");
}
}

CleanDirectories(tempDir);
});

Expand Down
4 changes: 3 additions & 1 deletion eng/pipelines/common/controlgallery-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ steps:
inputs:
provisioning_script: $(provisionator.path)
provisioning_extra_args: $(provisionator.extraArguments)
env:
AUTH_TOKEN_GITHUB_COM: $(github--pat--vs-mobiletools-engineering-service2)

- task: Bash@3
displayName: 'Cake Provision'
Expand Down Expand Up @@ -70,4 +72,4 @@ steps:
condition: always()
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: OSXArtifacts
ArtifactName: OSXArtifacts
4 changes: 4 additions & 0 deletions eng/pipelines/common/controlgallery-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ steps:
condition: ne(variables['REQUIRED_XCODE'], '')
inputs:
provisioning_script: $(provisionator.xcode)
env:
AUTH_TOKEN_GITHUB_COM: $(github--pat--vs-mobiletools-engineering-service2)

- task: xamops.azdevex.provisionator-task.provisionator@1
displayName: 'Provisionator'
condition: eq(variables['provisioning'], 'true')
inputs:
provisioning_script: $(provisionator.path)
provisioning_extra_args: $(provisionator.extraArguments)
env:
AUTH_TOKEN_GITHUB_COM: $(github--pat--vs-mobiletools-engineering-service2)

- script: |
echo "##vso[task.prependpath]/Library/Frameworks/Mono.framework/Versions/Current/Commands/"
Expand Down
2 changes: 2 additions & 0 deletions eng/pipelines/common/controlgallery-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ steps:
inputs:
provisioning_script: $(provisionator.path)
provisioning_extra_args: $(provisionator.extraArguments)
env:
AUTH_TOKEN_GITHUB_COM: $(github--pat--vs-mobiletools-engineering-service2)

- powershell: |
$(System.DefaultWorkingDirectory)/build.ps1 --target provision --TeamProject="$(System.TeamProject)"
Expand Down
6 changes: 0 additions & 6 deletions eng/pipelines/common/device-tests-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ parameters:
provisionatorChannel: 'latest'

steps:
- template: agent-cleanser/v1.yml@xamarin-templates
parameters:
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline

- template: provision.yml
parameters:
platform: macos
Expand Down
6 changes: 0 additions & 6 deletions eng/pipelines/common/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ parameters:
artifact: 'nuget'

steps:
- ${{ if eq(parameters.platform, 'macOS') }}:
- template: agent-cleanser/v1.yml@xamarin-templates
parameters:
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline
- template: provision.yml
parameters:
platform: ${{ parameters.platform }}
Expand Down
Loading

0 comments on commit 4b5110b

Please sign in to comment.