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

Add Support for the Swift Package Manager #215

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vincentthe0ne
Copy link

@vincentthe0ne vincentthe0ne commented Mar 5, 2021

Since SPM supports Resource processing in its newer version, I was able to add Support to SPM for your Framework.
I've tested everything through the command swift test and resolved every Error.

To Support the loading of the YTPlayer.html it was necessary to implement the Bundle.module instead of the Bundle(for: YouTubePlayerView.self) which would lead to a crash while running an application with the YouTubePlayer.

The Tests are just added to satisfy the command line tool so I haven't implemented any tests.

I've uploaded a little test application to prove that the SPM Support is working. There also is a simple SwiftUI Example integrated.
https://github.com/vincentthe0ne/SPMYouTubePlayerTest

With this MR the #215 will be solved.

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.

1 participant