Skip to content

Add Package.swift#191

Open
ppamorim wants to merge 1 commit intodelannoyk:masterfrom
ppamorim:feature/swiftpm
Open

Add Package.swift#191
ppamorim wants to merge 1 commit intodelannoyk:masterfrom
ppamorim:feature/swiftpm

Conversation

@ppamorim
Copy link
Copy Markdown
Contributor

I will keep this PR as draft until #190 gets merged. I am using this branch by myself so I can't rebase it yet.

/// Updates the MPNowPlayingInfoCenter with current item's info.
func updateNowPlayingInfoCenter() {
#if os(iOS) || os(tvOS)
#if !os(macOS)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is no way to s.osx.exclude_files = 'AudioPlayer/AudioPlayer/utils/MPNowPlayingInfoCenter+AudioItem.swift' on SPM.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@delannoyk Bump :)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Apologies for the delay! If you don't mind, I'd appreciate this change 😄

Copy link
Copy Markdown
Contributor Author

@ppamorim ppamorim Apr 24, 2025

Choose a reason for hiding this comment

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

@delannoyk ? Is there any concise reason for that?

Copy link
Copy Markdown
Owner

@delannoyk delannoyk Apr 24, 2025

Choose a reason for hiding this comment

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

It feels more correct to me to include the platform we know are supported, rather than exclude the ones we know aren't. I.E: what about watchOS, visionOS? I actually haven't tested those platforms but I would want to before saying they're supported for that code path. Does that make sense?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This seems right. Thank you for the response. I will update it when I have time.

@ppamorim ppamorim force-pushed the feature/swiftpm branch 2 times, most recently from 7094fa6 to 4498d6f Compare February 14, 2025 13:32
Comment thread .gitignore
@ppamorim ppamorim marked this pull request as ready for review February 14, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants