Skip to content

Add Support for the Swift Package Manager#215

Open
vincentthe0ne wants to merge 2 commits intogilesvangruisen:masterfrom
worldiety:master
Open

Add Support for the Swift Package Manager#215
vincentthe0ne wants to merge 2 commits intogilesvangruisen:masterfrom
worldiety:master

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