Граф коммитов

14816 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena 6aab509be5
[DevOps] Use the checkout template for the unified pipeline to work. (#16626)
Move to use a template to perform the checkout. The new template allows
to perform the checkout using a resource alias, which later can be used
to use the template outside this repo.

Partial fix for https://github.com/xamarin/sdk-insertions/issues/41

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-11-08 11:58:30 -05:00
Rolf Bjarne Kvinge bc95efb0ae
[autoformat] Add xtro. (#16622) 2022-11-08 17:44:13 +01:00
Manuel de la Pena 1cb4266ffa
[DevOps] Update statuses urls for the new storage. (#16595) 2022-11-08 11:28:13 -05:00
Rui Marinho 721661e6b4
[DevOps] Rename the yaml-templates resources to match the MAUI repo. (#16618)
In an attempt to unify the build of all the SDKs we need to be rename
all shared resources between the CIs to all use the same name.

This commit renames the resource to use the pattern used by MAUI.

Partial fix for https://github.com/xamarin/sdk-insertions/issues/39
2022-11-08 14:07:38 +00:00
Rolf Bjarne Kvinge b8c5f46d84
[dotnet/tools] Don't disable compact unwind info. Fixes #16546. (#16623)
Don't disable compact unwind info in the native linker, it may break C++
exception handling.

We originally disabled compact unwind info to fix a warning from the native
linker, this will have to be solved another way (in any case extra build
warnings is preferrable compared to an app crashing at runtime due to broken
C++ exception handling).

This partially reverts c05e774612.

Fixes https://github.com/xamarin/xamarin-macios/issues/16546.
2022-11-08 12:16:11 +01:00
Peter Collins c6dfc40eae
[dotnet] Always use a four part VS component version (#16633)
The `%(Version)` metadata declared in `vs-workload.props` should always
be a four part version, this was missed when reviewing commit 9f1dc519ea.
Fix this by adding a trailing `.0` to stable branded packages.

For "Preview" branded manifest packs, the fourth part of the version
should be the commit distance (e.g. 16.1.0.5).

For "Stable" branded manifest packs, the third part of the version
should be the commit distance (e.g. 16.1.5.0).

See the following for more info on `vs-workload.props` versioning:
https://github.com/xamarin/sdk-insertions/wiki/How-to-create-a-new-insertion#msi-generation-and-vs-versioning-requirements
2022-11-08 09:15:32 +01:00
Rolf Bjarne Kvinge 5738468652
[autoformat] Add the CoreFoundation framework. (#16619) 2022-11-08 07:40:22 +01:00
Rolf Bjarne Kvinge 19f7a168ac
Switch maccore to track main and bump. (#16617)
Also add copy make target to bump the current maccore hash from maccore.

New commits in xamarin/maccore:

* xamarin/maccore@893e01ae00 Update provisionator bootstrap
* xamarin/maccore@7fa40752e4 Merge xcode14 into main.
* xamarin/maccore@140923bddf Merge remote-tracking branch 'xamarin/xcode14' into merge-xcode14-into-main
* xamarin/maccore@4e3eab455c Use Environment.SpecialFolder.UserProfile, not SpecialFolder.Personal.
* xamarin/maccore@9a347bd708 [certificates] Update la_dev_apple.p12, la_distr_apple.p12 and la_mac_installer_distr.p12
* xamarin/maccore@bcdd779e58 [devops] Install Mono too.
* xamarin/maccore@75a03ccbfc [xcode14] Merge main into xcode14
* xamarin/maccore@7690a80a2f [submission] Fix submission test makefile
* xamarin/maccore@813beaf11a Don't build mlaunch from the parent/root makefile anymore.
* xamarin/maccore@695f55471d [analysis] Make sure to create directories before copying files into them.
* xamarin/maccore@29a6536838 [mlaunch] Fix computing the current source branch in CI.
* xamarin/maccore@8c281e0c8f [mlaunch] Build & package without using xamarin-macios.
* xamarin/maccore@3e5c67a1ea [devops] Provision Xcode and Xamarin.Mac on the bots.

Diff: 0837e7caff..893e01ae00
2022-11-08 07:40:02 +01:00
Rolf Bjarne Kvinge 1d16b66542
[dotnet] Show a better error when trying to launch an app using 'dotnet run' on Windows. (#16610)
Ref: https://github.com/xamarin/xamarin-macios/issues/16609
2022-11-08 07:32:03 +01:00
Manuel de la Pena 805b99aec6 [DevOps] Rename the yaml-templates resources to match the MAUI repo.
In an attempt to unify the build of all the SDKs we need to be rename all shared resources between the CIs to all use the same name.

This commit renames the resource to use the pattern used by MAUI.

Partial fix for xamarin/sdk-insertions#39
2022-11-07 19:37:27 -05:00
Rolf Bjarne Kvinge eff4aa007f
Unset the prerelease identifier. (#16606)
There's no release coming from main, so unset the prerelease identifier.
2022-11-07 17:58:11 +01:00
Rolf Bjarne Kvinge 30436599f2
[tests] Remove a few duplicated package references. (#16613)
The NUnitLite package is already included in the shared-dotnet.csproj file,
which these projects import.
2022-11-07 16:50:39 +01:00
Rolf Bjarne Kvinge 78229568e7
[autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
Manuel de la Pena 92fe604feb
[DevOps] Allow to set the azure storage to be used via variables. (#16602)
Be ready for possible container changes:

"By failing to prepare, you are preparing to fail."
2022-11-07 09:16:22 -05:00
Manuel de la Pena 2f9e064dbb
[DevOps] Update the version of the provisionator template to deal with the new storage. (#16594) 2022-11-06 18:14:35 -05:00
dotnet-maestro[bot] 635c56e232
[main] Update dependencies from dotnet/runtime (#16586)
This pull request updates the following dependencies

## From https://github.com/dotnet/runtime
- **Subscription**: 38d2313f-22d5-4062-c8e1-08dabd6d8c77
- **Build**: 20221103.11
- **Date Produced**: November 4, 2022 1:39:08 AM UTC
- **Commit**: 96c24ea57481ccafe7b26abbec5806befda885e8
- **Branch**: refs/heads/release/7.0

- **Updates**:
  - **Microsoft.NETCore.App.Ref**: [from 7.0.0 to 7.0.1][2]

[2]: cd2d837...96c24ea

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-11-04 17:22:51 +01:00
Rolf Bjarne Kvinge d017c532df
[autoformat] Add the Contacts, CoreAnimation, CoreBluetooth and CoreData frameworks. (#16490) 2022-11-04 15:50:14 +01:00
Rolf Bjarne Kvinge eaa5805b7a
[devops] Only publish enabled platforms to maestro. (#16579)
* Read the enabled platforms from the build configuration.
* Iterate over each platform, and only push the enabled ones to maestro.
* Iterate over each platform again, and only add the enabled ones to the default
  channel (for the current branch).
2022-11-04 15:40:05 +01:00
Haritha Mohan 915b9faaab
[ImageKit] Fix capitalization mistakes autoPlayDelay -> AutoPlayDelay, filterArray -> FilterArray (#16575)
Fixes #16573
2022-11-04 10:11:16 -04:00
Haritha Mohan 15ceecf152
[UIKit] Fix xHeight -> XHeight (#16578)
Fixes #16577
2022-11-04 09:44:21 -04:00
Rolf Bjarne Kvinge ceaa0171da
Merge net7.0-xcode14.1 into main. (#16555)
This merges .NET 7 + Xcode 14.1 support into main.
2022-11-04 08:36:25 +01:00
Haritha Mohan 4caae3f0e0
[WebKit] Fix capitalization mistakes in type DomDocument (#16576)
Fixes #16574
2022-11-03 20:54:56 -04:00
Rolf Bjarne Kvinge 2a6023d3a3
[devops] Move logic to store and load the build configuration to disk into shareable PowerShell functions. (#16552)
* This makes it much easier to maintain the code, since it's possible to run it locally.
* Add tests!
* Add a DOTNET_PLATFORMS variable to the build configuration to list all the
  enabled .NET platforms.
* Add INCLUDE_DOTNET_<platform> variables to the build configuration for each
  enabled .NET platform. These new variables will be used in a future pull request.
2022-11-03 22:24:50 +01:00
Haritha Mohan 2291e4c9fa
[Photos] Fix capitalization mistake in PHFetchResult type (#16545)
Fixes #16487
2022-11-03 17:06:30 -04:00
Rolf Bjarne Kvinge 60bd7393b3 Revert "[net7.0-xcode14.1] [release/7.0.1xx-xcode14][msbuild] Partial revert of ad8cdb3 (#16428)"
The original change that caused a problem is not a problem anymore (it was
fixed in 18e2bef479), so re-introduce the
original change.

This reverts commit fb75cf80d2.
2022-11-03 21:27:27 +01:00
Rolf Bjarne Kvinge 846c538cd3
[devops] Make publishing binlogs nonfatal. (#16556)
We don't need the binlogs in order to produce a successful build (only to
diagnose a failing build).
2022-11-03 21:22:39 +01:00
Whitney Schmidt 3c65ab1756
Fix DateTime -> NSDate conversion (#7404)
Update conversions from `NSDate` to `DateTime` and `DateTime` to `NSDate` to use date components instead of `SecondsSinceReferenceDate`.

The number of seconds since reference date is inconsistent between `NSDate` and `DateTime`. See the associated bug - converting `DateTime` 1/1/1 to `NSDate` ends up giving you an `NSDate` a couple days off :(

Fixes https://github.com/xamarin/xamarin-macios/issues/6993.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-03 21:11:00 +01:00
Haritha Mohan 5adb391970
[MapKit] Fix capitalization mistake in type MKReverseGeocoder (#16572)
Fixes #16485
2022-11-03 15:59:21 -04:00
Haritha Mohan ba46429896
[Foundation] Fix capitalization mistake in type NSBundle (#16533)
Fixes #16486

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-03 10:59:20 -04:00
GitHub Actions Autoformatter bdb98ce4d8 Auto-format source code 2022-11-03 08:56:13 +00:00
Rolf Bjarne Kvinge 581d6b4218 Merge remote-tracking branch 'origin/main' into main-net7.0-xcode14.1 2022-11-03 09:34:32 +01:00
Rolf Bjarne Kvinge 1171587edc
[apidiff] Change to use dl.internalx.com with a GitHub PAT for API reference downloads. (#16548)
Update the download of API references to:

* Use `dl.internalx.com` links instead of `bosstoragemirror.blob.core.windows.net`
  links (the relative path stays the same).
* Require a GitHub PAT in order to download from dl.internalx.com. This PAT
  can either be provided through a file (recommended for local use) or through
  the environment.
* Document these changes.
2022-11-03 09:07:22 +01:00
dotnet-maestro[bot] d281ebdb1f
[main] Update dependencies from dotnet/installer (#16539)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: be6e1947-9e64-4217-c50e-08da52a3899f
- **Build**: 20221102.3
- **Date Produced**: November 2, 2022 10:27:38 AM UTC
- **Commit**: b1cf6608534b33e6c5fa21f651209147e5428458
- **Branch**: refs/heads/release/6.0.4xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 6.0.403-servicing.22517.2 to 6.0.404-servicing.22552.3][1]

[1]: 5f500d0...b1cf660

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <github-actions@xamarin.com>
2022-11-03 08:55:47 +01:00
Rolf Bjarne Kvinge b683378182 [system-dependencies] 'xcodebuild -downloadAllPlatforms' doesn't seen to need sudo. 2022-11-03 08:51:54 +01:00
Rolf Bjarne Kvinge 0c531e438b Enable legacy Xamarin for now. 2022-11-03 08:25:49 +01:00
Rolf Bjarne Kvinge 17e77bc2d0 Reset commit distance. 2022-11-03 08:25:02 +01:00
Rolf Bjarne Kvinge cdc62aeae9 Merge remote-tracking branch 'origin/net7.0-xcode14.1' into main-net7.0-xcode14.1 2022-11-03 08:21:55 +01:00
Rolf Bjarne Kvinge 36fe81fa05
Merge xcode14.1 into net7.0-xcode14.1. (#16551) 2022-11-03 08:09:21 +01:00
Rolf Bjarne Kvinge 90e46bdcf0
Use a binary copy of OpenTK-1.0.dll (#16547)
It's rather unlikely we'll change these assemblies in the future.

This speeds up the build a little bit, and removes a lot of source code.

New commits in xamarin/macios-binaries:

* xamarin/macios-binaries@7813391 Add OpenTK binaries.
* xamarin/macios-binaries@3d5560c Migrate FabricBot Tasks to Config-as-Code
* xamarin/macios-binaries@b90c543 Updated HotRestart/Xamarin.PreBuilt.iOS.app.zip

Diff: 180ff40ee7..7813391e75
2022-11-03 08:07:43 +01:00
Rolf Bjarne Kvinge 940e1d09e9 Merge xcode14.1 into net7.0-xcode14.1. 2022-11-02 19:03:30 +01:00
Rolf Bjarne Kvinge 0304f2bca1
[msbuild] Fix watchOS submissions with Xcode 14. Fixes #16499. (#16526)
We have to remove any arm64e slices from the WK binary we copy from Apple's
SDK into the Watch app, as explained in Apple's forums.

Ref: https://developer.apple.com/forums/thread/714224
Fixes https://github.com/xamarin/xamarin-macios/issues/16120.
Fixes https://github.com/xamarin/xamarin-macios/issues/16499.
2022-11-02 18:59:04 +01:00
VS MobileTools Engineering Service 2 988bf9b4ba
[net7.0-xcode14.1] [tests] Handle managed exceptions in a networking callback. (#16535)
Fixes a problem where any exception would crash the process, because the
callback was executed on a background thread, and there was no other managed
frame catching the managed exception:

    MonoTests.System.Net.Http.MessageHandlerTest.RejectSslCertificatesWithCustomValidationCallbackNSUrlSessionHandler
    2022-10-21 07:02:23.557 monotouchtest[91107:28076542] *** Terminating app due to uncaught exception 'NUnit.Framework.AssertionException', reason: '  Expected: None
      But was:  RemoteCertificateChainErrors
     (NUnit.Framework.AssertionException)
       at NUnit.Framework.Assert.ReportFailure(String message)
       at NUnit.Framework.Assert.ReportFailure(ConstraintResult result, String message, Object[] args)
       at NUnit.Framework.Assert.AreEqual(Object expected, Object actual)
       at MonoTests.System.Net.Http.MessageHandlerTest.<>c__DisplayClass14_0.<RejectSslCertificatesWithCustomValidationCallbackNSUrlSessionHandler>b__2(HttpRequestMessage sender, X509Certificate2 certificate, X509Chain chain, SslPolicyErrors errors) in /Users/builder/azdo/_work/2/s/xamarin-macios/tests/monotouch-test/System.Net.Http/MessageHandlers.cs:line 613
       at Foundation.NSUrlSessionHandler.ServerCertificateCustomValidationCallbackHelper.Invoke(HttpRequestMessage request, SecTrust secTrust)
       at Foundation.NSUrlSessionHandler.TryInvokeServerCertificateCustomValidationCallback(HttpRequestMessage request, SecTrust secTrust, Boolean& trusted)
       at Foundation.NSUrlSessionHandler.NSUrlSessionHandlerDelegate.DidReceiveChallenge(NSUrlSession session, NSUrlSessionTask task, NSUrlAuthenticationChallenge challenge, Action`2 completionHandler)
    --- End of stack trace from previous location ---
       at ObjCRuntime.Runtime.InvokeMethod(MethodBase method, Object instance, IntPtr native_parameters)
       at ObjCRuntime.Runtime.InvokeMethod(MonoObject* methodobj, MonoObject* instanceobj, IntPtr native_parameters)
       at ObjCRuntime.Runtime.bridge_runtime_invoke_method(MonoObject* method, MonoObject* instance, IntPtr parameters, IntPtr& exception_gchandle)
    '
    *** First throw call stack:
    (
    	0   CoreFoundation                      0x00007ff81dba97c3 __exceptionPreprocess + 242
    	1   libobjc.A.dylib                     0x00007ff81d909bc3 objc_exception_throw + 48
    	2   monotouchtest                       0x000000010426e524 xamarin_process_managed_exception + 820
    	3   monotouchtest                       0x00000001042fec76 _ZL32native_to_managed_trampoline_183P11objc_objectP13objc_selectorPP11_MonoObjectS0_S0_S0_S0_j + 1302
    	4   monotouchtest                       0x00000001042fe750 -[Foundation_NSUrlSessionHandler_NSUrlSessionHandlerDelegate URLSession:task:didReceiveChallenge:completionHandler:] + 80
    	5   CFNetwork                           0x00007ff8225d3635 _CFHostIsDomainTopLevelForCertificatePolicy + 13206
    	6   libdispatch.dylib                   0x00007ff81d8af0cc _dispatch_call_block_and_release + 12
    	7   libdispatch.dylib                   0x00007ff81d8b0317 _dispatch_client_callout + 8
    	8   libdispatch.dylib                   0x00007ff81d8b6317 _dispatch_lane_serial_drain + 672
    	9   libdispatch.dylib                   0x00007ff81d8b6e30 _dispatch_lane_invoke + 417
    	10  libdispatch.dylib                   0x00007ff81d8c0eee _dispatch_workloop_worker_thread + 753
    	11  libsystem_pthread.dylib             0x00007ff81da63fd0 _pthread_wqthread + 326
    	12  libsystem_pthread.dylib             0x00007ff81da62f57 start_wqthread + 15


Backport of #16414

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-02 18:05:06 +01:00
Alex Soto 060055af65
[xcode14.1] Bump to stable release of Xcode 14.1 (#16534) 2022-11-02 08:54:33 -04:00
dotnet-maestro[bot] a3a535732e
[net7.0-xcode14.1] Update dependencies from dotnet/installer (#16531)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: df408977-ead8-4cfb-e40b-08dab20af502
- **Build**: 20221031.3
- **Date Produced**: October 31, 2022 3:20:20 PM UTC
- **Commit**: 3079e52002f185db88b0c6a8e8c4c623a5287d19
- **Branch**: refs/heads/release/7.0.1xx

- **Updates**:
- **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.100-rtm.22527.3 to
7.0.100-rtm.22531.3][1]

[1]: bf9d4a0...3079e52

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <github-actions@xamarin.com>
2022-11-02 11:57:54 +01:00
VS MobileTools Engineering Service 2 f4e991d8a6
[xcode14.1] Update all provisionator call sites to use AUTH_TOKEN_GITHUB_COM (#16517)
This introduces changes to ensure that the Github token is available at all provisionator invocations so that when we need to flip to using dl.internalx.com, there are no breakages.


Backport of #16511

Co-authored-by: cadsit <connor.adsit@gmail.com>
2022-11-02 08:18:21 +01:00
Haritha Mohan f28c7f8d3e
[AVFoundation] Fix capitalization issue (#16461)
currentTime property incorrectly capitalized in AVAudioRecorder type
Fixes #16458
2022-10-31 14:08:17 -04:00
VS MobileTools Engineering Service 2 1edb55798e
[net7.0-xcode14.1] Update all provisionator call sites to use AUTH_TOKEN_GITHUB_COM (#16519)
This introduces changes to ensure that the Github token is available at all provisionator invocations so that when we need to flip to using dl.internalx.com, there are no breakages.


Backport of #16511

Co-authored-by: cadsit <connor.adsit@gmail.com>
2022-10-31 17:14:34 +01:00
Connor Adsit 87e9ae6718
Update all provisionator call sites to use AUTH_TOKEN_GITHUB_COM (#16511)
This introduces changes to ensure that the Github token is available at all provisionator invocations so that when we need to flip to using dl.internalx.com, there are no breakages.
2022-10-31 16:19:14 +01:00
Rolf Bjarne Kvinge 9f1dc519ea
[dotnet] Adjust stable MSI versioning. (#16501)
Stable MSIs are versioned like non-stable MSIs, except that:

* We define the commit distance as the number of commits since the branch
  bacame a release branch (and started using stable branding). Technically
  this is the number of commits since the `NUGET_RELEASE_BRANCH` variable
  changed (which will be incorrect for non-stable branches, but in that case
  we shouldn't use this number in those scenarios).
* We use the above-mentioned commit distance as the third number in the MSI
  version (as opposed to the fourth number in non-stable branches.)

Note: we detect if we're building a stable release by checking if the
`NUGET_PRERELEASE_IDENTIFIER` is empty (we can't use `NUGET_RELEASE_BRANCH`,
because this variable will be set for PRs to the release branch, while
`NUGET_PRERELEASE_IDENTIFIER` will only be empty for CI builds from a stable
branch).
2022-10-31 15:30:58 +01:00
Rolf Bjarne Kvinge 65d34e53a3
[devops] Use the right environment variables to determine which platforms are included. (#16509) 2022-10-31 11:38:28 +01:00