Skip to content

Commit

Permalink
Merge branch 'xcode14' into videosubscriberaccount-xcode14
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque authored Jul 20, 2022
2 parents 4a6000f + 5814da5 commit b9dd5ad
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 70 deletions.
31 changes: 31 additions & 0 deletions src/vision.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ namespace Vision {
[TV (11,0), Mac (10,13), iOS (11,0)]
[Native]
enum VNErrorCode : long {
TuriCore = -1,
Ok = 0,
RequestCancelled,
InvalidFormat,
Expand All @@ -59,6 +60,7 @@ enum VNErrorCode : long {
DataUnavailable,
TimeStampNotFound,
UnsupportedRequest,
Timeout,
}

[TV (11,0), Mac (10,13), iOS (11,0)]
Expand All @@ -74,6 +76,10 @@ enum VNImageCropAndScaleOption : ulong {
CenterCrop = 0,
ScaleFit = 1,
ScaleFill = 2,
[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
ScaleFitRotate90Ccw = 256 + ScaleFit,
[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
ScaleFillRotate90Ccw = 256 + ScaleFill,
}

[TV (11,0), Mac (10,13), iOS (11,0)]
Expand Down Expand Up @@ -669,6 +675,15 @@ enum VSUserAccountQueryOption : ulong {
None = 0,
AllDevices,
}

[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Native]
public enum VNPointsClassification : long
{
Disconnected = 0,
OpenPath,
ClosedPath,
}

[TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[BaseType (typeof(VNDetectedObjectObservation))]
Expand Down Expand Up @@ -1088,6 +1103,10 @@ interface VNFaceLandmarkRegion2D {
[BindAs (typeof (nfloat []))]
[NullAllowed, Export ("precisionEstimatesPerPoint")]
NSNumber [] PrecisionEstimatesPerPoint { get; }

[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Export ("pointsClassification")]
VNPointsClassification PointsClassification { get; }
}

[TV (11,0), Mac (10,13), iOS (11,0)]
Expand Down Expand Up @@ -1844,6 +1863,10 @@ interface VNHorizonObservation {

[Export ("angle")]
nfloat Angle { get; }

[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Export ("transformForImageWidth:height:")]
CGAffineTransform CreateTransform (nuint width, nuint height);
}

[TV (11,0), Mac (10,13), iOS (11,0)]
Expand Down Expand Up @@ -2836,6 +2859,10 @@ interface VNRecognizeTextRequest : VNRequestProgressProviding {
[Static]
[Export ("currentRevision")]
VNRecognizeTextRequestRevision CurrentRevision { get; }

[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Export ("automaticallyDetectsLanguage")]
bool AutomaticallyDetectsLanguage { get; set; }
}

[TV (13,0), Mac (10,15), iOS (13,0)]
Expand Down Expand Up @@ -3484,6 +3511,10 @@ interface VNGenerateOpticalFlowRequest {
[Static]
[Export ("currentRevision")]
VNGenerateOpticalFlowRequestRevision CurrentRevision { get; }

[TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)]
[Export ("keepNetworkOutput")]
bool KeepNetworkOutput { get; set; }
}

[TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
Expand Down
11 changes: 0 additions & 11 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-Vision.todo

This file was deleted.

11 changes: 0 additions & 11 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-Vision.todo

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# bound in previous versions but removed in xcode 14
!extra-enum-value! Managed value 1 for CTFontTableOptions.ExcludeSynthetic is available for the current platform while the value in the native header is not
!extra-enum-value! Managed value 10 for CTParagraphStyleSpecifier.LineSpacing is available for the current platform while the value in the native header is not
11 changes: 0 additions & 11 deletions tests/xtro-sharpie/api-annotations-dotnet/tvOS-Vision.todo

This file was deleted.

11 changes: 0 additions & 11 deletions tests/xtro-sharpie/iOS-Vision.todo

This file was deleted.

11 changes: 0 additions & 11 deletions tests/xtro-sharpie/macOS-Vision.todo

This file was deleted.

11 changes: 0 additions & 11 deletions tests/xtro-sharpie/tvOS-Vision.todo

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ steps:
gitHubToken: ${{ parameters.gitHubToken }}
xqaCertPass: ${{ parameters.xqaCertPass }}
enableDotnet: ${{ parameters.enableDotnet }}
makeParallelism: '4'

# detect changes
- bash: $(Build.SourcesDirectory)/xamarin-macios/tools/devops/automation/scripts/bash/compare.sh
Expand Down
12 changes: 10 additions & 2 deletions tools/devops/automation/templates/build/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ parameters:
type: stepList
default: []

- name: makeParallelism
type: string
default: '8'

steps:

- template: ../common/checkout.yml
Expand Down Expand Up @@ -252,8 +256,12 @@ steps:
MAKE_FLAGS="V=1 -w"
fi
time make -C $(Build.SourcesDirectory)/xamarin-macios/ all -j8 $MAKE_FLAGS
time make -C $(Build.SourcesDirectory)/xamarin-macios/ install -j8 $MAKE_FLAGS
if test -z "$makeParallelism"; then
makeParallelism=8
fi
time make -C $(Build.SourcesDirectory)/xamarin-macios/ all -j$makeParallelism $MAKE_FLAGS
time make -C $(Build.SourcesDirectory)/xamarin-macios/ install -j$makeParallelism $MAKE_FLAGS
name: build
displayName: 'Build'
timeoutInMinutes: 300
Expand Down

0 comments on commit b9dd5ad

Please sign in to comment.