chore: resolve formatting#662
Conversation
There was a problem hiding this comment.
Code Review
This pull request performs minor formatting and code style cleanups across several example projects, including adjusting spacing in Kotlin class declarations, reordering Swift imports, and wrapping long lines. The review feedback suggests a more idiomatic Swift approach in AppDelegate.swift by using NotificationCenter.default.post(name:object:userInfo:) directly and simplifying the Notification.Name initialization.
| NotificationCenter.default.post( | ||
| Notification(name: Notification.Name(rawValue: "linkReceived"), object: nil, userInfo: data)) |
There was a problem hiding this comment.
Instead of manually constructing a Notification object and passing it to post(_:), it is more idiomatic in Swift to use post(name:object:userInfo:) directly. Additionally, Notification.Name("linkReceived") is preferred over Notification.Name(rawValue: "linkReceived") for cleaner and more readable code.
NotificationCenter.default.post(name: Notification.Name("linkReceived"), object: nil, userInfo: data)
Description
Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change.
Related Issues
Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]).This will ensure a smooth and quick review process. Updating the
pubspec.yamland changelogs is not required.///).melos run analyze) does not report any problems on my PR.melos run test:unit:alldoesn't fail).Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?