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

2749 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot ca81952852
[fileprovider[ui]] Update for Xcode 11 beta 1 to 5 (#6759)
Moved some code from uikit.cs since the type moved a while ago. That
ease code sharing with macOS (XM) but it stays into the UIKit namespace
(for XI) until `XAMCORE_4_0` to ensure binary compatibility.
2019-08-14 08:12:07 -04:00
Alex Soto 7bf95d97b0
[generator] Add support for [Native] enums inside [StrongDictionaries] (#6763) 2019-08-13 18:36:36 -04:00
Sebastien Pouliot 4d6a9f505e
[foundation] Update for Xcode 11 beta 5 (#6754) 2019-08-12 18:14:03 -04:00
Sebastien Pouliot de97837da9
[quartzcomposer] Update for Xcode 11 beta 1 (#6752)
No other change in b2 to b5
2019-08-12 11:54:29 -04:00
Sebastien Pouliot 61c8af15d1
[naturallanguage] Update for Xcode 11 beta 1 (#6741)
No change in beta 2 to 5

* Run EmbeddingTest.Vector test on iOS and macOS only

reference: rdar 44948030

> Engineering has the following feedback for you: The tagging
> depends on the NLP assets being present on the device. The
> assets get downloaded through OTA. OTA download for NLP assets
> does not exist on watchOS and tvOS currently…only on iOS and
> macOS. It is conceivable that the assets got downloaded when you
> were on WiFi at a later point. So, the tagging should work.
2019-08-12 11:07:15 -04:00
Sebastien Pouliot 38e1d05d68
[externalaccessory] Update for Xcode 11 beta 5 (#6746) 2019-08-11 21:10:26 -04:00
Vincent Dondain cce8ad4826
[xcode11] Disable bcl tests (#6744)
See https://github.com/xamarin/maccore/issues/1808.
On `xcode11` we do not support mono binaries.
VSTS expects to be able to download mono when we need to build it from source for `xcode11`.
Reverting the tests to the old way would be too complicated to simply disable the bcl tests.
Those tests are still executed for simulator and will be re-enabled when we merge `xcode11`.
This was added as a reminder here: https://github.com/xamarin/xamarin-macios/issues/6212
2019-08-09 15:27:57 -04:00
Sebastien Pouliot 76d4fa7812
[pdfkit] Update for Xcode 11 beta 1 (#6743)
no change between b2 and b5
2019-08-09 12:00:20 -04:00
Jonathan CONTE 5b9fba99c8 [homekit] Update for xcode11 beta1 to beta5 - all platforms (#6710) 2019-08-09 11:17:10 -04:00
Sebastien Pouliot 193ae8bfdf
[mediaaccessibility] Update for Xcode 11 beta 5 (#6733) 2019-08-07 19:40:32 -04:00
monojenkins eb77564659 [xcode11] Fix NLLanguageRecognizer crash (#6732)
The dispose of `nslang` was happening outside of the check if `nslang` is null. This was causing a crash when trying to recognise a string that contains just one number.
2019-08-07 13:08:27 -04:00
Sebastien Pouliot a45fd083b5
[coretext] Update for Xcode 11 beta 5 (#6731)
Beta 4 added some new API and constants
Beta 5 removed `CTFontManagerCopyRegisteredFontDescriptors` from all OS but iOS
2019-08-07 13:07:42 -04:00
Alex Soto d883febff0
[UIKit] Update bindings to Xcode 11 Beta 5 (#6717) 2019-08-06 07:53:08 -04:00
Alex Soto 239b75c28c
[PassKit] Update bindings to Xcode 11 Beta 5 (#6719) 2019-08-06 07:51:43 -04:00
Alex Soto 6d326cc281
[AuthenticationServices] Update bindings to Xcode 11 Beta 5 (#6718) 2019-08-06 07:51:22 -04:00
Jonathan CONTE eb61a04722 [xcode11] [VideoToolbox] bindings for beta 1-5 (#6645)
* new const bindings

* new const bindings beta 2

* delete todo files

* add kVTAlphaChannelMode_PremultipliedAlpha binding

* MacOS10.9 -> iOS10.9

* fix naming

* ajust platform availability according to apple doc

* add fields to StrongDictionary

* add fields to StrongDictionary

* Change GammaLevel type : float -> double

* Fix build and add smart enum to strong dictionary in VT

* Fix macOS availability
2019-08-06 05:29:11 -04:00
TJ Lambert 9301deb863 [GameController] Add Xcode 11 Beta 1-5 bindings (#6589)
* adding GameController, issue including GCMotion.cs

* pushing temp fix by removing struct headers

* removed few introduced statements

* adding my name to top of file

* fixed review issues

* fixing issues cont

* forgot the enums

* fixing format of Deprecated messages

* missed a couple onlyOn64

* adding attributes

* removing additions to existing struct

* changed deprecated messages and selector names

* removing extra whitespace

* Added the struct in the new order from apple

* addressed Rolfs changes

* removed a diff change
2019-08-05 14:47:22 -04:00
Whitney Schmidt 7b63a38698
[HealthKit] updates for beta 1 - beta 4 xcode11 (#6692)
* healthkit b1-b3 updates

* fixes for first round of comments

* remove whitespace noise

* move hkcategorytype enums

* update mono-touch tests, remove [designatedinitializer] attr

* alex nit fixes

* fix formatting for [Deprecated]

* update mono-touch tests with even more enums

* InsertQuantity -> Insert

* remove references to xcode13, which does not exist

* add HKCharacteristicTypeIdentifierActivityMoveMode to .ignore files
2019-08-02 14:06:22 -04:00
Alex Soto 54c58a2a43
[tests] Fix api tests in macOS 10.15 (#6701)
Fixes

```
RegisterFontDescriptors_WithCallback (MonoTouchFixtures.CoreText.FontManagerTest.RegisterFontDescriptors_WithCallback)
System.NotImplementedException : The method or operation is not implemented.
    at TestRuntime.CheckExactXcodeVersion (System.Int32 major, System.Int32 minor, System.Int32 beta) [0x00185] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tests/common/TestRuntime.cs:175
    at MonoTouchFixtures.CoreText.FontManagerTest.RegisterFontDescriptors_WithCallback () [0x0000b] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tests/monotouch-test/CoreText/FontManagerTest.cs:225
    at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
    at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Library/Frameworks/Xamarin.Mac.framework/Versions/5.99.2.30/src/Xamarin.Mac/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:391
```
2019-08-02 08:19:21 -04:00
monojenkins ddef42880a [xcode11] [tests] wrench is long gone (#6696)
* [tests] wrench is long gone

* Use a different Url that works and ensure we get a nice message when we have a failure.

* Fix new callback test.
2019-07-31 22:11:35 -04:00
Alex Soto d10d7f0370
[xcode11] Bump to Xcode 11 Beta 5 (#6684)
* [xcode11] Bump to Xcode 11 Beta 5
2019-07-30 14:16:44 -04:00
Rolf Bjarne Kvinge 5fdc25ebe7 [CFNetwork] Non-implementation of new API in Xcode 11 beta 1-4. (#6663)
The missing fields are all new fields in existing groups of fields, of which
we've bound none.

Continue the trend, and just update xtro.
2019-07-26 19:37:04 -04:00
Jonathan CONTE 414391a7e4 [xcode11] [IntentsUI] bindings for iOS beta1 (#6625)
* updated bindings

* updated bindings

* delete todo file

* fix iOS version on enum

* Add  to frameworks.sources to remove breaking change

* deleted INUICompat.cs and add [Unavailable (PlatformName.UIKitForMac)] on constructors

* Update intentsui.cs
2019-07-25 10:50:31 -04:00
Alex Soto d095f75471
[registrar] Fix a generics type issue with dynamic registrar (#6646)
* [registrar] Fix a generics type issue with dynamic registrar

Fixes xamarin/xamarin-macios#6567

This Fixes an issue in the registrar where the dynamic registrar
misses a case to check for a NSObject constraint triggered by UIKit's
`NSDiffableDataSourceSnapshot` object.

This also enables the rest of missing bindings in UIKit for Xcode 11 B4
which also works as a test case for the registrar fix. Without this fix
introspection test would throw an `AggregateException` and also
includes `NSDiffableDataSourceSnapshotTest` to check that the created
objects are usable.

* Check for Xcode 11 in tests

* Exclude the macOS in our UIKit tests ツ
2019-07-25 05:56:39 -04:00
Whitney Schmidt 67087c2282
add wifes to allowed strings (#6644) 2019-07-24 15:57:29 -04: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 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 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
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
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 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