-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sensorkit] Update for Xcode 12 beta 2 (#9142)
- Loading branch information
Showing
11 changed files
with
898 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
namespace SensorKit { | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[iOS (14,0)] | ||
public static class SRAbsoluteTime { | ||
|
||
[DllImport (Constants.SensorKitLibrary, EntryPoint = "SRAbsoluteTimeGetCurrent")] | ||
public static extern /* SRAbsoluteTime */ double GetCurrent (); | ||
|
||
[DllImport (Constants.SensorKitLibrary, EntryPoint = "SRAbsoluteTimeFromCFAbsoluteTime")] | ||
public static extern /* SRAbsoluteTime */ double FromCFAbsoluteTime (/* CFAbsoluteTime */ double cfAbsoluteTime); | ||
|
||
[DllImport (Constants.SensorKitLibrary, EntryPoint = "SRAbsoluteTimeToCFAbsoluteTime")] | ||
public static extern /* CFAbsoluteTime */ double ToCFAbsoluteTime (double srAbsoluteTime); | ||
|
||
[DllImport (Constants.SensorKitLibrary, EntryPoint = "SRAbsoluteTimeFromContinuousTime")] | ||
public static extern /* SRAbsoluteTime */ double FromContinuousTime (ulong continuousTime); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
namespace SensorKit { | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[iOS (14,0)] | ||
[StructLayout (LayoutKind.Sequential)] | ||
public struct SRAmbientLightChromaticity { | ||
public float X; | ||
public float Y; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
namespace SensorKit { | ||
|
||
public partial class SRSensorExtensions { | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[iOS (14,0)] | ||
public static SRSensor GetSensorForDeletionRecords (this SRSensor self) | ||
{ | ||
var constant = self.GetConstant (); | ||
if (constant == null) | ||
return SRSensor.Invalid; | ||
return GetValue (constant._GetSensorForDeletionRecordsFromSensor ()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f36b2ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Build was (probably) aborted
🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Running XM tests on '10.16', Running XM tests on '10.14', Running XM tests on '10.14'' 🔥
✅ Build succeeded
✅ Packages:
✅ API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)
🔥 Xamarin.Mac tests on 10.16 failed: Xamarin.Mac tests on macOS 10.16 failed (dontlink, apitest, introspection, linksdk, linkall, xammac_tests, dontlink (system)) 🔥
🔥 Xamarin.Mac tests on 10.14 failed: Xamarin.Mac tests on macOS 10.14 failed (xammac_tests) 🔥
🔥 Test run failed 🔥
Test results
2 tests failed, 183 tests passed.
Failed tests