-
Notifications
You must be signed in to change notification settings - Fork 548
[SharedWithYouCore] Add new framework for xcode14. #15634
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
Merged
mandel-macaque
merged 7 commits into
dotnet:xcode14
from
mandel-macaque:sharedwithyoucore-xcode14-beta4
Aug 8, 2022
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
950ca15
[SharedWithYouCore] Add new framework for xcode14.
mandel-macaque 47250e1
Merge branch 'xcode14' into sharedwithyoucore-xcode14-beta4
mandel-macaque 53fc4b1
Fix intro failures and address reviews.
mandel-macaque 5cb2c04
Update src/sharedwithyoucore.cs
mandel-macaque c4f4812
Merge branch 'xcode14' into sharedwithyoucore-xcode14-beta4
mandel-macaque 2206d7a
Merge branch 'xcode14' into sharedwithyoucore-xcode14-beta4
mandel-macaque e099556
Fix some xtro issues.
mandel-macaque File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,259 @@ | ||
| // | ||
| // SharedWithYouCore C# bindings | ||
| // | ||
| // Authors: | ||
| // Manuel de la Pena Saenz <[email protected]> | ||
| // | ||
| // Copyright 2022 Microsoft Corporation All rights reserved. | ||
| // | ||
|
|
||
| using System; | ||
|
|
||
| using AVFoundation; | ||
| using CoreFoundation; | ||
| using Foundation; | ||
| using ObjCRuntime; | ||
|
|
||
| #if !NET | ||
| using NativeHandle = System.IntPtr; | ||
| #endif | ||
|
|
||
| namespace SharedWithYouCore { | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (NSObject))] | ||
| interface SWAction : NSCopying, NSSecureCoding { | ||
| [Export ("uuid")] | ||
| NSUuid Uuid { get; } | ||
|
|
||
| [Export ("complete")] | ||
| bool Complete { [Bind ("isComplete")] get; } | ||
|
|
||
| [Export ("fulfill")] | ||
| void Fulfill (); | ||
|
|
||
| [Export ("fail")] | ||
| void Fail (); | ||
| } | ||
|
|
||
| interface ISWCollaborationActionHandler {} | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [Protocol] | ||
| [DisableDefaultCtor] | ||
| interface SWCollaborationActionHandler { | ||
| [Abstract] | ||
| [Export ("collaborationCoordinator:handleStartCollaborationAction:")] | ||
| void HandleStartCollaborationAction (SWCollaborationCoordinator coordinator, SWStartCollaborationAction action); | ||
|
|
||
| [Abstract] | ||
| [Export ("collaborationCoordinator:handleUpdateCollaborationParticipantsAction:")] | ||
| void HandleUpdateCollaborationParticipantsAction (SWCollaborationCoordinator coordinator, SWUpdateCollaborationParticipantsAction action); | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (NSObject))] | ||
| [DisableDefaultCtor] | ||
| interface SWCollaborationCoordinator { | ||
| [Static] | ||
| [Export ("sharedCoordinator", ArgumentSemantic.Strong)] | ||
| SWCollaborationCoordinator SharedCoordinator { get; } | ||
|
|
||
| [NullAllowed, Export ("actionHandler", ArgumentSemantic.Weak)] | ||
| ISWCollaborationActionHandler ActionHandler { get; set; } | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (NSObject))] | ||
| [DisableDefaultCtor] | ||
| interface SWCollaborationOption : NSCopying, NSSecureCoding { | ||
| [Export ("title")] | ||
| string Title { get; set; } | ||
|
|
||
| [Export ("identifier")] | ||
| string Identifier { get; } | ||
|
|
||
| [Export ("subtitle")] | ||
| string Subtitle { get; set; } | ||
|
|
||
| [Export ("selected")] | ||
| bool Selected { [Bind ("isSelected")] get; set; } | ||
|
|
||
| [Export ("requiredOptionsIdentifiers", ArgumentSemantic.Copy)] | ||
| string[] RequiredOptionsIdentifiers { get; set; } | ||
|
|
||
| [Export ("initWithTitle:identifier:")] | ||
| [DesignatedInitializer] | ||
| NativeHandle Constructor (string title, string identifier); | ||
|
|
||
| [Static] | ||
| [Export ("optionWithTitle:identifier:")] | ||
| SWCollaborationOption Create (string title, string identifier); | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (NSObject))] | ||
| [DisableDefaultCtor] | ||
| interface SWCollaborationOptionsGroup : NSCopying, NSSecureCoding { | ||
|
|
||
| [Field ("UTCollaborationOptionsTypeIdentifier")] | ||
| NSString TypeIdentifier { get; } | ||
|
|
||
| [Export ("title")] | ||
| string Title { get; set; } | ||
|
|
||
| [Export ("identifier")] | ||
| string Identifier { get; } | ||
|
|
||
| [Export ("footer")] | ||
| string Footer { get; set; } | ||
|
|
||
| [Export ("options", ArgumentSemantic.Copy)] | ||
| SWCollaborationOption[] Options { get; set; } | ||
|
|
||
| [Export ("initWithIdentifier:options:")] | ||
| [DesignatedInitializer] | ||
| NativeHandle Constructor (string identifier, SWCollaborationOption[] options); | ||
|
|
||
| [Static] | ||
| [Export ("optionsGroupWithIdentifier:options:")] | ||
| SWCollaborationOptionsGroup Create (string identifier, SWCollaborationOption[] options); | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (SWCollaborationOptionsGroup))] | ||
| interface SWCollaborationOptionsPickerGroup { | ||
|
|
||
| [Export ("initWithIdentifier:options:")] | ||
| [DesignatedInitializer] | ||
| NativeHandle Constructor (string identifier, SWCollaborationOption[] options); | ||
|
|
||
| [Export ("selectedOptionIdentifier", ArgumentSemantic.Strong)] | ||
| string SelectedOptionIdentifier { get; set; } | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (NSObject))] | ||
| [DisableDefaultCtor] | ||
| interface SWCollaborationShareOptions : NSCopying, NSSecureCoding { | ||
| [Export ("optionsGroups", ArgumentSemantic.Copy)] | ||
| SWCollaborationOptionsGroup[] OptionsGroups { get; set; } | ||
|
|
||
| [Export ("summary")] | ||
| string Summary { get; set; } | ||
|
|
||
| [Export ("initWithOptionsGroups:summary:")] | ||
| [DesignatedInitializer] | ||
| NativeHandle Constructor (SWCollaborationOptionsGroup[] optionsGroups, string summary); | ||
|
|
||
| [Export ("initWithOptionsGroups:")] | ||
| NativeHandle Constructor (SWCollaborationOptionsGroup[] optionsGroups); | ||
|
|
||
| [Static] | ||
| [Export ("shareOptionsWithOptionsGroups:summary:")] | ||
| SWCollaborationShareOptions Create (SWCollaborationOptionsGroup[] optionsGroups, string summary); | ||
|
|
||
| [Static] | ||
| [Export ("shareOptionsWithOptionsGroups:")] | ||
| SWCollaborationShareOptions Create (SWCollaborationOptionsGroup[] optionsGroups); | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (NSObject))] | ||
| [DisableDefaultCtor] | ||
| interface SWCollaborationMetadata : NSSecureCoding, NSCopying, NSMutableCopying { | ||
| [Export ("collaborationIdentifier")] | ||
| string CollaborationIdentifier { get; } | ||
|
|
||
| [Export ("localIdentifier")] | ||
| string LocalIdentifier { get; } | ||
|
|
||
| [NullAllowed, Export ("title")] | ||
| string Title { get; set; } | ||
|
|
||
| [NullAllowed, Export ("defaultShareOptions", ArgumentSemantic.Copy)] | ||
| SWCollaborationShareOptions DefaultShareOptions { get; set; } | ||
|
|
||
| [NullAllowed, Export ("userSelectedShareOptions", ArgumentSemantic.Copy)] | ||
| SWCollaborationShareOptions UserSelectedShareOptions { get; set; } | ||
|
|
||
| [NullAllowed, Export ("initiatorHandle")] | ||
| string InitiatorHandle { get; set; } | ||
|
|
||
| [NullAllowed, Export ("initiatorNameComponents", ArgumentSemantic.Strong)] | ||
| NSPersonNameComponents InitiatorNameComponents { get; set; } | ||
|
|
||
| [Export ("initWithLocalIdentifier:")] | ||
| NativeHandle Constructor (string localIdentifier); | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (NSObject))] | ||
| [DisableDefaultCtor] | ||
| interface SWPerson : NSSecureCoding { | ||
| [Export ("initWithHandle:identity:displayName:thumbnailImageData:")] | ||
| NativeHandle Constructor ([NullAllowed] string handle, [NullAllowed] SWPersonIdentity identity, string displayName, [NullAllowed] NSData thumbnailImageData); | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (NSObject))] | ||
| [DisableDefaultCtor] | ||
| interface SWPersonIdentity : NSSecureCoding, NSCopying { | ||
| [Export ("rootHash", ArgumentSemantic.Copy)] | ||
| NSData RootHash { get; } | ||
|
|
||
| [Export ("initWithRootHash:")] | ||
| NativeHandle Constructor (NSData rootHash); | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (NSObject))] | ||
| [DisableDefaultCtor] | ||
| interface SWPersonIdentityProof : NSSecureCoding, NSCopying { | ||
| [Export ("inclusionHashes", ArgumentSemantic.Copy)] | ||
| NSData[] InclusionHashes { get; } | ||
|
|
||
| [Export ("publicKey", ArgumentSemantic.Copy)] | ||
| NSData PublicKey { get; } | ||
|
|
||
| [Export ("publicKeyIndex")] | ||
| nuint PublicKeyIndex { get; } | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0)] | ||
| [BaseType (typeof (SWPersonIdentityProof))] | ||
| interface SWSignedPersonIdentityProof { | ||
| [Export ("initWithPersonIdentityProof:signatureData:")] | ||
| NativeHandle Constructor (SWPersonIdentityProof personIdentityProof, NSData data); | ||
|
|
||
| [Export ("signatureData", ArgumentSemantic.Copy)] | ||
| NSData SignatureData { get; } | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] | ||
| [BaseType (typeof (SWAction))] | ||
| [DisableDefaultCtor] | ||
| interface SWStartCollaborationAction : NSSecureCoding, NSCopying { | ||
| [Export ("collaborationMetadata")] | ||
| SWCollaborationMetadata CollaborationMetadata { get; } | ||
|
|
||
| [Export ("fulfillUsingURL:collaborationIdentifier:")] | ||
| void FulfillUsingUrl (NSUrl url, string collaborationIdentifier); | ||
| } | ||
|
|
||
| [NoWatch, TV (16,0), Mac (13,0), iOS (16,0)] | ||
| [BaseType (typeof (SWAction))] | ||
| [DisableDefaultCtor] | ||
| interface SWUpdateCollaborationParticipantsAction : NSSecureCoding, NSCopying { | ||
| [Export ("collaborationMetadata")] | ||
| SWCollaborationMetadata CollaborationMetadata { get; } | ||
|
|
||
| [Export ("addedIdentities")] | ||
| SWPersonIdentity[] AddedIdentities { get; } | ||
|
|
||
| [Export ("removedIdentities")] | ||
| SWPersonIdentity[] RemovedIdentities { get; } | ||
| } | ||
|
|
||
| } | ||
|
|
||
This file contains hidden or 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 hidden or 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
2 changes: 2 additions & 0 deletions
2
tests/xtro-sharpie/api-annotations-dotnet/common-SharedWithYouCore.ignore
This file contains hidden or 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,2 @@ | ||
| !missing-field! SharedWithYouCoreVersionNumber not bound | ||
| !missing-field! SharedWithYouCoreVersionString not bound | ||
tj-devel709 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
82 changes: 0 additions & 82 deletions
82
tests/xtro-sharpie/api-annotations-dotnet/iOS-SharedWithYouCore.todo
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.