diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..47abe51 --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright (C) 2015 Giles Van Gruisen. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 084c796..8684aba 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,29 @@ Embed and control YouTube videos in your iOS applications! Neato, right? Let's see how it works. +## Installation + +### Carthage + +Add this to your Cartfile: + +``` +github "gilesvangruisen/Swift-YouTube-Player" +``` + +…and then run `carthage update` + +### Cocoapods + +Ensure you are opting into using frameworks with `use_frameworks!`. Then add the following to your Podfile: + +``` +pod 'YouTubePlayer' +``` + +…and then run `pod install`. + + ## Example ```Swift diff --git a/YouTubePlayer.podspec b/YouTubePlayer.podspec new file mode 100644 index 0000000..5e31a22 --- /dev/null +++ b/YouTubePlayer.podspec @@ -0,0 +1,86 @@ +Pod::Spec.new do |s| + + s.name = "YouTubePlayer" + s.version = "0.1" + s.summary = "Swift library for embedding and controlling YouTube videos in your iOS applications" + s.homepage = "https://github.com/gilesvangruisen/Swift-YouTube-Player" + s.license = { :type => "MIT", :file => "LICENSE" } + s.author = { "Giles Van Gruisen" => "giles@vangruisen.com" } + s.social_media_url = "http://twitter.com/gilesvangruisen" + + # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # If this Pod runs only on iOS or OS X, then specify the platform and + # the deployment target. You can optionally include the target after the platform. + # + + # s.platform = :ios + s.platform = :ios, "8.0" + + # When using multiple platforms + # s.ios.deployment_target = "5.0" + # s.osx.deployment_target = "10.7" + + + # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Specify the location from where the source should be retrieved. + # Supports git, hg, bzr, svn and HTTP. + # + + s.source = { :git => "https://github.com/gilesvangruisen/Swift-YouTube-Player.git", :tag => "v#{s.version}" } + + + # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # CocoaPods is smart about how it includes source code. For source files + # giving a folder will include any swift, h, m, mm, c & cpp files. + # For header files it will include any header in the folder. + # Not including the public_header_files will make all headers public. + # + + s.source_files = "YouTubePlayer/**/*.{swift,h,m}" + s.exclude_files = "Classes/Exclude" + + # s.public_header_files = "Classes/**/*.h" + + + # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # A list of resources included with the Pod. These are copied into the + # target bundle with a build phase script. Anything else will be cleaned. + # You can preserve files from being cleaned, please don't preserve + # non-essential files like tests, examples and documentation. + # + + # s.resource = "icon.png" + # s.resources = "Resources/*.png" + + # s.preserve_paths = "FilesToSave", "MoreFilesToSave" + + + # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Link your library with frameworks, or libraries. Libraries do not include + # the lib prefix of their name. + # + + # s.framework = "SomeFramework" + # s.frameworks = "SomeFramework", "AnotherFramework" + + # s.library = "iconv" + # s.libraries = "iconv", "xml2" + + + # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # If your library depends on compiler flags you can set them in the xcconfig hash + # where they will only apply to your library. If you depend on other Podspecs + # you can include multiple dependencies to ensure it works. + + # s.requires_arc = true + + # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } + # s.dependency "JSONKit", "~> 1.4" + +end diff --git a/YouTubePlayer/YouTubePlayer/Info.plist b/YouTubePlayer/YouTubePlayer/Info.plist index 5439f63..5c126e1 100644 --- a/YouTubePlayer/YouTubePlayer/Info.plist +++ b/YouTubePlayer/YouTubePlayer/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0 + 0.1 CFBundleSignature ???? CFBundleVersion