diff --git a/Makefile b/Makefile index f023cb1beb26..9515fb874a23 100644 --- a/Makefile +++ b/Makefile @@ -158,7 +158,7 @@ git-clean-all: @git submodule foreach -q --recursive 'git clean -xffdq && git reset --hard -q' @for dir in $(DEPENDENCY_DIRECTORIES); do if test -d $(CURDIR)/$$dir; then echo "Cleaning $$dir" && cd $(CURDIR)/$$dir && git clean -xffdq && git reset --hard -q && git submodule foreach -q --recursive 'git clean -xffdq'; else echo "Skipped $$dir (does not exist)"; fi; done - @if [ -n "$(ENABLE_XAMARIN)" ] || [ -n "$(ENABLE_DOTNET)"] || [ -n "$(ENABLE_DOTNET_WINDOWS)"]; then \ + @if [ -n "$(ENABLE_XAMARIN)" ] || [ -n "$(ENABLE_DOTNET)"]; then \ CONFIGURE_FLAGS=""; \ if [ -n "$(ENABLE_XAMARIN)" ]; then \ echo "Xamarin-specific build has been re-enabled"; \ @@ -168,10 +168,6 @@ git-clean-all: echo "Dotnet-specific build has been re-enabled"; \ CONFIGURE_FLAGS="$$CONFIGURE_FLAGS --enable-dotnet"; \ fi; \ - if [ -n "$(ENABLE_DOTNET_WINDOWS)" ]; then \ - echo "Dotnet-specific Windows build has been re-enabled"; \ - CONFIGURE_FLAGS="$$CONFIGURE_FLAGS --enable-dotnet-windows"; \ - fi; \ ./configure "$$CONFIGURE_FLAGS"; \ $(MAKE) reset; \ echo "Done"; \ diff --git a/configure b/configure index 4c115cbf0830..54223821d244 100755 --- a/configure +++ b/configure @@ -34,9 +34,6 @@ Usage: configure [options] --enable-dotnet Enable building .NET 6 bits. --disable-dotnet Disable building .NET 6 bits. - --enable-dotnet-windows Enable building Windows .NET 6 bits. Building .NET 6 bits must be also enabled (--enable-dotnet). - --disable-dotnet-windows Disable building Windows .NET 6 bits. - --enable-documentation Enable building of API documentation --disable-documentation Disable building of API documentation. @@ -134,11 +131,11 @@ while test "x$1" != x; do shift ;; --enable-dotnet-windows) - echo "ENABLE_DOTNET_WINDOWS=1" >> "$CONFIGURED_FILE" + echo "$1 is ignored. Use --enable-dotnet instead" shift ;; --disable-dotnet-windows) - echo "ENABLE_DOTNET_WINDOWS=" >> "$CONFIGURED_FILE" + echo "$1 is ignored. Use --disable-dotnet instead" shift ;; --enable-install-source) diff --git a/dotnet/Makefile b/dotnet/Makefile index 7a54a9639b40..4b79102648dc 100644 --- a/dotnet/Makefile +++ b/dotnet/Makefile @@ -183,10 +183,8 @@ $(DOTNET_NUPKG_DIR)/%.nupkg: nupkgs/%.nupkg | $(DOTNET_NUPKG_DIR) ifdef INCLUDE_IOS SDK_PACK_IOS_WINDOWS = $(DOTNET_NUPKG_DIR)/$(IOS_WINDOWS_NUGET).Sdk.$(IOS_WINDOWS_NUGET_VERSION_FULL).nupkg -ifdef ENABLE_DOTNET_WINDOWS SDK_PACKS += $(SDK_PACK_IOS_WINDOWS) endif -endif pack-ios-windows: $(SDK_PACK_IOS_WINDOWS) diff --git a/msbuild/Makefile b/msbuild/Makefile index 089c1ca700df..74ca5c82f5ad 100644 --- a/msbuild/Makefile +++ b/msbuild/Makefile @@ -473,7 +473,6 @@ MSBUILD_DIRECTORIES += $(DOTNET_DIRECTORIES) ifdef ENABLE_DOTNET MSBUILD_PRODUCTS += $(DOTNET_TARGETS) -ifdef ENABLE_DOTNET_WINDOWS DOTNET_IOS_WINDOWS_OUTPUT_FILES = $(foreach dll,$(IOS_WINDOWS_TASK_ASSEMBLIES),$(dll).dll $(dll).pdb) Broker.zip Build.zip DOTNET_IOS_WINDOWS_FILES = $(IOS_WINDOWS_TARGETS) $(foreach file,$(DOTNET_IOS_WINDOWS_OUTPUT_FILES),Xamarin.iOS.Tasks.Windows/bin/$(CONFIG)/$(TARGETFRAMEWORK)/$(file)) @@ -484,7 +483,6 @@ DOTNET_IOS_WINDOWS_FILES = $(IOS_WINDOWS_TARGETS) $(foreach file,$(DOTNET_IOS_WI all-local:: .dotnet-windows dotnet:: .dotnet-windows endif -endif ## ## Common targets ## diff --git a/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/LinkNativeCodeTaskBase.cs b/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/LinkNativeCodeTaskBase.cs index 2d98e46c75ca..6d56cbe9d7aa 100644 --- a/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/LinkNativeCodeTaskBase.cs +++ b/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/LinkNativeCodeTaskBase.cs @@ -123,6 +123,7 @@ public override bool Execute () var lib = Path.GetFullPath (libSpec.ItemSpec); var libExtension = Path.GetExtension (lib).ToLowerInvariant (); switch (libExtension) { + case "": // we can get static libraries without any extensions at all case ".a": case ".o": var forceLoad = string.Equals (libSpec.GetMetadata ("ForceLoad"), "true", StringComparison.OrdinalIgnoreCase); @@ -144,7 +145,7 @@ public override bool Execute () arguments.Add (Path.GetFileNameWithoutExtension (lib)); break; default: - Log.LogError ($"Unknown library extension {libExtension} to link with for {lib}."); + Log.LogError ($"Unknown library extension '{libExtension}' to link with for {lib}."); return false; } } diff --git a/src/CoreHaptics/Enums.cs b/src/CoreHaptics/Enums.cs index 9fc009c2ce96..0d5a20160a1f 100644 --- a/src/CoreHaptics/Enums.cs +++ b/src/CoreHaptics/Enums.cs @@ -112,6 +112,7 @@ public enum CHHapticErrorCode : long { InvalidPatternData = -4813, InvalidPatternDictionary = -4814, InvalidAudioSession = -4815, + InvalidEngineParameter = -4816, InvalidParameterType = -4820, InvalidEventType = -4821, InvalidEventTime = -4822, @@ -121,6 +122,8 @@ public enum CHHapticErrorCode : long { BadEventEntry = -4830, BadParameterEntry = -4831, InvalidTime = -4840, + FileNotFound = -4851, + InsufficientPower = -4897, UnknownError = -4898, MemoryError = -4899, } @@ -145,4 +148,4 @@ public enum CHHapticEngineStoppedReason : long { GameControllerDisconnect = 6, SystemError = -1, } -} \ No newline at end of file +} diff --git a/src/UIKit/UIApplication.cs b/src/UIKit/UIApplication.cs index 211fd94fe2e1..c53e7767c7b8 100644 --- a/src/UIKit/UIApplication.cs +++ b/src/UIKit/UIApplication.cs @@ -13,8 +13,11 @@ using System.Threading; using ObjCRuntime; using System.Runtime.InteropServices; +using CoreFoundation; using Foundation; +#nullable enable + namespace UIKit { public class UIKitThreadAccessException : Exception { public UIKitThreadAccessException () : base ("UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.") @@ -34,7 +37,7 @@ partial class UIApplication : UIResponder #endif { - static Thread mainThread; + static Thread? mainThread; public static bool CheckForIllegalCrossThreadCalls = true; public static bool CheckForEventAndDelegateMismatches = true; @@ -42,7 +45,7 @@ partial class UIApplication // We link with __Internal here so that this function is interposable from third-party native libraries. // See: https://github.com/xamarin/MicrosoftInTune/issues/3 for an example. [DllImport (/*Constants.UIKitLibrary*/ "__Internal")] - extern static int UIApplicationMain (int argc, /* char[]* */ string [] argv, /* NSString* */ IntPtr principalClassName, /* NSString* */ IntPtr delegateClassName); + extern static int UIApplicationMain (int argc, /* char[]* */ string []? argv, /* NSString* */ IntPtr principalClassName, /* NSString* */ IntPtr delegateClassName); #endif // called from NSExtension.Initialize (so other, future stuff, can be added if needed) @@ -57,33 +60,31 @@ internal static void Initialize () } #if !WATCH - public static void Main (string [] args, string principalClassName, string delegateClassName) + [Obsolete ("Use the overload with 'Type' instead of 'String' parameters for type safety.")] + public static void Main (string []? args, string? principalClassName, string? delegateClassName) { - var p = NSString.CreateNative (principalClassName); - var d = NSString.CreateNative (delegateClassName); - try { - Main (args, p, d); - } finally { - // it just looks nicer to release them - NSString.ReleaseNative (d); - NSString.ReleaseNative (p); - } + var p = CFString.CreateNative (principalClassName); + var d = CFString.CreateNative (delegateClassName); + Initialize (); + UIApplicationMain (args?.Length ?? 0, args, p, d); + CFString.ReleaseNative (d); + CFString.ReleaseNative (p); } - public static void Main (string [] args, Type principalClass, Type delegateClass) + public static void Main (string []? args, Type? principalClass, Type? delegateClass) { - Main (args, principalClass == null ? null : new Class (principalClass).Name, delegateClass == null ? null : new Class (delegateClass).Name); - } - - public static void Main (string [] args) - { - Main (args, IntPtr.Zero, IntPtr.Zero); + var p = principalClass == null ? IntPtr.Zero : CFString.CreateNative (new Class (principalClass).Name); + var d = delegateClass == null ? IntPtr.Zero : CFString.CreateNative (new Class (delegateClass).Name); + Initialize (); + UIApplicationMain (args?.Length ?? 0, args, p, d); + CFString.ReleaseNative (d); + CFString.ReleaseNative (p); } - static void Main (string [] args, IntPtr principal, IntPtr @delegate) + public static void Main (string []? args) { Initialize (); - UIApplicationMain (args.Length, args, principal, @delegate); + UIApplicationMain (args?.Length ?? 0, args, IntPtr.Zero, IntPtr.Zero); } #endif @@ -101,7 +102,7 @@ internal static void EnsureEventAndDelegateAreNotMismatched (object del, Type ex throw new InvalidOperationException (string.Format("Event registration is overwriting existing delegate. Either just use events or your own delegate: {0} {1}", del.GetType (), expectedType)); } - internal static void EnsureDelegateAssignIsNotOverwritingInternalDelegate (object currentDelegateValue, object newDelegateValue, Type internalDelegateType) + internal static void EnsureDelegateAssignIsNotOverwritingInternalDelegate (object? currentDelegateValue, object? newDelegateValue, Type internalDelegateType) { if (UIApplication.CheckForEventAndDelegateMismatches && currentDelegateValue != null && newDelegateValue != null && currentDelegateValue.GetType().IsAssignableFrom (internalDelegateType) diff --git a/src/corehaptics.cs b/src/corehaptics.cs index 797f43963216..6b38ddc1f9bc 100644 --- a/src/corehaptics.cs +++ b/src/corehaptics.cs @@ -349,6 +349,10 @@ partial interface CHHapticPatternDefinitionKeys { [Field ("CHHapticPatternKeyParameterCurveControlPoints")] NSString ParameterCurveControlPointsKey { get; } + + [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Field ("CHHapticPatternKeyEventWaveformUseVolumeEnvelope")] + NSString EventWaveformUseVolumeEnvelopeKey { get; } } [Mac (10,15), iOS (13,0), TV (14, 0)] @@ -373,6 +377,9 @@ partial interface CHHapticPatternDefinition { NSObject WeakParameterCurve { get; set; } [Export ("ParameterCurveControlPointsKey")] NSObject WeakParameterCurveControlPoints { get; set; } + [Advice ("The default value is true.")] + [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + bool EventWaveformUseVolumeEnvelope { get; set; } } [Mac (10,15), iOS (13,0), TV (14, 0)] @@ -403,4 +410,20 @@ interface CHHapticPattern { [return: NullAllowed] CHHapticPatternDefinition Export ([NullAllowed] out NSError outError); } -} \ No newline at end of file + + [Static] + [Internal] + [Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15,0), NoWatch] + partial interface CHHapticAudioResourceKeys { + [Field ("CHHapticAudioResourceKeyUseVolumeEnvelope")] + NSString UseVolumeEnvelopeKey { get; } + } + + [Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15,0), NoWatch] + [StrongDictionary ("CHHapticAudioResourceKeys")] + partial interface CHHapticAudioResourceDefinition { + [Advice ("The default value is true.")] + bool UseVolumeEnvelope { get; set; } + } + +} diff --git a/src/coreml.cs b/src/coreml.cs index 5084ccd217d0..46cf3a07013d 100644 --- a/src/coreml.cs +++ b/src/coreml.cs @@ -607,6 +607,11 @@ interface MLMultiArrayConstraint : NSSecureCoding { [BaseType (typeof (NSObject))] interface MLPredictionOptions { + [Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] + [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] [Export ("usesCPUOnly")] bool UsesCpuOnly { get; set; } } diff --git a/src/coremotion.cs b/src/coremotion.cs index a4b772775c11..d5e1a22fa877 100644 --- a/src/coremotion.cs +++ b/src/coremotion.cs @@ -451,6 +451,23 @@ interface CMAltimeter { [Static] [Export ("authorizationStatus")] CMAuthorizationStatus AuthorizationStatus { get; } + + [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [Static] + [Export ("isAbsoluteAltitudeAvailable")] + bool IsAbsoluteAltitudeAvailable { get; } + + [Watch (8,0), NoTV, NoMac, iOS (15, 0), MacCatalyst (15,0)] + [Export ("absoluteAltitudeUpdateInterval")] + double AbsoluteAltitudeUpdateInterval { get; set; } + + [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [Export ("startAbsoluteAltitudeUpdatesToQueue:withHandler:")] + void StartAbsoluteAltitudeUpdates (NSOperationQueue queue, Action handler); + + [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [Export ("stopAbsoluteAltitudeUpdates")] + void StopAbsoluteAltitudeUpdates (); } [Mac (10,15)] @@ -667,7 +684,7 @@ public enum CMDeviceMotionSensorLocation : long { [iOS (14,0)][Watch (7,0)] [MacCatalyst (14,0)] - [NoMac] + [Mac (12,0)] [BaseType (typeof(NSObject))] interface CMHeadphoneMotionManager { @@ -705,7 +722,7 @@ interface ICMHeadphoneMotionManagerDelegate {} [iOS (14,0)][Watch (7,0)] [MacCatalyst (14,0)] - [NoMac] + [Mac (12,0)] [Protocol, Model (AutoGeneratedName = true)] [BaseType (typeof (NSObject))] interface CMHeadphoneMotionManagerDelegate { @@ -793,4 +810,20 @@ interface CMFallDetectionDelegate { [Export ("fallDetectionManagerDidChangeAuthorization:")] void DidChangeAuthorization (CMFallDetectionManager fallDetectionManager); } + + [DisableDefaultCtor] // will crash + [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof(CMLogItem))] + interface CMAbsoluteAltitudeData + { + [Export ("altitude")] + double Altitude { get; } + + [Export ("accuracy")] + double Accuracy { get; } + + [Export ("precision")] + double Precision { get; } + } + } diff --git a/tests/monotouch-test/dotnet/MacCatalyst/monotouch-test.csproj b/tests/monotouch-test/dotnet/MacCatalyst/monotouch-test.csproj index 9f1ff34a42eb..52993feb16fa 100644 --- a/tests/monotouch-test/dotnet/MacCatalyst/monotouch-test.csproj +++ b/tests/monotouch-test/dotnet/MacCatalyst/monotouch-test.csproj @@ -17,7 +17,6 @@ $(DefineConstants);DEVICE ..\..\.. None - -xml=${ProjectDir}/../extra-linker-defs.xml @@ -33,6 +32,8 @@ + + diff --git a/tests/monotouch-test/dotnet/iOS/monotouch-test.csproj b/tests/monotouch-test/dotnet/iOS/monotouch-test.csproj index 4cb82056add7..3561dce879d4 100644 --- a/tests/monotouch-test/dotnet/iOS/monotouch-test.csproj +++ b/tests/monotouch-test/dotnet/iOS/monotouch-test.csproj @@ -17,7 +17,6 @@ $(DefineConstants);DEVICE ..\..\.. None - -xml=${ProjectDir}/../extra-linker-defs.xml @@ -28,11 +27,17 @@ + + + + + + diff --git a/tests/monotouch-test/dotnet/tvOS/monotouch-test.csproj b/tests/monotouch-test/dotnet/tvOS/monotouch-test.csproj index e6cd1cdadea1..1d483e9d3be9 100644 --- a/tests/monotouch-test/dotnet/tvOS/monotouch-test.csproj +++ b/tests/monotouch-test/dotnet/tvOS/monotouch-test.csproj @@ -17,7 +17,6 @@ $(DefineConstants);DEVICE ..\..\.. None - -xml=${ProjectDir}/../extra-linker-defs.xml @@ -33,6 +32,8 @@ + + diff --git a/tests/mtouch/StringUtilsTest.cs b/tests/mtouch/StringUtilsTest.cs index 3b934b78c236..59bc11c7e623 100644 --- a/tests/mtouch/StringUtilsTest.cs +++ b/tests/mtouch/StringUtilsTest.cs @@ -26,5 +26,17 @@ public void ParseVersion () v = StringUtils.ParseVersion ("10.13.2"); Assert.That (v.ToString (), Is.EqualTo ("10.13.2"), "10.13.2"); } + + [Test] + public void QuoteForProcess () + { + Assert.That (StringUtils.QuoteForProcess ("a"), Is.EqualTo ("a"), "normal"); + Assert.That (StringUtils.QuoteForProcess ("😁"), Is.EqualTo ("😁"), "😁"); + Assert.That (StringUtils.QuoteForProcess ("b b"), Is.EqualTo ("\"b b\""), "space"); + Assert.That (StringUtils.QuoteForProcess ("'"), Is.EqualTo ("\"'\""), "single quote"); + Assert.That (StringUtils.QuoteForProcess ("\\"), Is.EqualTo ("\"\\\\\""), "backslash"); + Assert.That (StringUtils.QuoteForProcess ("\""), Is.EqualTo ("\"\\\"\""), "double quote"); + Assert.That (StringUtils.QuoteForProcess (@"C:\double "" quote\single ' quote\space here\"), Is.EqualTo (@"""C:\\double \"" quote\\single ' quote\\space here\\"""), "windows path"); + } } } diff --git a/tests/xtro-sharpie/MacCatalyst-CoreHaptics.todo b/tests/xtro-sharpie/MacCatalyst-CoreHaptics.todo deleted file mode 100644 index 5d37587ddc2c..000000000000 --- a/tests/xtro-sharpie/MacCatalyst-CoreHaptics.todo +++ /dev/null @@ -1,5 +0,0 @@ -!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeFileNotFound = -4851 not bound -!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInsufficientPower = -4897 not bound -!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInvalidEngineParameter = -4816 not bound -!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound -!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound diff --git a/tests/xtro-sharpie/MacCatalyst-CoreMotion.todo b/tests/xtro-sharpie/MacCatalyst-CoreMotion.todo deleted file mode 100644 index d7b7f2be72c4..000000000000 --- a/tests/xtro-sharpie/MacCatalyst-CoreMotion.todo +++ /dev/null @@ -1,9 +0,0 @@ -!missing-selector! +CMAltimeter::isAbsoluteAltitudeAvailable not bound -!missing-selector! CMAbsoluteAltitudeData::accuracy not bound -!missing-selector! CMAbsoluteAltitudeData::altitude not bound -!missing-selector! CMAbsoluteAltitudeData::precision not bound -!missing-selector! CMAltimeter::absoluteAltitudeUpdateInterval not bound -!missing-selector! CMAltimeter::setAbsoluteAltitudeUpdateInterval: not bound -!missing-selector! CMAltimeter::startAbsoluteAltitudeUpdatesToQueue:withHandler: not bound -!missing-selector! CMAltimeter::stopAbsoluteAltitudeUpdates not bound -!missing-type! CMAbsoluteAltitudeData not bound diff --git a/tests/xtro-sharpie/iOS-CoreHaptics.todo b/tests/xtro-sharpie/iOS-CoreHaptics.todo deleted file mode 100644 index 5d37587ddc2c..000000000000 --- a/tests/xtro-sharpie/iOS-CoreHaptics.todo +++ /dev/null @@ -1,5 +0,0 @@ -!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeFileNotFound = -4851 not bound -!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInsufficientPower = -4897 not bound -!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInvalidEngineParameter = -4816 not bound -!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound -!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound diff --git a/tests/xtro-sharpie/iOS-CoreML.todo b/tests/xtro-sharpie/iOS-CoreML.todo deleted file mode 100644 index 7a0513f98ce8..000000000000 --- a/tests/xtro-sharpie/iOS-CoreML.todo +++ /dev/null @@ -1,2 +0,0 @@ -!deprecated-attribute-missing! MLPredictionOptions::setUsesCPUOnly: missing a [Deprecated] attribute -!deprecated-attribute-missing! MLPredictionOptions::usesCPUOnly missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/iOS-CoreMotion.todo b/tests/xtro-sharpie/iOS-CoreMotion.todo deleted file mode 100644 index d7b7f2be72c4..000000000000 --- a/tests/xtro-sharpie/iOS-CoreMotion.todo +++ /dev/null @@ -1,9 +0,0 @@ -!missing-selector! +CMAltimeter::isAbsoluteAltitudeAvailable not bound -!missing-selector! CMAbsoluteAltitudeData::accuracy not bound -!missing-selector! CMAbsoluteAltitudeData::altitude not bound -!missing-selector! CMAbsoluteAltitudeData::precision not bound -!missing-selector! CMAltimeter::absoluteAltitudeUpdateInterval not bound -!missing-selector! CMAltimeter::setAbsoluteAltitudeUpdateInterval: not bound -!missing-selector! CMAltimeter::startAbsoluteAltitudeUpdatesToQueue:withHandler: not bound -!missing-selector! CMAltimeter::stopAbsoluteAltitudeUpdates not bound -!missing-type! CMAbsoluteAltitudeData not bound diff --git a/tests/xtro-sharpie/macOS-CoreHaptics.ignore b/tests/xtro-sharpie/macOS-CoreHaptics.ignore index bc2497ff6f6f..ec7aba5f84a7 100644 --- a/tests/xtro-sharpie/macOS-CoreHaptics.ignore +++ b/tests/xtro-sharpie/macOS-CoreHaptics.ignore @@ -113,3 +113,5 @@ !missing-type! CHHapticParameterCurve not bound !missing-type! CHHapticParameterCurveControlPoint not bound !missing-type! CHHapticPattern not bound +!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound +!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound diff --git a/tests/xtro-sharpie/macOS-CoreHaptics.todo b/tests/xtro-sharpie/macOS-CoreHaptics.todo deleted file mode 100644 index f9deeb8342e5..000000000000 --- a/tests/xtro-sharpie/macOS-CoreHaptics.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound -!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound diff --git a/tests/xtro-sharpie/macOS-CoreMotion.todo b/tests/xtro-sharpie/macOS-CoreMotion.todo deleted file mode 100644 index 5e4f48bf7cb7..000000000000 --- a/tests/xtro-sharpie/macOS-CoreMotion.todo +++ /dev/null @@ -1,11 +0,0 @@ -!missing-protocol! CMHeadphoneMotionManagerDelegate not bound -!missing-selector! +CMHeadphoneMotionManager::authorizationStatus not bound -!missing-selector! CMHeadphoneMotionManager::delegate not bound -!missing-selector! CMHeadphoneMotionManager::deviceMotion not bound -!missing-selector! CMHeadphoneMotionManager::isDeviceMotionActive not bound -!missing-selector! CMHeadphoneMotionManager::isDeviceMotionAvailable not bound -!missing-selector! CMHeadphoneMotionManager::setDelegate: not bound -!missing-selector! CMHeadphoneMotionManager::startDeviceMotionUpdates not bound -!missing-selector! CMHeadphoneMotionManager::startDeviceMotionUpdatesToQueue:withHandler: not bound -!missing-selector! CMHeadphoneMotionManager::stopDeviceMotionUpdates not bound -!missing-type! CMHeadphoneMotionManager not bound diff --git a/tests/xtro-sharpie/tvOS-CoreHaptics.todo b/tests/xtro-sharpie/tvOS-CoreHaptics.todo deleted file mode 100644 index 5d37587ddc2c..000000000000 --- a/tests/xtro-sharpie/tvOS-CoreHaptics.todo +++ /dev/null @@ -1,5 +0,0 @@ -!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeFileNotFound = -4851 not bound -!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInsufficientPower = -4897 not bound -!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInvalidEngineParameter = -4816 not bound -!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound -!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound diff --git a/tests/xtro-sharpie/tvOS-CoreML.todo b/tests/xtro-sharpie/tvOS-CoreML.todo deleted file mode 100644 index 7a0513f98ce8..000000000000 --- a/tests/xtro-sharpie/tvOS-CoreML.todo +++ /dev/null @@ -1,2 +0,0 @@ -!deprecated-attribute-missing! MLPredictionOptions::setUsesCPUOnly: missing a [Deprecated] attribute -!deprecated-attribute-missing! MLPredictionOptions::usesCPUOnly missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/watchOS-CoreML.todo b/tests/xtro-sharpie/watchOS-CoreML.todo deleted file mode 100644 index 7a0513f98ce8..000000000000 --- a/tests/xtro-sharpie/watchOS-CoreML.todo +++ /dev/null @@ -1,2 +0,0 @@ -!deprecated-attribute-missing! MLPredictionOptions::setUsesCPUOnly: missing a [Deprecated] attribute -!deprecated-attribute-missing! MLPredictionOptions::usesCPUOnly missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/watchOS-CoreMotion.todo b/tests/xtro-sharpie/watchOS-CoreMotion.todo deleted file mode 100644 index d7b7f2be72c4..000000000000 --- a/tests/xtro-sharpie/watchOS-CoreMotion.todo +++ /dev/null @@ -1,9 +0,0 @@ -!missing-selector! +CMAltimeter::isAbsoluteAltitudeAvailable not bound -!missing-selector! CMAbsoluteAltitudeData::accuracy not bound -!missing-selector! CMAbsoluteAltitudeData::altitude not bound -!missing-selector! CMAbsoluteAltitudeData::precision not bound -!missing-selector! CMAltimeter::absoluteAltitudeUpdateInterval not bound -!missing-selector! CMAltimeter::setAbsoluteAltitudeUpdateInterval: not bound -!missing-selector! CMAltimeter::startAbsoluteAltitudeUpdatesToQueue:withHandler: not bound -!missing-selector! CMAltimeter::stopAbsoluteAltitudeUpdates not bound -!missing-type! CMAbsoluteAltitudeData not bound diff --git a/tools/common/StringUtils.cs b/tools/common/StringUtils.cs index 90f4436d2c6e..baf9fef5df31 100644 --- a/tools/common/StringUtils.cs +++ b/tools/common/StringUtils.cs @@ -84,7 +84,6 @@ public static string QuoteForProcess (string f) foreach (var c in f) { if (c == '"') { s.Append ('\\'); - s.Append (c).Append (c); } else if (c == '\\') { s.Append (c); } diff --git a/tools/devops/automation/templates/build/build.yml b/tools/devops/automation/templates/build/build.yml index d669d233324c..e655d0113ef1 100644 --- a/tools/devops/automation/templates/build/build.yml +++ b/tools/devops/automation/templates/build/build.yml @@ -280,7 +280,7 @@ steps: if [[ "$EnableDotNet" == "True" ]]; then echo "Enabling dotnet builds." - CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-dotnet --enable-dotnet-windows" + CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-dotnet" fi CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-install-source" diff --git a/tools/devops/automation/templates/mac/build.yml b/tools/devops/automation/templates/mac/build.yml index 0fa3c3db47ae..0b1bc56b8b1f 100644 --- a/tools/devops/automation/templates/mac/build.yml +++ b/tools/devops/automation/templates/mac/build.yml @@ -77,11 +77,11 @@ steps: Import-Module ./VSTS.psm1 Import-Module ./GitHub.psm1 if ( -not (Test-HDFreeSpace -Size 5)) { - Set-GitHubStatus -Status "error" -Description "Not enough free space in the host." -Context "macOS $Env:CONTEXT" + Set-GitHubStatus -Status "error" -Description "Not enough free space in the host." -Context "$Env:CONTEXT" New-GitHubComment -Header "Tests failed catastrophically on $Env:CONTEXT" -Emoji ":fire:" -Description "Not enough free space in the host." Stop-Pipeline } else { - Set-GitHubStatus -Status "pending" -Description "Tests on on VSTS have been started." -Context "macOS $Env:CONTEXT" + Set-GitHubStatus -Status "pending" -Description "Tests $Env:CONTEXT on VSTS have been started." -Context "$Env:CONTEXT" } env: BUILD_REVISION: $(Build.SourceVersion)