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

11036 Коммитов

Автор SHA1 Сообщение Дата
TJ Lambert dbacb3b984
[LinkPresentation] Xcode 13 Beta 1 Changes (#11943)
* initial changes

* removing todo files

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2021-06-16 09:31:32 -05:00
Sebastien Pouliot 2ecbb07068
[tests] Re-enable tests ignored due to dotnet/runtime #36897 (#11939)
They should now work (even if some tests required more changes) and
will be able to validate other changes.

ref: https://github.com/dotnet/runtime/issues/36897
2021-06-16 09:41:27 -04:00
Rolf Bjarne Kvinge c8e854c151
[dotnet] Add support for generating a binary version of runtimeconfig.json. Fixes #11745. (#11887)
Use Mono's RuntimeConfigParserTask to parse the *.runtimeconfig.json file and
produce a binary version of it.

This also means implementing support for finding the on-disk location of the
file at runtime, and passing it to mono.

Ref: 01b7e73cd3/docs/design/mono/mobile-runtimeconfig-json.md

Fixes https://github.com/xamarin/xamarin-macios/issues/11745.
2021-06-16 15:22:02 +02:00
Rolf Bjarne Kvinge 539547ce49
[mmp] Set minimum Xcode to Xcode 12 to get a better error message. Fixes #11937. (#11938)
Developers will now get the helpful:

> error MM0051: Xamarin.Mac 7.99.0 requires Xcode 12.0 or later. The current Xcode version (found in /Applications/Xcode_11.7.app/Contents/Developer) is 11.7.

instead of:

> error MM5309: Failed to execute the tool 'clang', it failed with an error code '1'. Please check the build log for details.

(and no clue from the build log that they need to upgrade their Xcode).

Xamarin.iOS projects still build fine with at least Xcode 11.3.1, so I've only
updated the minimum Xcode version for Xamarin.Mac.

Fixes https://github.com/xamarin/xamarin-macios/issues/11937.
2021-06-16 10:19:02 +02:00
github-actions[bot] 170ea55128
[Localization] Pulling New Localization Translations 938907789 (#11936)
* LEGO: Merge pull request 11912

LEGO: Merge pull request 11912

* LEGO: Merge pull request 11914

LEGO: Merge pull request 11914

* LEGO: check in for Localization to temporary branch.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2021-06-15 16:06:55 -05:00
Sebastien Pouliot 565e1d6b55
[linker] Ignore `[AssemblyMetadata]` before net6 (#11940)
This was allowed to ease existing (3rd party) code migration into net6.

However the reverse can also happen: trying to use net6 code with the
legacy SDK. In such case it's possible other (newer) attributes are being
used to preserve members.

ref: https://github.com/dotnet/aspnetcore/issues/33269
2021-06-15 15:33:44 -04:00
Manuel de la Pena acf03b510e
[CarPlay] Add support for Xcode13 beta1. (#11928) 2021-06-15 12:00:59 -04:00
Sebastien Pouliot db8544a1d5
[corefoundation] Simplify `CFRange` (#11931)
* Avoid chaining constructors, so one can be eliminated (if the other is not used)
* Remove casts (`int` parameters does not need them for `nint` fields)
* Reduce metadata (when a `.ctor` can be eliminated, like MySingleView)

```diff
--- a.cs	2021-06-14 20:56:22.000000000 -0400
+++ b.cs	2021-06-14 20:56:25.000000000 -0400
@@ -5068,13 +5068,8 @@

 		public CFRange(int P_0, int P_1)
 		{
-			this = new CFRange((long)P_0, (long)P_1);
-		}
-
-		public CFRange(long P_0, long P_1)
-		{
-			loc = (nint)P_0;
-			len = (nint)P_1;
+			loc = P_0;
+			len = P_1;
 		}

 		public override string ToString()
```
2021-06-15 09:20:34 -04:00
Sebastien Pouliot 7dc918ca34
[corefoundation] Fix `CFString.ToString` to cache the result (#11932)
`CFString` cache the native immutable string into it's `str` field and
use it to avoid p/invokes when possible.

`ToString` retrieved the string without setting `str` (if `null`) so it
missed opportunities to avoid the native calls.
2021-06-15 09:19:35 -04:00
Sebastien Pouliot 447c59db60
[iad] Remove most of the framework (#11906)
Most of the API were removed in Xcode 13 beta 1.

The App Store also started to reject some of the (already deprecated)
selectors that were removed, making the API not usable anymore (even
on older versions of the OS).
2021-06-14 20:13:47 -04:00
Sven Boemer 045ccaf3a6
Fixes for .NET 6 linker (#11739)
* Pass custom steps separately from msbuild

* Remove reflection over linker pipeline

* Fix ListExportedSymbols ctor

* Add CoreTypeMapStep

* PR feedback

- Avoid unnecessary tracking of loaded assemblies
   (Use GetLoadedAssembly instead)
- Create extension method on LinkContext
   to avoid conditional code
- Rename dispatchers to reflect when they run

* Fix PreMarkDispatcher

* Fix DoneStep ordering

* Fix other order-dependent steps, test asserts

* Handle cyclic assembly references

* Simplify reference search

By using the already-loaded Assembly closure

* Fix warning number

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>

* PR feedback

- Undo whitespace changes
- Move comment to a more appropriate place

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-06-14 20:10:29 -04:00
Rolf Bjarne Kvinge 2837a9c6bb
Bump maccore to get mlaunch fix. (#11924)
New commits in xamarin/maccore:

* xamarin/maccore@c7809739bd [Xamarin.Hosting] Add each platform as an exposed capability to the plugin manager. Fixes #xamarin/xamarin-macios@11901. (#2455)

Diff: 9acbbed1f6..c7809739bd
2021-06-14 17:17:49 -04:00
Rolf Bjarne Kvinge b39ad16703
[CI] Fix BRANCH_NAME to be the entire branch name. (#11929)
The Build.SourceBranchName variable is documented to be the last segment of
the git ref. If the git ref is 'refs/heads/main', then Build.SourceBranchName
is 'main' (as expected). However, if the git ref is
'refs/heads/release/6.0.1xx-preview5', then Build.SourceName is
'6.0.1xx-preview5', and that's not what we want.

Instead use the Build.SourceBranch variable, which is the entire git ref, and
then we strip out the 'refs/heads/' part from the beginning. This way we get
the correct branch name.
2021-06-14 20:42:02 +02:00
Sebastien Pouliot 7fefc799ff
[cloudkit] Fix obsolete message (#11923)
From copy/paste mistake in https://github.com/xamarin/xamarin-macios/pull/11909

but only found in the backport https://github.com/xamarin/xamarin-macios/pull/11920/files#r650981533
2021-06-14 14:38:46 -04:00
Rolf Bjarne Kvinge 77a8299e8d
[introspection] Handle a few Metal classes differently for 'encodeWithCoder:'. Fixes #11885. (#11927)
The base ApiSelectorTest class already handles these selectors, and does it
almost right, so just remove this special case and fix the base class logic.

Fixes these failures on macOS 10.15:

    Introspection.MacApiSelectorTest
    	[FAIL] InstanceMethods :   4 errors found in 27001 instance selector validated:
    Selector not found for CoreML.MLDictionaryFeatureProvider : encodeWithCoder: in Void EncodeTo(Foundation.NSCoder) on CoreML.MLDictionaryFeatureProvider
    Selector not found for CoreML.MLMultiArray : encodeWithCoder: in Void EncodeTo(Foundation.NSCoder) on CoreML.MLMultiArray
    Selector not found for CoreML.MLFeatureValue : encodeWithCoder: in Void EncodeTo(Foundation.NSCoder) on CoreML.MLFeatureValue
    Selector not found for CoreML.MLSequence : encodeWithCoder: in Void EncodeTo(Foundation.NSCoder) on CoreML.MLSequence

Fixes https://github.com/xamarin/xamarin-macios/issues/11885.
2021-06-14 20:08:34 +02:00
Manuel de la Pena 5211f5f0e5
[WatchKit] Add support for Xcode13 beta 1. (#11911) 2021-06-14 12:05:33 -04:00
Manuel de la Pena a9c7202dc4
[ARKit] Provide updates for Xcode13 beta1. (#11908) 2021-06-14 12:03:19 -04:00
Sebastien Pouliot 51f0651976
Remove extra (managed) setters on readonly (native) properties (#11907)
When used they can cause rejection from the app store (but in most
case the managed linker will remove them from the app code)
2021-06-14 09:27:16 -04:00
Sebastien Pouliot 51ba9f353b
[cloudkit] Remove obsoleted properties (#11909)
Their usage can cause app store rejections.
2021-06-14 09:22:32 -04:00
Sebastien Pouliot 728c4030c3
[coremidi] Remove incorrect `.ctor` on `MIDICISession` (#11910)
This is likely a leftover from a beta and can now cause rejections.
2021-06-14 09:20:52 -04:00
Rolf Bjarne Kvinge 317af3809e
[tests/dotnet] Add test-case for 32-bit iOS device build as well (#11899) 2021-06-14 11:22:36 +02:00
Sebastien Pouliot c3ea9c8d18
[objcruntime] A few cleanup/simplifications for `Selector` (#11882)
* Remove unused `const string`, left overs from another era
* Avoid chaining selectors [1]
* Avoid directly throwing (helps inlining, even if not needed anymore)
* Nicer to read (same generated IL) for `==` operator

[1] enable the most common use case to remove some metadata

```diff
--- a.cs	2021-06-09 22:05:15.000000000 -0400
+++ b.cs	2021-06-09 22:05:17.000000000 -0400
@@ -2919,15 +2919,10 @@
 		public IntPtr Handle => handle;

 		public Selector(IntPtr P_0)
-			: this(P_0, true)
 		{
-		}
-
-		internal Selector(IntPtr P_0, bool P_1)
-		{
-			if (P_1 && !sel_isMapped(P_0))
+			if (!sel_isMapped(P_0))
 			{
-				throw new ArgumentException("sel is not a selector handle.");
+				ThrowHelper.ThrowArgumentException("sel", "Not a selector handle.");
 			}
 			handle = P_0;
 			name = GetName(P_0);
```
2021-06-11 15:10:22 -04:00
TJ Lambert f4fae43457
[Localization] Github Action Fork Check (#11900)
* adding new github action and editing existing

* making one job and adding fork statement

* adding concurrency

* reordering and name change

* Adding exit 1

* changing the check for fork

* merge conflict did not get resolved

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2021-06-11 11:25:42 -05:00
Manuel de la Pena 552d15d5fe
[CI] - is not a valid car in a name... (#11902) 2021-06-11 12:21:51 -04:00
Manuel de la Pena 8ce9bada8b
[CI] Add a new stage that will run windows integration tests. (#11896) 2021-06-11 12:10:08 -04:00
Rolf Bjarne Kvinge f9d0159e07
[msbuild] Share several cleaning targets between Xamarin.iOS and Xamarin.Mac. (#11898)
The iOS version of the cleaning tasks were much more comprehensive, so those
won out when there were any differences.

This also required moving the GetDirectoriesTask to shared code.
2021-06-11 16:39:44 +02:00
Rolf Bjarne Kvinge 5b15159fc0
[dotnet] Try to implement a workaround for xamarin/maccore#2427. (#11897)
We randomly run into a NuGet restore failure, which breaks the build, and is
quite annoying.

This might be due to a problem with multiple simultaneous restores, so this is
an attempt to first restore the packages we need, in a single serialized
restore, and once that's done we can process everything else in parallel.

Ref: https://github.com/xamarin/maccore/issues/2427
Ref: https://github.com/NuGet/Home/issues/10935
2021-06-11 15:22:31 +02:00
Rolf Bjarne Kvinge dd5f9f7b61
Try to prevent identical version numbers across branches by matching hardcoded prerelease identifiers with hardcoded branch name. (#11893)
If we hardcode a prelease identifier for a .NET release, we can easily end up
with multiple branches using the same version number, because the hardcoded
prerelease identifier ends up being the same for any other branches that are
created later from the release branch (one typical example would be backport
branches).

This is bad.

So try to prevent this, by hardcoding two values instead!

We'll hardcode the branch name where the hardcoded prerelease identifier
should be applied, and this way any other branches will not use the hardcoded
prerelease identifier.

Ref: https://github.com/xamarin/xamarin-macios/pull/11891.
2021-06-11 12:56:24 +02:00
Rolf Bjarne Kvinge 8bec55e22a
[msbuild] Fix P/Invoke to stat. (#11892)
The native 'stat' function is not identical between x64 and arm64:

* The x64 version is the 32-bit version of the function, and takes a 32-bit
  version of the stat structure.
* The arm64 version is the 64-bit version of the function, and takes a 64-bit
  version of the stat structure.

We used the 32-bit version of the stat structure everywhere, which went
horribly wrong on arm64, because the layout and size of the struct is quite
different (120 bytes vs 144 bytes). The actual result on arm64 was that the
call to stat would null out one of the parameters to the calling function, and
the C# code would throw an ArgumentNullException when the code tried to use
that argument, and you'd end up with this exception which didn't make any
sense at all when looking at the code:

    error : System.ArgumentNullException: Parameter "itemSpec" cannot be null. [/Users/rolf/work/net6-mobile-samples/HelloiOS/HelloiOS.csproj]
    error :    at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowArgumentNull(Object parameter, String parameterName, String resourceName) in Microsoft.Build.Utilities.Core.dll:token 0x6000121+0x20 [/Users/rolf/work/net6-mobile-samples/HelloiOS/HelloiOS.csproj]
    error :    at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowArgumentNull(Object parameter, String parameterName) in Microsoft.Build.Utilities.Core.dll:token 0x6000120+0x0 [/Users/rolf/work/net6-mobile-samples/HelloiOS/HelloiOS.csproj]
    error :    at Microsoft.Build.Utilities.TaskItem..ctor(String itemSpec) in Microsoft.Build.Utilities.Core.dll:token 0x60003ba+0x6 [/Users/rolf/work/net6-mobile-samples/HelloiOS/HelloiOS.csproj]
    error :    at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile(String source, String target, String targetItemSpec) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/SmartCopyTaskBase.cs:line 74 [/Users/rolf/work/net6-mobile-samples/HelloiOS/HelloiOS.csproj]
    error :    at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute() in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/SmartCopyTaskBase.cs:line 99 [/Users/rolf/work/net6-mobile-samples/HelloiOS/HelloiOS.csproj]

So fix the P/Invoke to stat:

* Use the 64-bit version of the stat struct.
* For x64, call the 64-bit version of stat (stat$INODE64), since we're now
  using the 64-bit version of the stat struct.
* For arm64, call the standard version of stat (which is the 64-bit version).

And this means that we can now use the ARM64 version of .NET to build .NET
apps.
2021-06-11 07:46:01 +02:00
Rolf Bjarne Kvinge 0921ae4e26
Bump to Xcode 13 beta 1. (#11861)
* Bump maccore.

New commits in xamarin/maccore:

* xamarin/maccore@9acbbed1f6 [mlaunch] Add support for Xcode 13 beta 1. (#2452)
* xamarin/maccore@e48f75c0b6 [Xamarin.Hosting] Fix the --stdout arg not being forwarded to DeviceLaunchConfig (#2435)
* xamarin/maccore@109c695b1b [Xamarin.Hosting] Fix help string for launchdev argument (#2429)

Diff: cddbd1915d..9acbbed1f6

* [xtro] Fix generation of .pch files
* [xtro] Fix deprecated check to handle (anonymous) declarations and enable latest C# syntax in project
* [xtro] Fix _sanity_ checks
* [xtro] Update todo for beta 1

* [Siminstaller] Force siminstaller to use the xcode 12.5 url

Related issue: https://github.com/xamarin/xamarin-macios/issues/11881

* Fix introspection failures (due to [breaking] changes)
* [tests][intro] Fix hang for tvOS

Creating an instance of `NSMetadataQuery` hangs the simulator.

Even after (xharness) timeout the simulator is not in a good state
to run further tests and every new (tvOS) test will also hang...

* [tests][intro] Same hang for watchOS

except that further test execution does not seem affected (like tvOS)

```
CoreSimulator 772.1 - Device: Apple Watch Series 3 - 38mm (watchOS 8.0) - created by XHarness (42262867-E060-40C0-803E-6DA676AF50CC) - Runtime: watchOS 8.0 (19R5266p) - DeviceType: Apple Watch Series 3 - 38mm

Thread 0 Crashed:: tid_103  Dispatch queue: com.apple.main-thread
0   com.apple.Foundation          	0x00007fff21470bd0 -[NSMetadataQuery dealloc] + 432
1   libobjc.A.dylib               	0x00007fff200d11f7 objc_object::sidetable_release(bool, bool) + 177
2   com.apple.Foundation          	0x00007fff21470a03 -[NSMetadataQuery init] + 64
3   com.xamarin.introspection_watch.watchkitapp.watchkitextension	0x0000000107efc139 xamarin_dyn_objc_msgSend + 217 (trampolines-x86_64-objc_msgSend.s:15)
4   ???                           	0x000000010c76d4f6 0 + 4504081654
5   com.xamarin.introspection_watch.watchkitapp.watchkitextension	0x0000000107cffc85 mono_jit_runtime_invoke + 1621 (mini-runtime.c:3197)
6   com.xamarin.introspection_watch.watchkitapp.watchkitextension	0x0000000107e177d8 do_runtime_invoke + 54 (object.c:3052) [inlined]
7   com.xamarin.introspection_watch.watchkitapp.watchkitextension	0x0000000107e177d8 mono_runtime_invoke_checked + 136 (object.c:3220)
8   com.xamarin.introspection_watch.watchkitapp.watchkitextension	0x0000000107e1e3c5 mono_runtime_try_invoke_array + 2101 (object.c:5601)
9   com.xamarin.introspection_watch.watchkitapp.watchkitextension	0x0000000107daf977 ves_icall_InternalInvoke + 871 (icall.c:3927)
10  com.xamarin.introspection_watch.watchkitapp.watchkitextension	0x0000000107dc0167 ves_icall_InternalInvoke_raw + 103 (icall-def.h:667)
11  ???                           	0x000000010a232799 0 + 4465043353
12  ???                           	0x000000010c76e08b 0 + 4504084619
```

* [tests][monotouch-test] Fix failures with xcode 13 beta 1
* [tests][mmptest] Use a FAT framework that's build with x86_64 and arm64

Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-06-10 20:07:20 -04:00
Manuel de la Pena 2f12850718
[CI] Fix condition to start executing the device tests. (#11855) 2021-06-10 17:36:56 -04:00
TJ Lambert 0afdfe6efa
[Localization] Adding New Github Action (In new branch) (#11848)
* adding new github action and editing existing

* making one job and adding fork statement

* adding concurrency

* reordering and name change

* Adding exit 1

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2021-06-10 16:20:11 -05:00
Manuel de la Pena 046260ee36
[CI] Ensure that we do not have data downloaded from other builds. (#11890) 2021-06-10 16:45:03 -04:00
Přemek Vysoký 0a65331ca7
[devops] Publish mlaunch as .nupkg during main build (#11851)
Packages the mlaunch that was built during the pipeline previously as a .nupkg and publishes it into the [dotnet-eng feed](https://dev.azure.com/dnceng/public/_packaging?_a=feed&feed=dotnet-eng):
- Version contains the maccore commit SHA
- If this SHA is already published in the feed, packaging and publishing is skipped

Target package: https://dev.azure.com/dnceng/public/_packaging?_a=package&feed=dotnet-eng&package=Microsoft.DotNet.Mlaunch&protocolType=NuGet (will show up after main build completes)

https://github.com/dotnet/core-eng/issues/13150
2021-06-10 18:29:59 +02:00
Rolf Bjarne Kvinge fa3f866a29
[devops] Upload all the binlogs in xamarin-macios as artifacts after the build. (#11884)
This makes diagnosing build failures much, much easier.
2021-06-10 18:20:09 +02:00
Rolf Bjarne Kvinge 8ca5d5ea5c
[dotnet] The MSBuildProjectDirectory variable doesn't contain a trailing slash, so make sure we always add one. (#11880) 2021-06-10 08:55:03 +02:00
Rolf Bjarne Kvinge 233497d791
[dotnet] Create binlogs when creating NuGets. (#11874)
Makes diagnostics easier when something goes wrong.
2021-06-09 19:22:29 +02:00
Alex Soto cdae3c79b8 Update build-samples.yml for Azure Pipelines 2021-06-09 12:40:54 -04:00
Manuel de la Pena 31f7c0dc5a
[CI] Do not add links to static page if we never got results. (#11865) 2021-06-09 12:19:28 -04:00
Sebastien Pouliot 7916e74b89
[windows][msbuild] Copy entire directory when the native reference is a framework (#11868)
The entire `.framework` directory needs to be copied back to Windows
when a native reference is a [xc]framework. Otherwise important files
will be missing and the app bundle will be unusable.

Fix https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1339824
2021-06-09 09:21:17 -04:00
Sebastien Pouliot cd9a87cac6
[windows][msbuild] Fix the use of a windows path inside `_PrepareDebugSymbolGeneration` (#11870)
Revert a small part of #10409 so the path evaluation always happens on
the mac computer (even if the build is done from Windows)

Also dded a comment to avoid repeating that mistake again

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

Move task so it also work for Xamarin.Mac (since this is now shared code)
2021-06-09 09:19:42 -04:00
Sebastien Pouliot 36a3c2bcd7
[dotnet][linker] Fix incorrect namespace for `[NotImplementedAttribute]` (#11871)
Fix warning

> resource ILLink.LinkAttributes.xml in Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065(26,6): warning IL2008: Could not resolve type 'ObjCRuntime.NotImplementedAttribute' [/Users/poupou/git/xamarin/xamarin-macios/tests/dotnet/size-comparison/MySingleView/dotnet/MySingleView.csproj]
2021-06-09 08:55:01 -04:00
Sebastien Pouliot fe49e3a112
[uikit] More linker-friendly `UIControl` (#11872)
The `RemoveTarget` method already checked if `allTargets` was `null`,
even if it was not possible (might have been at some point in time)

It makes some apps, like the one we track for the minimal size, able
to eliminate a few more types (for both _dotnet_ and _legacy_)

```diff
--- a.cs	2021-06-08 17:41:00.000000000 -0400
+++ b.cs	2021-06-08 17:41:02.000000000 -0400
@@ -3216,21 +3216,9 @@
 			NSString.ReleaseNative(intPtr);
 		}
 	}
-	[Register]
-	internal class UIControlEventProxy : NSObject
-	{
-		[MethodImpl(8)]
-		[Export("BridgeSelector")]
-		public void Activated()
-		{
-			throw new NotSupportedException("Linked away");
-		}
-	}
 	[Register("UIControl", true)]
 	public class UIControl : UIView, INativeObject, IDisposable
 	{
-		private static ConditionalWeakTable<UIControl, Dictionary<EventHandler, Dictionary<UIControlEvent, UIControlEventProxy>>> allTargets = new ConditionalWeakTable<UIControl, Dictionary<EventHandler, Dictionary<UIControlEvent, UIControlEventProxy>>>();
-
 		private static readonly IntPtr class_ptr = Class.GetHandle("UIControl");

 		public override IntPtr ClassHandle => class_ptr;
@@ -3523,32 +3511,6 @@
 	}
 	[Flags]
 	[Native]
-	public enum UIControlEvent : ulong
-	{
-		TouchDown = 0x1,
-		TouchDownRepeat = 0x2,
-		TouchDragInside = 0x4,
-		TouchDragOutside = 0x8,
-		TouchDragEnter = 0x10,
-		TouchDragExit = 0x20,
-		TouchUpInside = 0x40,
-		TouchUpOutside = 0x80,
-		TouchCancel = 0x100,
-		ValueChanged = 0x1000,
-		PrimaryActionTriggered = 0x2000,
-		MenuActionTriggered = 0x4000,
-		EditingDidBegin = 0x10000,
-		EditingChanged = 0x20000,
-		EditingDidEnd = 0x40000,
-		EditingDidEndOnExit = 0x80000,
-		AllTouchEvents = 0xFFF,
-		AllEditingEvents = 0xF0000,
-		ApplicationReserved = 0xF000000,
-		SystemReserved = 0xF0000000,
-		AllEvents = 0xFFFFFFFF
-	}
-	[Flags]
-	[Native]
 	public enum UIControlState : ulong
 	{
 		Normal = 0x0,
@@ -4737,10 +4699,6 @@

 		public bool IsWrapper => is_wrapper;

-		public RegisterAttribute()
-		{
-		}
-
 		public RegisterAttribute(string P_0)
 		{
 			name = P_0;
```
2021-06-09 08:50:14 -04:00
Rolf Bjarne Kvinge c79f1d626c
[dotnet] Add a data/UnixFilePermissions.xml file to the sdk packs. Fixes #11860. (#11869)
NuGet doesn't support preserving the executable bit for files in *.nupkgs
(which are just zip files), so .NET implemented a [temporary
workaround](https://github.com/dotnet/sdk/pull/17299) for workload installs,
where they hardcoded files that should be executable.

This isn't really sustainable, and they'll remove their workaround, so we need
to use their supported method of specifying the file permissions: a
data/UnixFilePermissions.xml file.

Fixes https://github.com/xamarin/xamarin-macios/issues/11860.
2021-06-09 07:54:18 +02:00
VS MobileTools Engineering Service 2 941d2d75e8
[dotnet] Fix the path to the workloads in one more location. (#11867)
This fixes a regression where the data/WorkloadManifest.* files were missing
from the Microsoft.NET.Sdk.<platform>.Manifest-6.0.100.<version> NuGets.

Updated contents are now:

    $ unzip -l nupkgs/Microsoft.NET.Sdk.iOS.Manifest-6.0.100.*sha*.nupkg
    Archive:  nupkgs/Microsoft.NET.Sdk.iOS.Manifest-6.0.100.14.5.100-preview.5.891+sha.130c40321.nupkg
      Length      Date    Time    Name
    ---------  ---------- -----   ----
          528  06-08-2021 20:38   _rels/.rels
          845  06-08-2021 20:38   Microsoft.NET.Sdk.iOS.Manifest-6.0.100.nuspec
         6434  09-27-2016 14:08   LICENSE
          656  06-08-2021 18:36   data/WorkloadManifest.json
          645  06-02-2021 06:24   data/WorkloadManifest.targets
          594  06-08-2021 20:38   [Content_Types].xml
          664  06-08-2021 20:38   package/services/metadata/core-properties/be25c66390ef48fa911d2e7a3f184c3c.psmdcp
    ---------                     -------
        10366                     7 files

Regressed in: e4e57c703f

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-06-09 07:53:37 +02:00
Rolf Bjarne Kvinge 3d9c37778f
[tests] Collect and zip up the .NET unit tests for execution on Windows. (#11850) 2021-06-08 08:59:10 +02:00
Jonathan Peppers 9dc24c721e
[dotnet] add @(SdkSupportedTargetPlatformIdentifier) (#11859)
Context: https://github.com/dotnet/sdk/pull/16208/files
Context: https://gist.github.com/sfoslund/12e1daff114bccc8a29ebb441bc461a5#detecting-installed-platforms
Context: https://github.com/xamarin/xamarin-android/issues/5941

The VS ProjectSystem needs a way to know during MSBuild evaluation
which platforms are supported by a workload--even if the workload is
not actually installed.

On Android, for example, we added the item group:

    <SdkSupportedTargetPlatformIdentifier Include="android" DisplayName="Android" />

This enables the IDE to know that Android is supported.

In this repo, we need to make this change for the iOS, MacCatalyst,
macOS, and tvOS workloads.
2021-06-08 07:56:27 +02:00
Manuel de la Pena 7a0ceabaed
[CI] Unify the password across templates. (#11854) 2021-06-07 18:37:44 -04:00
Sebastien Pouliot c6a25ade9b
[mediaplayer] Fix MPNowPlayingInfoCenter.DefaultCenter.NowPlaying < iOS 11.1 (#11847)
Ironically my nullability changes caused this... because they are not
yet complete and the lack of `ArgumentNullException` in `TryGetValue`
was misinterpreted [0] as null-aware (instead of not correctly caught/
handled inside `NSDictionary`).

Fix https://github.com/xamarin/xamarin-macios/issues/11827

[0] https://github.com/xamarin/xamarin-macios/pull/10790
2021-06-07 13:00:17 -04:00
TJ Lambert f35f261264
Fixing typo (#11849)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2021-06-07 09:35:34 -05:00