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

[foundation] Add support for NSValue/CGAffineTransform and StoreValueAtAddress overload #6887

Merged

Conversation

spouliot
Copy link
Contributor

Support for NSValue/CGAffineTransform exists in iOS/tvOS/watchOS,
from UIKit, but not for macOS. However this will be required for the
new protocols inside CoreImage.

Also add an overload for StoreValueAtAddress since the original
one was deprecated but we did not provide the new alternative to
update the code.

…AtAddress overload

Support for `NSValue`/`CGAffineTransform` exists in iOS/tvOS/watchOS,
from UIKit, but not for macOS. However this will be required for the
new protocols inside CoreImage.

Also add an overload for `StoreValueAtAddress` since the original
one was deprecated but we did not provide the new alternative to
update the code.
@spouliot spouliot added this to the xcode11 milestone Aug 30, 2019
@spouliot spouliot added the not-notes-worthy Ignore for release notes label Aug 30, 2019
extern static IntPtr xamarin_encode_CGAffineTransform ();

// The `+valueWithCGAffineTransform:` selector comes from UIKit and is not available on macOS
public unsafe static NSValue FromCGAffineTransform (CGAffineTransform tran)
Copy link
Member

Choose a reason for hiding this comment

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

Style: complete word as parameter name - transform

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I thought about it - but it's the current name for iOS/tvOS/watchOS :(
so I decided to be consistent

@monojenkins
Copy link
Collaborator

Build failure
Build failed or was aborted

🔥 Build failed 🔥

@spouliot
Copy link
Contributor Author

Looks like mono's sn failed

16:32:22 ERROR: Unknown error during processing: System.NullReferenceException: Object reference not set to an instance of an object
16:32:22   at Mono.Security.StrongName.Sign (System.String fileName) [0x0001c] in <671a0913fb8b438bb20784f6952937df>:0 
16:32:22   at Mono.Tools.SN.ReSign (System.String assemblyName, System.Security.Cryptography.RSA key, System.Boolean quiet) [0x00066] in <7baa683e831147619d6d60cc01446d70>:0 
16:32:22   at Mono.Tools.SN.Process (System.String[] args) [0x0068d] in <7baa683e831147619d6d60cc01446d70>:0 
16:32:22   at Mono.Tools.SN.Main (System.String[] args) [0x00013] in <7baa683e831147619d6d60cc01446d70>:0 
16:32:22 make[10]: *** [../../../class/lib/xammac_net_4_5/nunitlite.dll] Error 1
16:32:22 make[9]: *** [do-all] Error 2
16:32:22 make[8]: *** [all-recursive] Error 1
16:32:22 make[7]: *** [../../build/deps/nunit-xammac_net_4_5.stamp] Error 2
16:32:22 make[7]: *** Waiting for unfinished jobs....

@spouliot
Copy link
Contributor Author

build

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)
🔥 Test run failed 🔥

Test results

8 tests failed, 83 tests passed.

Failed tests

  • Xtro/Mac: BuildFailure
  • monotouch-test/iOS Unified 32-bits - simulator/Debug: Failed
  • monotouch-test/iOS Unified 32-bits - simulator/Debug (static registrar): Failed
  • monotouch-test/iOS Unified 32-bits - simulator/Release (all optimizations): Failed
  • monotouch-test/iOS Unified 64-bits - simulator/Debug: Failed
  • monotouch-test/iOS Unified 64-bits - simulator/Release (all optimizations): Failed
  • monotouch-test/tvOS - simulator/Debug: Failed
  • monotouch-test/tvOS - simulator/Release (all optimizations): Failed

@monojenkins
Copy link
Collaborator

Build success
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)
Test run succeeded

@spouliot spouliot merged commit 9e193ea into xamarin:xcode11 Aug 30, 2019
@spouliot spouliot deleted the xcode11-foundation-extra-for-coreimage branch August 30, 2019 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-notes-worthy Ignore for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants