youtube / youtube-ios-player-helper

Lightweight helper library that allows iOS developers to add inline playback of YouTube videos through a WebView
Other
1.64k stars 680 forks source link

Add Swift Package Manager Support #411

Closed ivanlisovyi closed 2 years ago

ivanlisovyi commented 3 years ago

Context

This PR adds support for Swift Package Manager Installation using SPM 5.3. Closes #396.

Notable Changs

Tested

googlebot commented 3 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

ivanlisovyi commented 3 years ago

@googlebot I signed it!

googlebot commented 3 years ago

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

julioarregoitia commented 3 years ago

Please, add the SPM support

ramunasjurgilas commented 3 years ago

For me it is failing:

image
davdroman commented 3 years ago

@ramunasjurgilas you gotta specify the fork's URL @ master branch, not a version tag.

Screen Shot 2021-01-25 at 22 53 47
davdroman commented 3 years ago

Could someone please get this merged? 🙏

@ivanlisovyi there's a merge conflict FYI.

SaavyGirl commented 3 years ago

On Sun, Jan 24, 2021 at 7:18 PM Ramūnas notifications@github.com wrote:

For me it is failing: [image: image] https://user-images.githubusercontent.com/255732/105650281-fd824380-5ebb-11eb-8f17-f8a865dada31.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/youtube/youtube-ios-player-helper/pull/411#issuecomment-766481185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQR7RC24DWU2ASYJMF3CY7TS3TBHXANCNFSM4RSKIVSA .

-- Erica K Vance

cassianodialpad commented 3 years ago

+1 on this!

iTwenty commented 3 years ago

+1. Get this merged!

stephanheilner commented 3 years ago

👍🏼

johnnypeterson commented 3 years ago

👍 Get this merged!

wilg commented 3 years ago

@todd-patterson Can you get this merged or tag who can? Very important for modern iOS development.

wilg commented 3 years ago

Or perhaps @rcvrgs? Can you get this merged or tag who can? Very important for modern iOS development.

acosmicflamingo commented 3 years ago

@todd-patterson @rcvrgs Do you guys hear that? It's a crowd chanting!

"Let's Go YouTube Developers; Let's Go!" thump thump thump thump thump

✺◟( ͡° ͜ʖ ͡°)◞✺ ✺◟( ͡ ͜ ʖ ͡ )◞✺ ✺◟(◕‿◕✿)◞✺ ✺◟( ͡ ͜ ʖ ͡ )◞✺ ✺◟( ͡° ͜ʖ ͡°)◞✺ ✺◟( ͡ ͜ ʖ ͡ )◞✺ ✺◟(◕‿◕✿)◞✺ ✺◟( ͡ ͜ ʖ ͡ )◞✺ ✺◟( ͡° ͜ʖ ͡°)◞✺

We got this!!! Let's bring it home! Let's merge this PR :D

domagojstankovic commented 3 years ago

Can we get this merged? Would be really helpful! Thanks!

wilg commented 3 years ago

I've filed a ticket with Google asking for them to ensure this package has a maintainer to look at issues like this! Hopefully that helps! https://issuetracker.google.com/issues/192913796

wilg commented 3 years ago

(Please don't brigade the ticket, just put link for cross reference.)

alternegro commented 3 years ago

LGTM!

hbanzon commented 3 years ago

Hoping this gets merged 🤞

Tibimac commented 2 years ago

@googlebot or @google-admin Could you please merge this pull request as everything seems good and ready for prod (works well on fork, no conflict ... ). Thanks a lot in advance! 🙏🏻❤️

wilg commented 2 years ago

Seems like this thing isn't gonna get merged unless somebody knows somebody at YouTube engineering.

SvenTiigi commented 2 years ago

To all who are still waiting for this PR to be merged 😅

I’ve have created my own Swift Package named YouTubePlayerKit with SPM support.

https://github.com/SvenTiigi/YouTubePlayerKit

YouTubePlayerKit works basically the same way as youtube-ios-player-helper does but comes with extended support for SwiftUI, Combine, async/await and runs on iOS & macOS.

Maybe some people find this helpful ✌️

acosmicflamingo commented 2 years ago

@SvenTiigi Dang; seems really promising! I think the big question is whether Apple will accept apps with this framework. It's one thing to mention in an App Store review "Hey this is officially made by YouTube itself; they'd never develop something that break its own TOS" and another to take it at your word that YouTube TOS are not broken :) Of course, I trust you but will those in the App Store Review panel?

Edit: WOW you made the "What's New" framework! You definitely know your stuff :D I really hope Apple will not complain about integrating it; I will be the first to use it if that's the case 💯

SvenTiigi commented 2 years ago

Hi @acosmicflamingo as YouTubePlayerKit has just been released I currently have no proof that an App including this framework will definitely pass the App Store Review.

But in my opinion I think this shouldn't cause a problem because at the end YouTubePlayerKit simply displays a WKWebView which loads the YouTube player in an iFrame by making use of the official YouTube iFrame Player API exactly like youtube-ios-player-helper does.

acosmicflamingo commented 2 years ago

@SvenTiigi That is so cool. Great work!!!

cassianodialpad commented 2 years ago

whether Apple will accept apps with this framework

@acosmicflamingo This shouldn't be a problem, we did the same thing internally and it has been published to AppStore already.

@SvenTiigi Great job!

brol1dev commented 2 years ago

I verified the PR in the forked repo using:

Thank you for the PR @ivanlisovyi. LGTM!

todd-patterson commented 2 years ago

Thanks @ivanlisovyi ! Very comprehensive. Discussed and reviewed with @rcvrgs

Sorry everyone for the long delay on the merge.

Tibimac commented 2 years ago

@todd-patterson Too late, I switched to the great "YouTubePlayerKit" made by @SvenTiigi, far better than the official YouTube-helper, videos loads faster, API is better and far more modern.