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

6557 Коммитов

Автор SHA1 Сообщение Дата
Whitney Schmidt 67087c2282
add wifes to allowed strings (#6644) 2019-07-24 15:57:29 -04:00
Rolf Bjarne Kvinge 6f19d734b7
[generator] Remove support for Classic bindings. Partial fix for #6300. (#6643)
Partial fix for https://github.com/xamarin/xamarin-macios/issues/6300.
2019-07-24 09:01:40 -07:00
Rolf Bjarne Kvinge 6075a9aa5b
[mmp] Remove support for 32-bit apps. Partial fix for #6300. (#6642)
Partial fix for https://github.com/xamarin/xamarin-macios/issues/6300.
2019-07-24 09:01:14 -07:00
Rolf Bjarne Kvinge 5f6e2db886
[monotouch-test] Ignore the FontManagerTest.RegisterFontDescriptors_NoCallback test, it may crash. (#6639)
This fixes a crash when running xammac tests on macOS 10.15.
2019-07-24 07:10:39 -07:00
Rolf Bjarne Kvinge dc2c269f40
[tests] Use built-in feature checks to check for API non-crashyness. (#6640)
This also required adding a few missing Metal version enum values.

Fixes https://github.com/xamarin/maccore/issues/1800.
Fixes https://github.com/xamarin/maccore/issues/1801.
2019-07-24 07:10:10 -07:00
Rolf Bjarne Kvinge 57de81aaa1
[src] Remove the named macOS version attributes. (#6641)
They're only used in Classic, and Classic is dead, so these can now be
removed.
2019-07-24 07:09:21 -07:00
monojenkins 0443822a3f [xcode11] [Generator] Do not used harcoded 'error' var name, use the one in the declaration. (#6637) 2019-07-24 13:28:07 +02:00
Rolf Bjarne Kvinge 0cab45b799
[AppKit] Add missing NSScreen method. (#6636)
* [AppKit] Add missing NSScreen method.

* Update xtro.
2019-07-24 00:51:21 -07:00
Whitney Schmidt 2c2b84beb4
[contacts] xcode11 beta1 - beta4 updated bindings (#6563)
* xcode11 beta1 - beta3 updated bindings

* remove error enum availability, add [disabledefaultctor]

* remove PlatformName.Swift

* update availability for relations to include watch, macos, update w/ ICNKeyDescriptor, fix typo

* remove newline for interface opening {

* fix failures due to new [BaseType] for preexisting interface

* add comment for [BaseType] fix

* remote onlyOn64 in attributes

* remove [Watch (2,0)], remove [Watch (6,0)] from existing bindings

* update availability for CNLabelSchool

* update contacts.cs with b4 contactrelations

* fix colleague typo
2019-07-23 18:50:18 -04:00
Jonathan CONTE d4b8c3ab73 [xcode11] [ItunesLibrary] macOS b1 bindings (#6602)
* added DesignatedInitializer

* 2019 copyright

* Remove init and provide a stub

* Change preprocessor directives and change obsolete message

* Update ITCompat.cs

* deleted todo file

* Add `ITCompat.cs` to frameworks.sources to remove breaking change
2019-07-22 09:51:53 -04:00
TJ Lambert f1c511517d [Photos] Add Xcode 11 Beta 1-4 bindings (#6521)
* first run through but errors

* fixed switching attributes

* adding methods to be continued

* passes intro, one issue with xtro

* added common-Photos.ignore and filled feedback with Apple. Also corrected whitespace and spacing

* minimizing a diff change

* first round of changes

* fixed more errors, but expecting few more changes

* made a comment better

* added Photos/PHChangeRequest.cs but have compiler issue

* actually adding PHChangeRequest file to frameworks.sources

* changing attributes

* changed some ints to PHLivePhotoRequestID

* reverting changes

* adding mac attribute

* removing onlyOn64

* fixing attributes

* changed new base class attributes, need to test still

* This should be final fix in photos, changing PHChangeRequest mac support back to 10,15

* Updated comment

* Updated comment yet again

* removed tv todo
2019-07-22 07:52:56 -04:00
TJ Lambert bda4f5b435 [PhotosUI] Add Xcode 11 Beta 1 Binding (#6624)
* Adding xcode 11 beta 1-3 initial PhotosUI changes

* reverted a few changes

* adding in UIKitForMac Unavailable
2019-07-22 07:40:03 -04:00
Alex Soto 50af930c5e
[UIKit] Update bindings to Xcode 11 beta 4 (#6618) 2019-07-19 16:24:51 -04:00
Alex Soto 0a3318f8de
[AuthenticationServices] Fix ASAuthorization and ASAuthorizationRequest (#6619)
Apple returns an internal wrapper object depending on the context the API
is used for the following properties

* ASAuthorization.Provider
* ASAuthorization.Credential
* ASAuthorizationRequest.Provider

The provider objects have a common interface IASAuthorizationProvider
and the Credential objects have IASAuthorizationCredential since the
objects that implement these protocols inherit from NSObject and Apple
returns the internal wrapper object we cannot have the runtime do the
right cast for us so we expose a generic API constrained to

* NSObject, IASAuthorizationProvider
* NSObject, IASAuthorizationCredential

Respectively so now we are able to do something like
2019-07-19 16:24:04 -04:00
Alex Soto 58bf1f91a0
[Tests] Fix introspection tests in catalina (#6621)
This also removes properties unavailable on 10.15
2019-07-19 13:49:58 -04:00
TJ Lambert 526f86a53d [MediaPlayer] Add Xcode 11 Beta 1-3 bindings (#6596)
* adding MediaPlayer, but needs to wait for AVFoundation to be completed

* changing deprecated messages

* removing onlyOn64

* reformatted deprecated messages

* adding the watch todo back in

* removing todo comment since actual todo is there now
2019-07-18 21:40:00 -04:00
Sebastien Pouliot 256dea928f [authenticationservices] Update for Xcode 11 beta 4 (#6617) 2019-07-18 21:10:41 -04:00
Sebastien Pouliot 07c86fb5b4
[corenfc] Update for Xcode 11 beta 4 (#6609)
This fix a typo in a selector that we reported on the first beta

References
* https://github.com/xamarin/maccore/issues/1785
* https://feedbackassistant.apple.com/feedback/6192467
2019-07-18 15:23:07 -04:00
Sebastien Pouliot ce54a09d01
[generator] Allow the generation of smart enums `*Extensions` code even if no fields are present (#6613)
This is needed in a case like:

```csharp
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")]
[NoWatch, NoTV, Mac (10,15), iOS (13,0)]
enum ASAuthorizationProviderAuthorizationOperation {
	// no value yet - but we must handle `nil` as a default value
	[DefaultEnumValue]
	[Field (null)]
	None,
}
```

IOW we want to expose the smart enum for it's only `null` value
but the general conversion code is not available (for a `Weak`
version of the property)

The upcoming update for `authenticationservices.cs` depends on this fix.
2019-07-18 14:54:23 -04:00
Sebastien Pouliot 364870489e
[corelocation] Update for Xcode 11 beta 1 to 4 (#6600)
No change in beta 3 and 4
2019-07-18 14:16:07 -04:00
Alex Soto 1dc4d45251
[PencilKit] Update to Xcode 11 Beta 4 (#6612) 2019-07-18 13:40:37 -04:00
Sebastien Pouliot 5c30267c8a
[coreanimation] Update for Xcode 11 b4 (#6611) 2019-07-18 13:13:44 -04:00
Alex Soto 12408486ba
[ARKit] Update to Xcode 11 Beta 4 (#6608) 2019-07-18 12:23:51 -04:00
Sebastien Pouliot 02fe80ca8b
[replaykit] Update for Xcode 11 beta 4 (#6610) 2019-07-18 12:00:50 -04:00
Manuel de la Pena 1d0207e611
[Dependencies] Do not check for Xcode 9.4 on Catalina. (#6605) 2019-07-18 17:45:40 +02:00
Sebastien Pouliot 7fcd8d7974 Bump for Xcode 11 beta 4 (#6603)
* Bump for Xcode 11 beta 4

xtro tests will fail until we have an update for sharpie, however
the introspection tests should be fine (with the small changes in
arkit.cs and uikit.cs)

xtro failure:

```
System.NotImplementedException: AVAudioInteger
  at (wrapper managed-to-native) Clang.Ast.AstReader.LoadInternal(Clang.Ast.AstReader,string)
  at Clang.Ast.AstReader.Load (System.String astPath) [0x00014] in /Users/builder/vsts-agent/_work/5/s/Clang/Ast/AstReader.cs:33
  at Extrospection.Runner.Execute (System.String pchFile, System.Collections.Generic.IEnumerable`1[T] assemblyNames) [0x0019a] in /Users/poupou/git/xcode11/xamarin-macios/tests/xtro-sharpie/Runner.cs:54
  at Extrospection.MainClass.Main (System.String[] args) [0x00046] in /Users/poupou/git/xcode11/xamarin-macios/tests/xtro-sharpie/Program.cs:20
```

due to

```diff
-typedef CF_ENUM(NSInteger, AVAudioSessionErrorCode) {
+typedef CF_ENUM(AVAudioInteger, AVAudioSessionErrorCode) {
```
https://github.com/xamarin/xamarin-macios/wiki/CoreAudioTypes-iOS-xcode11-beta4

* [tests] CoreText stopped reporting error when font files are missing

* Fix xtro (EnumCheck.cs) and update its data files

* Fix xtro results (due to some local changes)
2019-07-18 05:44:34 -04:00
Whitney Schmidt 8d8401e8fb
[quicklookUI] xcode11 beta1 - beta3 updated bindings (#6588)
* quicklookUI updates for xcode11

* update param to completionHandler

* remove onlyOn64: true
2019-07-16 19:28:42 -04:00
Jonathan CONTE 9b7f6f9cdb [NotificationCenter] Bindings for iOS Xcode 11 beta 1 (#6579) 2019-07-16 15:58:34 -04:00
Rolf Bjarne Kvinge c1e6ac029f [src] Remove/obsolete 'onlyOn64: true' in attributes. (#6595)
* [src] Obsolete 'onlyOn64' parameter to the availability attributes.

* [src] Remove 'onlyOn64: true' from attributes.

* [src] Adjust availability attributes.
2019-07-16 12:13:11 -04:00
Sebastien Pouliot 799cf06a99
[coreaudiokit] Update for Xcode 11 beta 1 (#6582)
No change in beta 2 and beta 3
2019-07-15 14:44:36 -04:00
Rolf Bjarne Kvinge a495077533
[xcode11] Stop building/shipping 32-bit Xamarin.Mac bits. Partial fix for #6300. (#6393)
This includes:

* 32-bit version of Xamarin.Mac.dll and OpenTK.dll
* XamMac.dll and XamMac.CFNetwork.dll
* 32-bit versions of the runtime libraries (libxammac.a and friends).
* 32-bit version of the partial static library for Xamarin.Mac.
* Classic support in the generator.

We still ship a few Classic files so that Visual Studio for Mac continue to detect that Xamarin.Mac is installed (otherwise VSfM won't open Classic projects, which makes it impossible to use the migration wizard).

This makes our build slightly faster.

Partial fix for #6300.
2019-07-15 10:19:24 -07:00
Sebastien Pouliot 41096f2f44
[callkit] Update for xcode beta 1 (#6581)
No change in beta 2 and 3

Initial PR https://github.com/xamarin/xamarin-macios/pull/6470 missed the single new API (hint: check `xtro` files)
2019-07-15 13:09:18 -04:00
Sebastien Pouliot e6e428393d
[coretext] Update for Xcode 11 beta 1-3 (#6562)
includes unit tests
2019-07-15 13:06:56 -04:00
Sebastien Pouliot e97b4eacf3
[coretelephony] Update for Xcode 11 beta 1 (#6576)
No changes in beta 2 and 3
2019-07-15 08:13:34 -04:00
Sebastien Pouliot 5acc751928
[spritekit] Update xtro (no real change) (#6577)
Beside quite some (availability/macros) noise, there's only a single
new API according to the header files - however it's missing in the
binary.

Filed feedback https://feedbackassistant.apple.com/feedback/6644627
Tracked in https://github.com/xamarin/maccore/issues/1887
2019-07-15 08:03:09 -04:00
Alex Soto f8da20ad90
[Xcode11] Use the latest stable sharpie (#6572)
* [Xcode11] Use the latest stable sharpie

* We use visualstudio links now
2019-07-12 18:58:35 -04:00
Alex Soto 2d53b90723
[UIKit] Partial update to Xcode 11 Beta 1, 2 and 3 - Part 2 of ? (#6553)
* [UIKit] Partial update to Xcode 11 Beta 1, 2 and 3 - Part 2 of ?

Missing bindings for

* NSDiffableDataSourceSnapshot
* UICollectionViewDiffableDataSource
* UITableViewDiffableDataSource

due to a registrar issue git generics.

* Update src/UIKit/UIFont.cs

Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>

* Update src/uikit.cs

* More feedback

This also disables

* FloatRangeTest.Equals
* FloatRangeTest.ManagedVersusNative

due to https://github.com/xamarin/maccore/issues/1885

* [UIKIt] Start fixing `UITextWritingDirection` situation

But the complete fix is for another time https://github.com/xamarin/xamarin-macios/issues/6573
2019-07-12 13:44:24 -04:00
Rolf Bjarne Kvinge 18321c6069
[xammac_tests] Fix a few issues after the latest beta. Fixes xamarin/maccore#1886. (#6575)
* [monotouch-test] Adjust EventKitCalendarTest for the latest Xcode 11 beta (3). Partial fix for xamarin/maccore#1886.
 
Partial fix for https://github.com/xamarin/maccore/issues/1886.

* [xammac_tests] Add missing resources files. Partial fix for xamarin/maccore#1886.

Partial fix for https://github.com/xamarin/maccore/issues/1886.

Fixes https://github.com/xamarin/maccore/issues/1886.
2019-07-12 09:12:10 -07:00
Sebastien Pouliot 42648dd609
[localauthentication] Update for Xcode 11 beta 1-3 (#6574) 2019-07-12 08:58:06 -07:00
Rolf Bjarne Kvinge a27c33342b
[mmptest] Various cleanups. (#6569)
* Simplify Makefile
	* Remove logic to build using vstool since it's not needed anymore.
	* Remove logic to build 32-bit test apps.
* tests.sln: add existing projects, remove deleted projects.
* Delete MainMenu.xib, it's not needed since none of these tests show a UI.
* Modify the csprojs to be much more similar to eachother, which makes it
  easier to find the significant difference between them. Also add
  properties/nodes that VSfM insists on adding, so that future diffs should
  not contain gratuitous changes by VSfM.
2019-07-12 07:37:56 -07:00
Rolf Bjarne Kvinge 121f04ce3d
[tests] Improve handling of permission dialogs. Fixes xamarin/maccore#1856. (#6544)
* macOS 10.15 starts putting up permission dialogs we can't automatically
  dismiss anymore, so start honoring the 'IncludeSystemPermissionTests' option
  for macOS tests.
* Improve the 'IncludeSystemPermissionTests' option to have three states: if
  set (either true or false), that takes precedence, but if not set, we now
  don't run any tests that require permission dialogs on macOS or on device if
  we're running in CI. Tests executed locally will still put up dialogs, both
  on macOS and on device.
* This needed a few changes to the html report, since the
  'IncludeSystemPermissionTests' is exposed in the UI and the code didn't
  handle the three different states.
* Update a few tests to check for permission to the contacts.

Fixes https://github.com/xamarin/maccore/issues/1856.
2019-07-12 07:05:57 -07:00
Rolf Bjarne Kvinge 97bd041abc
[tests] Don't use unsupported characters in matrix names for yml scripts. Fixes xamarin/maccore#1831. (#6531)
* [tests] Don't use unsupported characters in matrix names for yml scripts. Fixes xamarin/maccore#1831.

Matrix names must be alphanumeric (+underscore), and recently Azure DevOps
stopped working correctly if that wasn't the case (unfortunately without a
good error message though, so it took a while to figure it out).

Fixes https://github.com/xamarin/maccore/issues/1831.

* [jenkins] Fix lookup of environment variables from matrix jobs.
2019-07-12 01:40:57 -07:00
Rolf Bjarne Kvinge e8254d4110
Merge pull request #6559 from rolfbjarne/maccore-issue-1880
[xcode11] Fix monotouch-test to not crash on device.
2019-07-11 23:03:08 -07:00
Rolf Bjarne Kvinge c91a1deac8
[mmptest] Port link-safe-1 to Unified. Partial fix for #4975. (#6556)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-11 22:46:44 -07:00
Rolf Bjarne Kvinge 7bc0954e96
[mmptest] Port the link-webclient-* tests to NUnit LinkAll+LinkSdk tests. Partial fix for #4975. (#6557)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-11 22:46:02 -07:00
Manuel de la Pena 7e96b317e8
[CoreMedia] Add support for CoreMedia on Xcode 11 beta 3. (#6513) 2019-07-11 20:14:58 +02:00
Rolf Bjarne Kvinge 612a74a0fd [monotouch-test] Don't try to set image captions on read-only files.
iOS will helpfully crash.
2019-07-11 19:04:14 +02:00
Rolf Bjarne Kvinge 8ab907a91e [monotouch-test] Don't check for the macOS system version when running on other platforms. 2019-07-11 19:04:14 +02:00
Rolf Bjarne Kvinge d457122ad2 [monotouch-test] Add permission description for CoreBluetooth. Fixes xamarin/maccore#1880.
Fixes https://github.com/xamarin/maccore/issues/1880.
2019-07-11 19:04:14 +02:00
Rolf Bjarne Kvinge accafe9eb4
[mmptest] Port link-httpclient-async to an NUnit LinkAll+LinkSdk test. Partial fix for #4975. (#6554)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-11 06:20:28 -07:00