Skip to content

Commit dc3967b

Browse files
Merge pull request #3 from flipkart-incubator/ios
Adding iOS development pod
2 parents 9aeb02c + 8049256 commit dc3967b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3479
-454
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ matrix:
1616
script:
1717
- ./gradlew build connectedCheck
1818

19+
- language: objective-c
20+
osx_image: xcode7.3
21+
before_script:
22+
- cd youtube-ios
23+
script:
24+
- gem install cocoapods # Since Travis is not always on latest version
25+
- pod install --project-directory=Example
26+
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/InlineYoutubeView.xcworkspace -scheme InlineYoutubeView-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
27+
- pod lib lint
28+
1929
notifications:
2030
email:
2131
- anirudh.r@flipkart.com

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2018 Flipkart Internet Pvt. Ltd. All rights reserved.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,31 @@ playerView.initPlayer(Constants.API_KEY, videoId, "https://cdn.rawgit.com/flipka
8282

8383
````
8484

85-
# youtube-react-native
85+
# youtube-ios
8686

87-
To be updated soon.
87+
This pod is a modification of the youtube-ios-helper provided by youtube. Modifications include
8888

89-
# youtube-ios
89+
* Migration to WkWebView from the older UIWebView.
90+
* Adding support for custom html urls. Earlier we could only use the html in the resource bundle
91+
* Adding parameter for deciding whether to play the videos inline or fullscreen.
92+
* Adding error callback for when network is offline after iframeAPI has been loaded.
93+
94+
## Demo Gif
95+
96+
![YouTube iOS](https://github.com/flipkart-incubator/inline-youtube-view/blob/master/youtube-view-ios.gif)
97+
98+
## Installation
99+
100+
InlineYoutubeView is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:
101+
102+
```ruby
103+
pod 'InlineYoutubeView'
104+
```
105+
## How to use ?
106+
107+
Refer to [iOS README](https://github.com/flipkart-incubator/inline-youtube-view/edit/ios/youtube-ios/README.md)
108+
109+
# youtube-react-native
90110

91111
To be updated soon.
92112

youtube-android/.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

youtube-ios/.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# OS X
2+
.DS_Store
3+
4+
# Xcode
5+
build/
6+
*.pbxuser
7+
!default.pbxuser
8+
*.mode1v3
9+
!default.mode1v3
10+
*.mode2v3
11+
!default.mode2v3
12+
*.perspectivev3
13+
!default.perspectivev3
14+
xcuserdata/
15+
*.xccheckout
16+
profile
17+
*.moved-aside
18+
DerivedData
19+
*.hmap
20+
*.ipa
21+
22+
# Bundler
23+
.bundle
24+
25+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
26+
# Carthage/Checkouts
27+
28+
Carthage/Build
29+
30+
# We recommend against adding the Pods directory to your .gitignore. However
31+
# you should judge for yourself, the pros and cons are mentioned at:
32+
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
33+
#
34+
# Note: if you ignore the Pods directory, make sure to uncomment
35+
# `pod install` in .travis.yml
36+
#
37+
Pods/

youtube-ios/Example/InlineYoutubeView.xcodeproj/project.pbxproj

Lines changed: 645 additions & 0 deletions
Large diffs are not rendered by default.

youtube-ios/youtube-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata renamed to youtube-ios/Example/InlineYoutubeView.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

youtube-ios/youtube-ios.xcodeproj/xcuserdata/anirudh.r.xcuserdatad/xcschemes/youtube-ios.xcscheme renamed to youtube-ios/Example/InlineYoutubeView.xcodeproj/xcshareddata/xcschemes/InlineYoutubeView-Example.xcscheme

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0830"
3+
LastUpgradeVersion = "0720"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -14,10 +14,10 @@
1414
buildForAnalyzing = "YES">
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "6695447E1F40D05D008DF63A"
18-
BuildableName = "youtube-ios.app"
19-
BlueprintName = "youtube-ios"
20-
ReferencedContainer = "container:youtube-ios.xcodeproj">
17+
BlueprintIdentifier = "6003F589195388D20070C39A"
18+
BuildableName = "InlineYoutubeView_Example.app"
19+
BlueprintName = "InlineYoutubeView_Example"
20+
ReferencedContainer = "container:InlineYoutubeView.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
</BuildActionEntries>
@@ -26,16 +26,27 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
32+
<TestableReference
33+
skipped = "NO">
34+
<BuildableReference
35+
BuildableIdentifier = "primary"
36+
BlueprintIdentifier = "6003F5AD195388D20070C39A"
37+
BuildableName = "InlineYoutubeView_Tests.xctest"
38+
BlueprintName = "InlineYoutubeView_Tests"
39+
ReferencedContainer = "container:InlineYoutubeView.xcodeproj">
40+
</BuildableReference>
41+
</TestableReference>
3142
</Testables>
3243
<MacroExpansion>
3344
<BuildableReference
3445
BuildableIdentifier = "primary"
35-
BlueprintIdentifier = "6695447E1F40D05D008DF63A"
36-
BuildableName = "youtube-ios.app"
37-
BlueprintName = "youtube-ios"
38-
ReferencedContainer = "container:youtube-ios.xcodeproj">
46+
BlueprintIdentifier = "6003F589195388D20070C39A"
47+
BuildableName = "InlineYoutubeView_Example.app"
48+
BlueprintName = "InlineYoutubeView_Example"
49+
ReferencedContainer = "container:InlineYoutubeView.xcodeproj">
3950
</BuildableReference>
4051
</MacroExpansion>
4152
<AdditionalOptions>
@@ -45,6 +56,7 @@
4556
buildConfiguration = "Debug"
4657
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4758
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59+
language = ""
4860
launchStyle = "0"
4961
useCustomWorkingDirectory = "NO"
5062
ignoresPersistentStateOnLaunch = "NO"
@@ -55,10 +67,10 @@
5567
runnableDebuggingMode = "0">
5668
<BuildableReference
5769
BuildableIdentifier = "primary"
58-
BlueprintIdentifier = "6695447E1F40D05D008DF63A"
59-
BuildableName = "youtube-ios.app"
60-
BlueprintName = "youtube-ios"
61-
ReferencedContainer = "container:youtube-ios.xcodeproj">
70+
BlueprintIdentifier = "6003F589195388D20070C39A"
71+
BuildableName = "InlineYoutubeView_Example.app"
72+
BlueprintName = "InlineYoutubeView_Example"
73+
ReferencedContainer = "container:InlineYoutubeView.xcodeproj">
6274
</BuildableReference>
6375
</BuildableProductRunnable>
6476
<AdditionalOptions>
@@ -74,10 +86,10 @@
7486
runnableDebuggingMode = "0">
7587
<BuildableReference
7688
BuildableIdentifier = "primary"
77-
BlueprintIdentifier = "6695447E1F40D05D008DF63A"
78-
BuildableName = "youtube-ios.app"
79-
BlueprintName = "youtube-ios"
80-
ReferencedContainer = "container:youtube-ios.xcodeproj">
89+
BlueprintIdentifier = "6003F589195388D20070C39A"
90+
BuildableName = "InlineYoutubeView_Example.app"
91+
BlueprintName = "InlineYoutubeView_Example"
92+
ReferencedContainer = "container:InlineYoutubeView.xcodeproj">
8193
</BuildableReference>
8294
</BuildableProductRunnable>
8395
</ProfileAction>

youtube-ios/Example/InlineYoutubeView.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

youtube-ios/youtube-ios/Base.lproj/LaunchScreen.storyboard renamed to youtube-ios/Example/InlineYoutubeView/Base.lproj/LaunchScreen.storyboard

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<device id="retina4_7" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
36
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
7+
<deployment identifier="iOS"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
59
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
610
</dependencies>
711
<scenes>

0 commit comments

Comments
 (0)