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

12015 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge e8ae2103bf
[ABAddressBook] Subclass NativeObject + numerous other code updates (#13061)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fastest and least memory hungry option).
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Simplify block creation code a bit.
2021-10-21 07:30:05 +02:00
Alex Soto 9c90fa8842
[CI] Update SignList.xml to fix publishing 2021-10-20 21:46:13 -04:00
Rachel Kang 816766b834
Update based on feedback 2021-10-20 17:39:11 -04:00
Rachel Kang a392357eb0
[Security] Updates for Catalyst 2021-10-20 17:34:11 -04:00
Rolf Bjarne Kvinge 1cff1ddf3e
[FSEvents] Fix compiler warning about nullability. (#13050)
Fixes this warning:

    CoreServices/FSEvents.cs(107,11): warning CS8605: Unboxing a possibly null value.
2021-10-20 22:23:17 +02:00
Rolf Bjarne Kvinge 808419f3c3
[tests] Fix the name of monotouchtest. (#13042)
Fix the name of monotouchtest, so that the app/executable is found by the
makefile when trying to execute the test.
2021-10-20 21:17:55 +02:00
Rachel Kang 56b454a8cb
[IntentsUI] Update bindings for Xcode13.0 betas 1,4 2021-10-20 14:33:42 -04:00
Rolf Bjarne Kvinge 116a2405e2
Bump Touch.Unit. (#13047)
New commits in spouliot/Touch.Unit:

* spouliot/Touch.Unit@3345db2 [Touch.Client] Add a shared.csproj for the .NET projects.
* spouliot/Touch.Unit@a781762 [MacRunner] Add availability attribute to avoid a compiler warning.

Diff: a246ede5fb..3345db2f4e
2021-10-20 20:21:02 +02:00
Rolf Bjarne Kvinge fa51d143f7
[VTDecompressionStatus] Enable nullability + numerous other code updates (#13051)
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Simplify block code to not need to be unsafe.
* Fix extraneous call to CFObject.CFRelease in the CopyBlackPixelBuffer method.
2021-10-20 20:18:55 +02:00
Rolf Bjarne Kvinge d2cdeba986
[VTFrameSilo] Subclass NativeObject + numerous other code updates (#13048)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
2021-10-20 20:08:08 +02:00
Rolf Bjarne Kvinge b9a2710b38
[VTSession] Subclass NativeObject + numerous other code updates (#13044)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Use the 'Runtime.GetNSObject<T> (IntPtr, bool)' overload to specify handle
  ownership, to avoid having to call NSObject.DangerousReleaes manually later.
* Fix handling of return value from VTSessionCopySerializableProperties: we
  own it, and must thus release it.
2021-10-20 14:53:01 +02:00
Rolf Bjarne Kvinge 2ac954ee79
[VTMultiPassStorage] Subclass NativeObject + numerous other code updates (#13045)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
2021-10-20 14:25:58 +02:00
dotnet-maestro[bot] dc6f476233
Update dependencies from https://github.com/dotnet/installer build 20211018.63 (#13026)
Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21518.6 -> To Version 6.0.100-rtm.21518.63

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-10-20 07:49:00 +02:00
Rolf Bjarne Kvinge a6f5cf9be3
[CMBlockBuffer] Subclass NativeObject + numerous other code updates. (#13007)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Remove the (IntPtr) constructor and add a (IntPtr, bool) constructor to
  follow our NativeObject pattern.
* Make the 'customAllocator' field private, it's not accessed from outside
  this class.
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
2021-10-20 07:47:49 +02:00
Mauro Agnoletti b2678a413c
Updated Hot Restart client package (#13029) 2021-10-20 07:45:34 +02:00
Rachel Kang 861c40dbe4
Merge pull request #12990 from rachelkang/cat_networkextension
[NetworkExtension] Updates for Catalyst
2021-10-19 12:26:48 -04:00
Rolf Bjarne Kvinge 1a130349cd
[CGColorConverter] Subclass NativeObject (#13006)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability.
2021-10-19 18:05:13 +02:00
Rolf Bjarne Kvinge 91f7e92686
[CGColor] Subclass NativeObject + numerous other code updates (#13005)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fastest and least memory hungry option).
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
2021-10-19 17:28:56 +02:00
Rachel Kang 4c2c4a38d4
Merge pull request #12978 from rachelkang/cat_executionpolicy
[ExecutionPolicy] Updates for MacCatalyst
2021-10-19 10:24:55 -04:00
Rachel Kang 8670f235c5
Merge pull request #12980 from rachelkang/cat_ituneslibrary
[iTunesLibrary] Updates for MacCatalyst
2021-10-19 10:24:34 -04:00
Rachel Kang 9dd375f179
Merge pull request #12991 from rachelkang/cat_videotoolbox
[VideoToolbox] Updates for Catalyst
2021-10-19 10:24:10 -04:00
Rachel Kang 3eea624ebb
Merge pull request #12971 from rachelkang/cat_medialibrary
[MediaLibrary] Update MacCatalyst Support
2021-10-19 10:23:41 -04:00
Rolf Bjarne Kvinge 1c193be863
[MidiThruConnection] Numerous other code updates (#13008)
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fastest and least memory hungry option).
2021-10-19 15:51:34 +02:00
Rolf Bjarne Kvinge 8c99bdc9ad
[FSEvents] Subclass NativeObject + numerous other code updates (#13010)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fastest and least memory hungry option).
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Remove the (IntPtr) constructor and add a (IntPtr, bool) constructor to
  follow our NativeObject pattern.
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Add a CFArray.StringArrayFromHandle overload that will release the handle if
  requested, which makes it possible to simplify callers.
2021-10-19 09:58:59 +02:00
Alex Soto 78c367749a
[xcode13.1-rc] Bump macios to use Xcode 13.1 RC (#13025) 2021-10-19 09:30:44 +02:00
Rolf Bjarne Kvinge be9244bc80
[CFAllocator] Subclass NativeObject + a few other code updates (#13015)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Make the (IntPtr) obsolete (remove for XAMCORE_4_0), and point to the
  (IntPtr, bool) constructor instead.
2021-10-19 09:21:25 +02:00
Rolf Bjarne Kvinge ad5011cbbd
[CFBoolean] Subclass NativeObject + a few other code updates (#13017)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
2021-10-19 08:59:20 +02:00
dotnet-maestro[bot] a1e7dcdfb3
Update dependencies from https://github.com/dotnet/installer build 20211018.6 (#13009)
Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21516.10 -> To Version 6.0.100-rtm.21518.6

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-10-19 08:40:17 +02:00
Rolf Bjarne Kvinge c25e7b3e3e
[CoreML] Avoid using an internal method that overloads a public method based on IntPtr/nint. (#13013) 2021-10-19 08:17:06 +02:00
Rolf Bjarne Kvinge 221b3b3def
[QTKit] Use 'nint'/'nuint' instead of 'System.nint'/'System.nuint' to be compatible with C#'s nint/nuint. (#13012) 2021-10-19 08:16:46 +02:00
Rolf Bjarne Kvinge 60c20decf0
[tests] Fix LinkSdkRegressionTest.SpecialFolder on macOS 10.14. (#13004) 2021-10-19 08:16:21 +02:00
Rolf Bjarne Kvinge db677b2639
[CFMessagePort] Remove the class-level GCHandle, it's never used. (#12994) 2021-10-19 08:15:48 +02:00
Rolf Bjarne Kvinge aa2f7c33d1
[src] Add .NET project files. (#13018) 2021-10-19 08:12:32 +02:00
Rolf Bjarne Kvinge 9844acf3b1
[src] Adapt some code to work with both C#'s nint/nuint and our custom System.nint/System.nuint types (#13019)
* Add explicit casts to/from IntPtr and other specific types in a few places
  to avoid relying on implicit conversions (which aren't the same between C#'s
  nint/nuint and our System.nint/nuint types).
* Add Dlfcn.[Get|Set]UIntPtr to match the signed versions (for nuint).
2021-10-19 08:12:20 +02:00
Rolf Bjarne Kvinge 7b74a82724
[Runtime] Skip code to verify the Mono version in .NET for Xamarin.Mac. (#13020)
1. We're not using Mono for macOS in .NET.
2. Even if we were, we're not using a system mono anymore, which means we can't run
   into unexpected mono versions at runtime.
2021-10-19 08:11:57 +02:00
Rolf Bjarne Kvinge fc26c72b2a
[ObjCRuntime] Add nullability attributes to the Runtime class + numerous other code updates. (#13021)
Add nullability attributes to the Runtime class and fix the code accordingly.

This snowballed a bit, because it ended up requiring changes in multiple other
classes. While at it, I also updated the code to:

* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fasets and least memory hungry option).
* Use 'nameof (parameter)' instead of string constants.
2021-10-19 08:11:45 +02:00
dotnet-maestro[bot] 313bc16bc7
[main] Update dependencies from dotnet/installer (#12987)
* Update dependencies from https://github.com/dotnet/installer build 20211014.1

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21512.45 -> To Version 6.0.100-rtm.21514.1

* Update dependencies from https://github.com/dotnet/installer build 20211014.70

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21512.45 -> To Version 6.0.100-rtm.21514.70

* Update dependencies from https://github.com/dotnet/installer build 20211016.9

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21512.45 -> To Version 6.0.100-rtm.21516.9

* Update dependencies from https://github.com/dotnet/installer build 20211016.10

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21512.45 -> To Version 6.0.100-rtm.21516.10

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-10-18 09:22:40 +02:00
Rolf Bjarne Kvinge 6d065a7dcc
[tests] Minor fixes wrt executing packaged macOS tests. (#12982)
* Don't execute .NET tests in the 'legacy' targets (it's wasteful because
  we're already executing those .NET tests elsewhere).
* Fix reporting failures in the legacy tests.
2021-10-18 07:30:36 +02:00
Rolf Bjarne Kvinge 17641a8ccc
[VTFrameSilo] There's no reason to have a class-level GCHandle. (#12993)
The GCHandle created in ForEach is only needed for the duration of the method
call, and will be freed at the end of it.
2021-10-18 07:30:08 +02:00
Rolf Bjarne Kvinge 32d98535c7
[CFStream] Delay the creation of the GCHandle until we actually need it. (#12995) 2021-10-18 07:28:03 +02:00
Rolf Bjarne Kvinge 9d7e5eb4f6
[src] Remove dead code from the Class class. (#12996) 2021-10-18 07:27:53 +02:00
Rolf Bjarne Kvinge 56892d996d
[src] Rename MAC_* variables to MACOS_* variables. (#12998)
This makes it easier to iterate over the platforms we're building for, because
we can use "macOS" to compute the variable names we're interested in (like we
already can for iOS, tvOS, watchOS and MacCatalyst).
2021-10-18 07:24:37 +02:00
Rolf Bjarne Kvinge 2087a30476
[CGDataProvider] Subclass NativeObject + numerous other code updates (#12999)
* Subclass NativeObject to reuse object lifetime code.
* Merge the CGDataProvider-2.cs file into the CGDataProvider.cs file.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
2021-10-18 07:24:24 +02:00
Rolf Bjarne Kvinge cae4de3019
[ObjCRuntime] Make BaseWrapper subclass NativeObject + numerous other code updates (#13000)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
2021-10-18 07:22:08 +02:00
TJ Lambert 5819dc7a10
[ApiDiffs] Creating Api Diffs for the Dotnet Assemblies (#12886) 2021-10-15 12:04:35 -05:00
Rachel Kang eba62b59e9
Update based on feedback 2021-10-15 11:37:52 -04:00
Rachel Kang 5c07a90efd
Remove attributes 2021-10-14 12:17:22 -04:00
Rachel Kang 72dc7f5d01
[NetworkExtension] Updates for Catalyst 2021-10-14 12:11:10 -04:00
dotnet-maestro[bot] 30198fb245
Update dependencies from https://github.com/dotnet/installer build 20211012.45 (#12984)
Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21512.4 -> To Version 6.0.100-rtm.21512.45

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-10-14 07:53:12 +02:00
Rachel Kang 6041aad59b
[VideoToolbox] Updates for Catalyst 2021-10-13 16:40:09 -04:00