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

[CoreSpotlight] Add Xcode13 beta1 support. #11986

Merged

Conversation

mandel-macaque
Copy link
Member

No description provided.

@mandel-macaque mandel-macaque added the note-highlight Worth calling out specifically in release notes label Jun 18, 2021

[NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[BaseType (typeof (NSObject))]
interface CSImportExtension : NSExtensionRequestHandling
Copy link
Contributor

Choose a reason for hiding this comment

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

doc suggest this is to be subclassed inside an extension
IOW it's not usable as-is inside apps
might be worth making it abstract

Copy link
Contributor

Choose a reason for hiding this comment

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

We want the abstract keyword because CSImportExtension will be subclassed and we want the user to implement it's properties and methods? (just Update in this case)

Copy link
Member

Choose a reason for hiding this comment

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

Adding [Abstract] has its own set of problems (#4969), although those might not necessarily apply to this case.

interface CSImportExtension : NSExtensionRequestHandling
{
[Export ("updateAttributes:forFileAtURL:error:")]
bool UpdateAttributes (CSSearchableItemAttributeSet attributes, NSUrl contentUrl, [NullAllowed] out NSError error);
Copy link
Contributor

Choose a reason for hiding this comment

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

-> Update

attributes is the first parameter, not the action

In Swift the name is update


[NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)]
[Export ("actionIdentifiers", ArgumentSemantic.Copy)]
string[] ActionIdentifiers { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

you expose ActionIdentifier as a NSString
but ActionIdentifiers as string[]
if it's to be used with constant then it's better to keep them all as NSString, it avoid conversions and remove the risk that the constants are compared using pointers

Copy link
Member Author

Choose a reason for hiding this comment

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

ActionIdentifier is a Field that is used for the plist as per the docs:

Info dictionary of the specified NSUserActivity includes the corresponding Info.plist entry using the key CSActionIdentifier.

I think is safe to leave it as it is, maybe if anything move the plist to a string, but all other keys are NSStrings.

@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, 84 tests passed.

Failed tests

  • introspection/iOS Unified 64-bits - simulator/Debug: Failed
  • introspection/watchOS 32-bits - simulator/Debug (watchOS 5.0): Failed

Pipeline on Agent XAMBOT-1101.BigSur'
Merge e1c7e43 into 4bc32a9


[NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[BaseType (typeof (NSObject))]
interface CSImportExtension : NSExtensionRequestHandling
Copy link
Member

Choose a reason for hiding this comment

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

Adding [Abstract] has its own set of problems (#4969), although those might not necessarily apply to this case.

@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, 85 tests passed.

Failed tests

  • introspection/iOS Unified 64-bits - simulator/Debug: Failed

Pipeline on Agent XAMBOT-1100.BigSur'
Merge 9049edd into c778e6b

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent
Merge 268694e into 6898920

@mandel-macaque
Copy link
Member Author

network issue :(

@mandel-macaque
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@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, 84 tests passed.

Failed tests

  • introspection/Mac Modern/Debug: BuildFailure
  • monotouch-test/Mac Catalyst/Debug [dotnet]: Failed (Tests run: 2622 Passed: 2489 Inconclusive: 35 Failed: 1 Ignored: 132)

Pipeline on Agent XAMBOT-1096.BigSur'
Merge 268694e into 6898920

@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, 85 tests passed.

Failed tests

  • monotouch-test/Mac Catalyst/Debug [dotnet]: Failed (Tests run: 2622 Passed: 2488 Inconclusive: 36 Failed: 1 Ignored: 133)

Pipeline on Agent XAMBOT-1101.BigSur'
Merge 8ac6e7c into d11852e

@mandel-macaque mandel-macaque merged commit 1f84aaa into xamarin:main Jun 23, 2021
@mandel-macaque mandel-macaque deleted the corespotlight-xcode13-beta1 branch June 23, 2021 15:45
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
None yet
Development

Successfully merging this pull request may close these issues.

5 participants