Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CoreImage] Update Xcode 13.0 bindings betas 1 and 3 #12601

Merged
merged 6 commits into from Sep 15, 2021

Conversation

rachelkang
Copy link
Contributor

@rachelkang rachelkang commented Aug 31, 2021

No updates for betas 2, 4, 5

Unclear of Catalyst availability for APIs left in todo/backlog - xtro indicates availability, but I haven't found anything in header files or web docs

@rachelkang rachelkang added the note-highlight Worth calling out specifically in release notes label Aug 31, 2021
@rachelkang rachelkang added this to the xcode13.0 milestone Aug 31, 2021
src/coreimage.cs Outdated
// [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)]
// [Wrap ("GetHeif10Representation (This, image, colorSpace, options.GetDictionary ()!, out error)")]
// [return: NullAllowed]
// NSData GetHeif10Representation (CIImage image, CGColorSpace colorSpace, NSDictionary<NSString, NSObject> options, [NullAllowed] out NSError errorPtr);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do I need to comment in these wrappers? haven't hit any issues yet, but similar existing methods (see below) have them

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are they commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added them in as comments, because I wanted to ask about them / thought I might need to add them

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they should be uncommented
the wrapper let developer uses the CIImageRepresentationOptions strongly-typed class instead of the weakly-typed NSDictionary

Copy link
Contributor

@spouliot spouliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Minor changes

I'll be trying it locally to reproduce the intro error!

src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
tests/xtro-sharpie/common-CoreImage.ignore Show resolved Hide resolved
src/coreimage.cs Outdated
// [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)]
// [Wrap ("GetHeif10Representation (This, image, colorSpace, options.GetDictionary ()!, out error)")]
// [return: NullAllowed]
// NSData GetHeif10Representation (CIImage image, CGColorSpace colorSpace, NSDictionary<NSString, NSObject> options, [NullAllowed] out NSError errorPtr);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are they commented out?

src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
src/coreimage.cs Outdated Show resolved Hide resolved
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

8 tests failed, 102 tests passed.

Failed tests

  • introspection/Mac Modern/Debug: Failed (Test run failed.
    Tests run: 37 Passed: 35 Inconclusive: 0 Failed: 1 Ignored: 1)
  • introspection/Mac [dotnet]/Debug [dotnet]: Failed (Test run failed.
    Tests run: 37 Passed: 33 Inconclusive: 0 Failed: 1 Ignored: 3)
  • introspection/Mac Catalyst/Debug [dotnet]: Failed (Tests run: 44 Passed: 40 Inconclusive: 0 Failed: 1 Ignored: 3)
  • introspection/Mac Catalyst/Debug: Failed (Tests run: 44 Passed: 39 Inconclusive: 0 Failed: 1 Ignored: 4)
  • introspection/iOS Unified 64-bits - simulator/Debug: Failed
  • introspection/tvOS - simulator/Debug: Failed
  • introspection/iOS Unified 64-bits - simulator/Debug (iOS 11.4): Failed
  • introspection/tvOS - simulator/Debug (tvOS 11.4): Failed

Pipeline on Agent XAMBOT-1104.BigSur'
Merge 47e5e4a into 066d5b5

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

10 tests failed, 100 tests passed.

Failed tests

  • introspection/Mac Modern/Debug: Failed (Test run failed.
    Tests run: 37 Passed: 35 Inconclusive: 0 Failed: 1 Ignored: 1)
  • introspection/Mac [dotnet]/Debug [dotnet]: Failed (Test run failed.
    Tests run: 37 Passed: 33 Inconclusive: 0 Failed: 1 Ignored: 3)
  • introspection/Mac Catalyst/Debug [dotnet]: Failed (Tests run: 44 Passed: 40 Inconclusive: 0 Failed: 1 Ignored: 3)
  • introspection/Mac Catalyst/Debug: Failed (Tests run: 44 Passed: 39 Inconclusive: 0 Failed: 1 Ignored: 4)
  • introspection/iOS Unified 64-bits - simulator/Debug: Failed
  • introspection/tvOS - simulator/Debug: Failed
  • introspection/iOS Unified 64-bits - simulator/Debug (iOS 11.4): Failed
  • introspection/tvOS - simulator/Debug (tvOS 11.4): Failed
  • dont link/Mac Catalyst/Debug [dotnet]: Failed (Test run crashed (exit code: 134).
    Tests run: 11 Passed: 6 Inconclusive: 0 Failed: 0 Ignored: 5)
  • xcframework-test/Mac Catalyst/Debug: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)

Pipeline on Agent XAMBOT-1104.BigSur'
Merge 26d9ae8 into cda8808

src/coreimage.cs Outdated
[Static]
[Export ("filterWithImageURL:")]
[return: NullAllowed]
CIRawFilter Filter (NSUrl url);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method will not filter the url, it will create a filter from the url
rename if to Create

src/coreimage.cs Outdated
[Static]
[Export ("filterWithImageData:identifierHint:")]
[return: NullAllowed]
CIRawFilter Filter (NSData data, [NullAllowed] string identifierHint);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

src/coreimage.cs Outdated
[Static]
[Export ("filterWithCVPixelBuffer:properties:")]
[return: NullAllowed]
CIRawFilter Filter (CVPixelBuffer buffer, NSDictionary properties);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

8 tests failed, 102 tests passed.

Failed tests

  • introspection/Mac Modern/Debug: Failed (Test run failed.
    Tests run: 37 Passed: 35 Inconclusive: 0 Failed: 1 Ignored: 1)
  • introspection/Mac [dotnet]/Debug [dotnet]: Failed (Test run failed.
    Tests run: 37 Passed: 33 Inconclusive: 0 Failed: 1 Ignored: 3)
  • introspection/Mac Catalyst/Debug [dotnet]: Failed (Tests run: 44 Passed: 40 Inconclusive: 0 Failed: 1 Ignored: 3)
  • introspection/Mac Catalyst/Debug: Failed (Tests run: 44 Passed: 39 Inconclusive: 0 Failed: 1 Ignored: 4)
  • introspection/iOS Unified 64-bits - simulator/Debug: Failed
  • introspection/tvOS - simulator/Debug: Failed
  • introspection/iOS Unified 64-bits - simulator/Debug (iOS 11.4): Failed
  • introspection/tvOS - simulator/Debug (tvOS 11.4): Failed

Pipeline on Agent XAMBOT-1104.BigSur'
Merge fc03174 into 3fc6b06

Copy link
Contributor

@spouliot spouliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure the comments for CIRawFilter are part of the committed message (when you merge), otherwise they'll be hard to find

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 109 tests passed.

Failed tests

  • monotouch-test/watchOS 32-bits - simulator/Release (all optimizations): Failed

Pipeline on Agent XAMBOT-1104.BigSur'
Merge b3869af into 14b77dc

src/coreimage.cs Outdated
@@ -430,7 +430,7 @@ interface CIContext_ImageRepresentation {
[Wrap ("GetJpegRepresentation (This, image, colorSpace, options.GetDictionary ()!)")]
[return: NullAllowed]
NSData GetJpegRepresentation (CIImage image, CGColorSpace colorSpace, CIImageRepresentationOptions options);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is an extra space with this newline or if it is just a newline!

src/coreimage.cs Outdated
[TV (10,0)]
[Static]
[Internal]
interface CIRawFilterKeys {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra newline

Copy link
Contributor

@tj-devel709 tj-devel709 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left two small whitespace suggestions!

@rolfbjarne
Copy link
Member

This looks great!

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

4 tests failed, 100 tests passed.

Failed tests

  • introspection/Mac Catalyst [dotnet]/Debug [dotnet]: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)
  • dont link/Mac Catalyst [dotnet]/Debug [dotnet]: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)
  • link sdk/tvOS - simulator/Debug: Failed
  • link sdk/tvOS - simulator/Release: Failed

Pipeline on Agent XAMBOT-1096.BigSur'
Merge 017862e into c2fda6e

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

4 tests failed, 100 tests passed.

Failed tests

  • link sdk/Mac Catalyst [dotnet]/Debug [dotnet]: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)
  • link sdk/tvOS - simulator/Debug: Failed
  • link sdk/tvOS - simulator/Release: Failed
  • Xtro/Mac: BuildFailure

Pipeline on Agent XAMBOT-1102.BigSur'
Merge f58039f into 97e2e00

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

2 tests failed, 102 tests passed.

Failed tests

  • link sdk/tvOS - simulator/Debug: Failed
  • link sdk/tvOS - simulator/Release: Failed

Pipeline on Agent XAMBOT-1096.BigSur'
Merge 19dcf3f into 55e8c60

from Sebastien: "most filters are key-based natively (not-NSObject subclasses)) and we expose them as C# _user-type_ CIFilter-subclasses in recent years _most_ filters have also been exposed natively as protocols (not classes), we expose them as `*Protocol` interface types `CIRAWFilter` is a special case, it's a native `CIFilter` subclass so we're not using [CoreImageFilter] and [CoreImageFilterProperty] attributes to define it which also means we cannot use the "extra" tests to validate the filter properties. So we skip it here. Do not fear it's still tested, like any _normal_, NSObject subclass we have bound :-)"
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

3 tests failed, 101 tests passed.

Failed tests

  • Xtro/Mac: BuildFailure
  • link sdk/tvOS - simulator/Debug: Failed
  • link sdk/tvOS - simulator/Release: Failed

Pipeline on Agent XAMBOT-1106.BigSur'
Merge fba8fe6 into aadd532

@rachelkang
Copy link
Contributor Author

xtro and intro tests are all passing beautifully

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

3 tests failed, 101 tests passed.

Failed tests

  • dont link/Mac Catalyst [dotnet]/Debug [dotnet]: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)
  • link sdk/tvOS - simulator/Debug: Failed
  • link sdk/tvOS - simulator/Release: Failed

Pipeline on Agent XAMBOT-1104.BigSur'
Merge f1e8f01 into 71d2edb

Copy link
Contributor

@spouliot spouliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't forget the CIRAWFilter comments in your commit message!

@rachelkang
Copy link
Contributor Author

@rachelkang rachelkang merged commit b9cde5e into xamarin:main Sep 15, 2021
@dalexsoto dalexsoto added this to September 2021 in Xcode 13 Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
note-highlight Worth calling out specifically in release notes
Projects
No open projects
Xcode 13
September 2021
Development

Successfully merging this pull request may close these issues.

None yet

7 participants