Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,30 @@ import UIKit
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let testURL = NSURL(string: "https://www.youtube.com/watch?v=swZJwZeMesk")!
Youtube.h264videosWithYoutubeURL(testURL) { (videoInfo, error) -> Void in
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
let testURL = NSURL(string: "https://www.youtube.com/watch?v=_SCdj9d8SUQ&list=RD_SCdj9d8SUQ&start_radio=1")!
Youtube.h264videosWithYoutubeURL(youtubeURL: testURL) { (videoInfo, error) -> Void in
if let videoURLString = videoInfo?["url"] as? String,
videoTitle = videoInfo?["title"] as? String {
let videoTitle = videoInfo?["title"] as? String {
print("\(videoTitle)")
print("\(videoURLString)")
URLSession.shared.dataTask(with: URL(string: videoURLString)!, completionHandler: { (data, response, error) in
if let data = data {
print(data.count)
}
}).resume()
}
}
return true
}

func applicationWillResignActive(application: UIApplication) { }
func applicationWillResignActive(_ application: UIApplication) { }

func applicationDidEnterBackground(application: UIApplication) { }
func applicationDidEnterBackground(_ application: UIApplication) { }

func applicationWillEnterForeground(application: UIApplication) { }
func applicationWillEnterForeground(_ application: UIApplication) { }

func applicationDidBecomeActive(application: UIApplication) { }
func applicationDidBecomeActive(_ application: UIApplication) { }

func applicationWillTerminate(application: UIApplication) { }
func applicationWillTerminate(_ application: UIApplication) { }
}
145 changes: 37 additions & 108 deletions YoutubeSourceParserKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,10 @@
/* Begin PBXBuildFile section */
B24965DC1C3397960050DF64 /* Youtube.swift in Sources */ = {isa = PBXBuildFile; fileRef = B24965D71C3397960050DF64 /* Youtube.swift */; };
B24965E01C33979F0050DF64 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B24965DF1C33979F0050DF64 /* Images.xcassets */; };
B24965E21C3397D70050DF64 /* YoutubeSourceParserKitTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B24965DA1C3397960050DF64 /* YoutubeSourceParserKitTests.swift */; };
B24965E41C3398310050DF64 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B24965E31C3398310050DF64 /* AppDelegate.swift */; };
C3A838781BB746A0000C5D33 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C3A838771BB746A0000C5D33 /* Default-568h@2x.png */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
C3FC20E31B4996150000E818 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = C3FC20C51B4996150000E818 /* Project object */;
proxyType = 1;
remoteGlobalIDString = C3FC20CC1B4996150000E818;
remoteInfo = "youtube-parser";
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
B24965D61C3397960050DF64 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
B24965D71C3397960050DF64 /* Youtube.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Youtube.swift; sourceTree = "<group>"; };
Expand All @@ -33,7 +22,6 @@
B24965E31C3398310050DF64 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
C3A838771BB746A0000C5D33 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
C3FC20CD1B4996150000E818 /* YoutubeSourceParserKit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YoutubeSourceParserKit.app; sourceTree = BUILT_PRODUCTS_DIR; };
C3FC20E21B4996150000E818 /* YoutubeSourceParserKit.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = YoutubeSourceParserKit.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -44,13 +32,6 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
C3FC20DF1B4996150000E818 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand Down Expand Up @@ -88,7 +69,6 @@
isa = PBXGroup;
children = (
C3FC20CD1B4996150000E818 /* YoutubeSourceParserKit.app */,
C3FC20E21B4996150000E818 /* YoutubeSourceParserKit.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -113,24 +93,6 @@
productReference = C3FC20CD1B4996150000E818 /* YoutubeSourceParserKit.app */;
productType = "com.apple.product-type.application";
};
C3FC20E11B4996150000E818 /* YoutubeSourceParserKitTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = C3FC20EF1B4996150000E818 /* Build configuration list for PBXNativeTarget "YoutubeSourceParserKitTests" */;
buildPhases = (
C3FC20DE1B4996150000E818 /* Sources */,
C3FC20DF1B4996150000E818 /* Frameworks */,
C3FC20E01B4996150000E818 /* Resources */,
);
buildRules = (
);
dependencies = (
C3FC20E41B4996150000E818 /* PBXTargetDependency */,
);
name = YoutubeSourceParserKitTests;
productName = "youtube-parserTests";
productReference = C3FC20E21B4996150000E818 /* YoutubeSourceParserKit.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -139,15 +101,13 @@
attributes = {
LastSwiftMigration = 0710;
LastSwiftUpdateCheck = 0710;
LastUpgradeCheck = 0710;
LastUpgradeCheck = 1000;
ORGANIZATIONNAME = "Toygar Dündaralp";
TargetAttributes = {
C3FC20CC1B4996150000E818 = {
CreatedOnToolsVersion = 6.4;
};
C3FC20E11B4996150000E818 = {
CreatedOnToolsVersion = 6.4;
TestTargetID = C3FC20CC1B4996150000E818;
DevelopmentTeam = 32G2AFJ7A5;
ProvisioningStyle = Automatic;
};
};
};
Expand All @@ -156,6 +116,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand All @@ -165,7 +126,6 @@
projectRoot = "";
targets = (
C3FC20CC1B4996150000E818 /* YoutubeSourceParserKit */,
C3FC20E11B4996150000E818 /* YoutubeSourceParserKitTests */,
);
};
/* End PBXProject section */
Expand All @@ -180,13 +140,6 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
C3FC20E01B4996150000E818 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand All @@ -199,24 +152,8 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
C3FC20DE1B4996150000E818 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
B24965E21C3397D70050DF64 /* YoutubeSourceParserKitTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
C3FC20E41B4996150000E818 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = C3FC20CC1B4996150000E818 /* YoutubeSourceParserKit */;
targetProxy = C3FC20E31B4996150000E818 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
C3FC20EA1B4996150000E818 /* Debug */ = {
isa = XCBuildConfiguration;
Expand All @@ -226,13 +163,23 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down Expand Up @@ -272,13 +219,23 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand All @@ -297,6 +254,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
Expand All @@ -307,11 +265,16 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 32G2AFJ7A5;
INFOPLIST_FILE = "$(SRCROOT)/YoutubeSourceParserKit/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.dundaralp.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_BUNDLE_IDENTIFIER = com.dundaralp.YoutubeSourceParserKit1;
PRODUCT_NAME = YoutubeSourceParserKit;
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -320,41 +283,16 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 32G2AFJ7A5;
INFOPLIST_FILE = "$(SRCROOT)/YoutubeSourceParserKit/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.dundaralp.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_BUNDLE_IDENTIFIER = com.dundaralp.YoutubeSourceParserKit1;
PRODUCT_NAME = YoutubeSourceParserKit;
};
name = Release;
};
C3FC20F01B4996150000E818 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = "";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = "youtube-parserTests/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.dundaralp.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = YoutubeSourceParserKit;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/YoutubeSourceParserKit.app/YoutubeSourceParserKit";
};
name = Debug;
};
C3FC20F11B4996150000E818 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = "";
INFOPLIST_FILE = "youtube-parserTests/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.dundaralp.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = YoutubeSourceParserKit;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/YoutubeSourceParserKit.app/YoutubeSourceParserKit";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -379,15 +317,6 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C3FC20EF1B4996150000E818 /* Build configuration list for PBXNativeTarget "YoutubeSourceParserKitTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C3FC20F01B4996150000E818 /* Debug */,
C3FC20F11B4996150000E818 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = C3FC20C51B4996150000E818 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
Expand Down Expand Up @@ -30,6 +40,16 @@
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
Expand Down Expand Up @@ -64,6 +84,11 @@
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
Expand Down
Loading