diff --git a/.travis.yml b/.travis.yml index 49f8b969..037c8305 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,10 @@ env: before_install: - xcrun simctl list install: + - brew update; brew update + - brew install coreutils - gem install xcpretty --no-rdoc --no-ri --no-document --quiet + - gem install xcpretty-travis-formatter --no-rdoc --no-ri --no-document --quiet - sudo easy_install cpp-coveralls script: - ./Scripts/run-tests.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 804e22c5..980f09a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +#### Version 2.3.2 + +* Adaptation to YouTube API change. (#186) + #### Version 2.3.1 * Improved Swift 2.0 interoperability. (#178) diff --git a/README.md b/README.md index c486645d..f1917d9f 100644 --- a/README.md +++ b/README.md @@ -30,12 +30,12 @@ XCDYouTubeKit is available through CocoaPods and Carthage. CocoaPods: ```ruby -pod "XCDYouTubeKit", "~> 2.3.1" +pod "XCDYouTubeKit", "~> 2.3.2" ``` Carthage: ```objc -github "0xced/XCDYouTubeKit" ~> 2.3.1 +github "0xced/XCDYouTubeKit" ~> 2.3.2 ``` Alternatively, you can manually use the provided static library on iOS or dynamic framework on OS X. In order to use the iOS static library, you must: diff --git a/Scripts/release.sh b/Scripts/release.sh index b2c1ad39..ad73ae8d 100755 --- a/Scripts/release.sh +++ b/Scripts/release.sh @@ -42,7 +42,8 @@ update_badges "master" "develop" echo "Things remaining to do" echo " * git push with tags (master and develop)" echo " * check that build is passing on travis: https://travis-ci.org/0xced/XCDYouTubeKit/" +echo " * pod lib lint --verbose XCDYouTubeKit.podspec" +echo " * pod trunk push --verbose XCDYouTubeKit.podspec" echo " * pod spec lint --verbose XCDYouTubeKit.podspec" -echo " * pod trunk push XCDYouTubeKit.podspec --verbose" echo " * create a new release on GitHub: https://github.com/0xced/XCDYouTubeKit/releases/new" echo " * close milestone on GitHub if applicable: https://github.com/0xced/XCDYouTubeKit/milestones" diff --git a/Scripts/run-tests.sh b/Scripts/run-tests.sh index 9ac4c033..b0d71ade 100755 --- a/Scripts/run-tests.sh +++ b/Scripts/run-tests.sh @@ -6,7 +6,9 @@ set -o pipefail : ${CONFIGURATION:="Release"} : ${DESTINATION:="platform=iOS Simulator,name=iPhone 5s"} -COMMAND="xcodebuild clean test -project XCDYouTubeKit.xcodeproj -scheme '${SCHEME}' -configuration '${CONFIGURATION}' -destination '${DESTINATION}'" +COMMAND="" +gstdbuf --version > /dev/null && COMMAND+="gstdbuf -o 0 " +COMMAND+="xcodebuild clean test -project XCDYouTubeKit.xcodeproj -scheme '${SCHEME}' -configuration '${CONFIGURATION}' -destination '${DESTINATION}'" for BUILD_SETTING in OBJROOT RUN_CLANG_STATIC_ANALYZER; do VALUE=`eval echo \\$"${BUILD_SETTING}"` @@ -17,6 +19,7 @@ for BUILD_SETTING in OBJROOT RUN_CLANG_STATIC_ANALYZER; do done xcpretty --version > /dev/null && COMMAND+=" | xcpretty -c" +xcpretty-travis-formatter > /dev/null && COMMAND+=" -f `xcpretty-travis-formatter`" set -x eval "${COMMAND}" diff --git a/XCDYouTubeKit Demo/OS X Demo/AppDelegate.h b/XCDYouTubeKit Demo/OS X Demo/AppDelegate.h index 6776810e..5e2b7bad 100644 --- a/XCDYouTubeKit Demo/OS X Demo/AppDelegate.h +++ b/XCDYouTubeKit Demo/OS X Demo/AppDelegate.h @@ -2,6 +2,9 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import AppKit; +@import AVKit; + @interface AppDelegate : NSObject @property (assign) IBOutlet NSWindow *window; diff --git a/XCDYouTubeKit Demo/OS X Demo/AppDelegate.m b/XCDYouTubeKit Demo/OS X Demo/AppDelegate.m index 5d2c22d8..8dc6e4cd 100644 --- a/XCDYouTubeKit Demo/OS X Demo/AppDelegate.m +++ b/XCDYouTubeKit Demo/OS X Demo/AppDelegate.m @@ -4,7 +4,10 @@ #import "AppDelegate.h" +@import AVFoundation; + #import +#import @implementation AppDelegate diff --git a/XCDYouTubeKit Demo/OS X Demo/Supporting Files/XCDYouTubeKit OS X Demo-Prefix.pch b/XCDYouTubeKit Demo/OS X Demo/Supporting Files/XCDYouTubeKit OS X Demo-Prefix.pch deleted file mode 100644 index c5259157..00000000 --- a/XCDYouTubeKit Demo/OS X Demo/Supporting Files/XCDYouTubeKit OS X Demo-Prefix.pch +++ /dev/null @@ -1,6 +0,0 @@ -#ifdef __OBJC__ - #import - #import - #import - #import -#endif diff --git a/XCDYouTubeKit Demo/OS X Demo/Supporting Files/main.m b/XCDYouTubeKit Demo/OS X Demo/Supporting Files/main.m index 33bb6da7..2f9a905b 100644 --- a/XCDYouTubeKit Demo/OS X Demo/Supporting Files/main.m +++ b/XCDYouTubeKit Demo/OS X Demo/Supporting Files/main.m @@ -2,6 +2,8 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import AppKit; + int main(int argc, const char * argv[]) { return NSApplicationMain(argc, argv); diff --git a/XCDYouTubeKit Demo/XCDYouTubeKit Demo.xcodeproj/project.pbxproj b/XCDYouTubeKit Demo/XCDYouTubeKit Demo.xcodeproj/project.pbxproj index 668bf023..27e8bd68 100644 --- a/XCDYouTubeKit Demo/XCDYouTubeKit Demo.xcodeproj/project.pbxproj +++ b/XCDYouTubeKit Demo/XCDYouTubeKit Demo.xcodeproj/project.pbxproj @@ -71,7 +71,6 @@ C2428AF0191C3C1400065504 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; C2428B04191C3DE400065504 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; C2428B05191C3DE400065504 /* XCDYouTubeKit OS X Demo-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "XCDYouTubeKit OS X Demo-Info.plist"; sourceTree = ""; }; - C2428B06191C3DE400065504 /* XCDYouTubeKit OS X Demo-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "XCDYouTubeKit OS X Demo-Prefix.pch"; sourceTree = ""; }; C2428B0B191C415300065504 /* AVKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AVKit.framework; sourceTree = DEVELOPER_DIR; }; C2570B841A02415F00127127 /* NowPlayingInfoCenterProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NowPlayingInfoCenterProvider.h; sourceTree = ""; }; C2570B851A02415F00127127 /* NowPlayingInfoCenterProvider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NowPlayingInfoCenterProvider.m; sourceTree = ""; }; @@ -95,7 +94,6 @@ C27415CA17F4CDD80026834B /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = ""; }; C27415D117F4CDD80026834B /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; C27415DD17F4CE4A0026834B /* XCDYouTubeKit iOS Demo-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "XCDYouTubeKit iOS Demo-Info.plist"; sourceTree = ""; }; - C27415DE17F4CE4A0026834B /* XCDYouTubeKit iOS Demo-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "XCDYouTubeKit iOS Demo-Prefix.pch"; sourceTree = ""; }; C27415E217F4D02E0026834B /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; C27415E417F4D0330026834B /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; C27AD2A01A0791F000866050 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; @@ -159,7 +157,6 @@ C2428AE9191C3C1400065504 /* Images.xcassets */, C2428B04191C3DE400065504 /* main.m */, C2428B05191C3DE400065504 /* XCDYouTubeKit OS X Demo-Info.plist */, - C2428B06191C3DE400065504 /* XCDYouTubeKit OS X Demo-Prefix.pch */, ); path = "Supporting Files"; sourceTree = ""; @@ -246,7 +243,6 @@ C27415D117F4CDD80026834B /* main.m */, C235BB821B2099450076FC81 /* Settings.bundle */, C27415DD17F4CE4A0026834B /* XCDYouTubeKit iOS Demo-Info.plist */, - C27415DE17F4CE4A0026834B /* XCDYouTubeKit iOS Demo-Prefix.pch */, ); path = "Supporting Files"; sourceTree = ""; @@ -474,14 +470,11 @@ baseConfigurationReference = 505BA2F7B06DFF74374D198E /* Pods-XCDYouTubeKit OS X Demo.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; COMBINE_HIDPI_IMAGES = YES; GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "OS X Demo/Supporting Files/XCDYouTubeKit OS X Demo-Prefix.pch"; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -504,7 +497,6 @@ baseConfigurationReference = 552B9F1CEBBB6991A374874F /* Pods-XCDYouTubeKit OS X Demo.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; @@ -512,8 +504,6 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "OS X Demo/Supporting Files/XCDYouTubeKit OS X Demo-Prefix.pch"; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; @@ -533,6 +523,7 @@ ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; @@ -541,7 +532,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 2.3.1; + CURRENT_PROJECT_VERSION = 2.3.2; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; @@ -568,6 +559,7 @@ ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; @@ -576,7 +568,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = YES; - CURRENT_PROJECT_VERSION = 2.3.1; + CURRENT_PROJECT_VERSION = 2.3.2; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_PREPROCESSOR_DEFINITIONS = ( "NS_BLOCK_ASSERTIONS=1", @@ -600,8 +592,6 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "iOS Demo/Supporting Files/XCDYouTubeKit iOS Demo-Prefix.pch"; INFOPLIST_FILE = "iOS Demo/Supporting Files/XCDYouTubeKit iOS Demo-Info.plist"; LD_RUNPATH_SEARCH_PATHS = "@loader_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -615,8 +605,6 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "iOS Demo/Supporting Files/XCDYouTubeKit iOS Demo-Prefix.pch"; INFOPLIST_FILE = "iOS Demo/Supporting Files/XCDYouTubeKit iOS Demo-Info.plist"; LD_RUNPATH_SEARCH_PATHS = "@loader_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/XCDYouTubeKit Demo/iOS Demo/AppDelegate.h b/XCDYouTubeKit Demo/iOS Demo/AppDelegate.h index 5a3ad9e3..d502e63a 100644 --- a/XCDYouTubeKit Demo/iOS Demo/AppDelegate.h +++ b/XCDYouTubeKit Demo/iOS Demo/AppDelegate.h @@ -2,6 +2,8 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import UIKit; + #import "PlayerEventLogger.h" #import "NowPlayingInfoCenterProvider.h" diff --git a/XCDYouTubeKit Demo/iOS Demo/AppDelegate.m b/XCDYouTubeKit Demo/iOS Demo/AppDelegate.m index 1230163f..9776385a 100644 --- a/XCDYouTubeKit Demo/iOS Demo/AppDelegate.m +++ b/XCDYouTubeKit Demo/iOS Demo/AppDelegate.m @@ -4,9 +4,11 @@ #import "AppDelegate.h" -#import "ContextLogFormatter.h" +@import AVFoundation; #import +#import "ContextLogFormatter.h" + @implementation AppDelegate @synthesize window = _window; diff --git a/XCDYouTubeKit Demo/iOS Demo/ContextLogFormatter.h b/XCDYouTubeKit Demo/iOS Demo/ContextLogFormatter.h index 7de05c8a..8d97edbd 100644 --- a/XCDYouTubeKit Demo/iOS Demo/ContextLogFormatter.h +++ b/XCDYouTubeKit Demo/iOS Demo/ContextLogFormatter.h @@ -2,7 +2,7 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // -#import +@import Foundation; #import @interface ContextLogFormatter : NSObject diff --git a/XCDYouTubeKit Demo/iOS Demo/DemoAsynchronousViewController.h b/XCDYouTubeKit Demo/iOS Demo/DemoAsynchronousViewController.h index 95060156..ce0e504b 100644 --- a/XCDYouTubeKit Demo/iOS Demo/DemoAsynchronousViewController.h +++ b/XCDYouTubeKit Demo/iOS Demo/DemoAsynchronousViewController.h @@ -2,6 +2,8 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import UIKit; + @interface DemoAsynchronousViewController : UIViewController @property (nonatomic, weak) IBOutlet UITextField *apiKeyTextField; diff --git a/XCDYouTubeKit Demo/iOS Demo/DemoAsynchronousViewController.m b/XCDYouTubeKit Demo/iOS Demo/DemoAsynchronousViewController.m index a875ce60..4ee8b299 100644 --- a/XCDYouTubeKit Demo/iOS Demo/DemoAsynchronousViewController.m +++ b/XCDYouTubeKit Demo/iOS Demo/DemoAsynchronousViewController.m @@ -4,6 +4,10 @@ #import "DemoAsynchronousViewController.h" +#import + +#import "MPMoviePlayerController+BackgroundPlayback.h" + @implementation DemoAsynchronousViewController - (void) viewDidLoad diff --git a/XCDYouTubeKit Demo/iOS Demo/DemoFullScreenViewController.h b/XCDYouTubeKit Demo/iOS Demo/DemoFullScreenViewController.h index b29ea215..474f7b18 100644 --- a/XCDYouTubeKit Demo/iOS Demo/DemoFullScreenViewController.h +++ b/XCDYouTubeKit Demo/iOS Demo/DemoFullScreenViewController.h @@ -2,6 +2,8 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import UIKit; + #import "VideoPickerController.h" @interface DemoFullScreenViewController : UIViewController diff --git a/XCDYouTubeKit Demo/iOS Demo/DemoFullScreenViewController.m b/XCDYouTubeKit Demo/iOS Demo/DemoFullScreenViewController.m index deaa4749..7662dfe7 100644 --- a/XCDYouTubeKit Demo/iOS Demo/DemoFullScreenViewController.m +++ b/XCDYouTubeKit Demo/iOS Demo/DemoFullScreenViewController.m @@ -4,6 +4,10 @@ #import "DemoFullScreenViewController.h" +#import + +#import "MPMoviePlayerController+BackgroundPlayback.h" + @implementation DemoFullScreenViewController - (void) viewDidLoad diff --git a/XCDYouTubeKit Demo/iOS Demo/DemoInlineViewController.h b/XCDYouTubeKit Demo/iOS Demo/DemoInlineViewController.h index 0c6771a8..0c3ff11e 100644 --- a/XCDYouTubeKit Demo/iOS Demo/DemoInlineViewController.h +++ b/XCDYouTubeKit Demo/iOS Demo/DemoInlineViewController.h @@ -2,6 +2,8 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import UIKit; + @interface DemoInlineViewController : UIViewController @property (nonatomic, weak) IBOutlet UIView *videoContainerView; diff --git a/XCDYouTubeKit Demo/iOS Demo/DemoInlineViewController.m b/XCDYouTubeKit Demo/iOS Demo/DemoInlineViewController.m index 93f2ff50..b62993bb 100644 --- a/XCDYouTubeKit Demo/iOS Demo/DemoInlineViewController.m +++ b/XCDYouTubeKit Demo/iOS Demo/DemoInlineViewController.m @@ -4,6 +4,10 @@ #import "DemoInlineViewController.h" +#import + +#import "MPMoviePlayerController+BackgroundPlayback.h" + @interface DemoInlineViewController () @property (nonatomic, strong) XCDYouTubeVideoPlayerViewController *videoPlayerViewController; diff --git a/XCDYouTubeKit Demo/iOS Demo/DemoThumbnailViewController.h b/XCDYouTubeKit Demo/iOS Demo/DemoThumbnailViewController.h index 5989cf83..3d9415f8 100644 --- a/XCDYouTubeKit Demo/iOS Demo/DemoThumbnailViewController.h +++ b/XCDYouTubeKit Demo/iOS Demo/DemoThumbnailViewController.h @@ -2,6 +2,8 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import UIKit; + @interface DemoThumbnailViewController : UIViewController @property (nonatomic, weak) IBOutlet UIButton *actionButton; diff --git a/XCDYouTubeKit Demo/iOS Demo/DemoThumbnailViewController.m b/XCDYouTubeKit Demo/iOS Demo/DemoThumbnailViewController.m index daf49cbd..ff0e154f 100644 --- a/XCDYouTubeKit Demo/iOS Demo/DemoThumbnailViewController.m +++ b/XCDYouTubeKit Demo/iOS Demo/DemoThumbnailViewController.m @@ -4,6 +4,10 @@ #import "DemoThumbnailViewController.h" +#import + +#import "MPMoviePlayerController+BackgroundPlayback.h" + @interface DemoThumbnailViewController () @property (nonatomic, strong) XCDYouTubeVideoPlayerViewController *videoPlayerViewController; diff --git a/XCDYouTubeKit Demo/iOS Demo/MPMoviePlayerController+BackgroundPlayback.h b/XCDYouTubeKit Demo/iOS Demo/MPMoviePlayerController+BackgroundPlayback.h index 68cf4d27..d99bc1c8 100644 --- a/XCDYouTubeKit Demo/iOS Demo/MPMoviePlayerController+BackgroundPlayback.h +++ b/XCDYouTubeKit Demo/iOS Demo/MPMoviePlayerController+BackgroundPlayback.h @@ -2,7 +2,7 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // -#import +@import MediaPlayer; @interface MPMoviePlayerController (BackgroundPlayback) diff --git a/XCDYouTubeKit Demo/iOS Demo/MPMoviePlayerController+BackgroundPlayback.m b/XCDYouTubeKit Demo/iOS Demo/MPMoviePlayerController+BackgroundPlayback.m index b78a2559..bc241759 100644 --- a/XCDYouTubeKit Demo/iOS Demo/MPMoviePlayerController+BackgroundPlayback.m +++ b/XCDYouTubeKit Demo/iOS Demo/MPMoviePlayerController+BackgroundPlayback.m @@ -4,7 +4,8 @@ #import "MPMoviePlayerController+BackgroundPlayback.h" -#import +@import AVFoundation; +@import ObjectiveC; #ifndef NSFoundationVersionNumber_iOS_7_0 #define NSFoundationVersionNumber_iOS_7_0 1047.2 diff --git a/XCDYouTubeKit Demo/iOS Demo/NowPlayingInfoCenterProvider.h b/XCDYouTubeKit Demo/iOS Demo/NowPlayingInfoCenterProvider.h index 9d3b1dbf..1e034a00 100644 --- a/XCDYouTubeKit Demo/iOS Demo/NowPlayingInfoCenterProvider.h +++ b/XCDYouTubeKit Demo/iOS Demo/NowPlayingInfoCenterProvider.h @@ -2,6 +2,8 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import Foundation; + @interface NowPlayingInfoCenterProvider : NSObject @property (nonatomic, assign, getter = isEnabled) BOOL enabled; // defaults to `YES` diff --git a/XCDYouTubeKit Demo/iOS Demo/NowPlayingInfoCenterProvider.m b/XCDYouTubeKit Demo/iOS Demo/NowPlayingInfoCenterProvider.m index 4a9ba01b..c2bab258 100644 --- a/XCDYouTubeKit Demo/iOS Demo/NowPlayingInfoCenterProvider.m +++ b/XCDYouTubeKit Demo/iOS Demo/NowPlayingInfoCenterProvider.m @@ -4,6 +4,8 @@ #import "NowPlayingInfoCenterProvider.h" +#import + @implementation NowPlayingInfoCenterProvider - (instancetype) init diff --git a/XCDYouTubeKit Demo/iOS Demo/PlayerEventLogger.h b/XCDYouTubeKit Demo/iOS Demo/PlayerEventLogger.h index 6eb37e02..ad1c5658 100644 --- a/XCDYouTubeKit Demo/iOS Demo/PlayerEventLogger.h +++ b/XCDYouTubeKit Demo/iOS Demo/PlayerEventLogger.h @@ -2,6 +2,8 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import Foundation; + @interface PlayerEventLogger : NSObject @property (nonatomic, assign, getter = isEnabled) BOOL enabled; // defaults to `YES` diff --git a/XCDYouTubeKit Demo/iOS Demo/PlayerEventLogger.m b/XCDYouTubeKit Demo/iOS Demo/PlayerEventLogger.m index c940b793..19e3170c 100644 --- a/XCDYouTubeKit Demo/iOS Demo/PlayerEventLogger.m +++ b/XCDYouTubeKit Demo/iOS Demo/PlayerEventLogger.m @@ -5,6 +5,7 @@ #import "PlayerEventLogger.h" #import +@import MediaPlayer; @implementation PlayerEventLogger diff --git a/XCDYouTubeKit Demo/iOS Demo/SettingsViewController.h b/XCDYouTubeKit Demo/iOS Demo/SettingsViewController.h index 23f8dee3..79943566 100644 --- a/XCDYouTubeKit Demo/iOS Demo/SettingsViewController.h +++ b/XCDYouTubeKit Demo/iOS Demo/SettingsViewController.h @@ -2,6 +2,8 @@ // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // +@import UIKit; + @interface SettingsViewController : UIViewController @end diff --git a/XCDYouTubeKit Demo/iOS Demo/SettingsViewController.m b/XCDYouTubeKit Demo/iOS Demo/SettingsViewController.m index 8563bc42..dd0b2a23 100644 --- a/XCDYouTubeKit Demo/iOS Demo/SettingsViewController.m +++ b/XCDYouTubeKit Demo/iOS Demo/SettingsViewController.m @@ -4,6 +4,8 @@ #import "SettingsViewController.h" +@import AVFoundation; + @interface SettingsViewController () @property (nonatomic, weak) IBOutlet UISwitch *playVideoInBackgroundSwitch; diff --git a/XCDYouTubeKit Demo/iOS Demo/Supporting Files/XCDYouTubeKit iOS Demo-Prefix.pch b/XCDYouTubeKit Demo/iOS Demo/Supporting Files/XCDYouTubeKit iOS Demo-Prefix.pch deleted file mode 100644 index 9636eb7f..00000000 --- a/XCDYouTubeKit Demo/iOS Demo/Supporting Files/XCDYouTubeKit iOS Demo-Prefix.pch +++ /dev/null @@ -1,13 +0,0 @@ -#import - -#ifndef __IPHONE_5_0 -#warning "This project uses features only available in iOS SDK 5.0 and later." -#endif - -#ifdef __OBJC__ - #import - #import - #import - #import - #import "MPMoviePlayerController+BackgroundPlayback.h" -#endif diff --git a/XCDYouTubeKit Demo/iOS Demo/VideoPickerController.h b/XCDYouTubeKit Demo/iOS Demo/VideoPickerController.h index efcfef84..20bd9ea5 100644 --- a/XCDYouTubeKit Demo/iOS Demo/VideoPickerController.h +++ b/XCDYouTubeKit Demo/iOS Demo/VideoPickerController.h @@ -6,7 +6,7 @@ // Copyright (c) 2015 Cédric Luthi. All rights reserved. // -#import +@import UIKit; @class VideoPickerController; diff --git a/XCDYouTubeKit Tests/Cassettes/XCDYouTubeProtectedVideosTestCase/testProtectedVEVOIsPlayable.json b/XCDYouTubeKit Tests/Cassettes/XCDYouTubeProtectedVideosTestCase/testProtectedVEVOIsPlayable.json index 4497b32b..d89010a3 100644 --- a/XCDYouTubeKit Tests/Cassettes/XCDYouTubeProtectedVideosTestCase/testProtectedVEVOIsPlayable.json +++ b/XCDYouTubeKit Tests/Cassettes/XCDYouTubeProtectedVideosTestCase/testProtectedVEVOIsPlayable.json @@ -1,114 +1,121 @@ [ { - "body" : "