Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated repo with all fixes so far, including slow download #552

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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

This file was deleted.

34 changes: 17 additions & 17 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
import PackageDescription

let package = Package(
name: "XCDYouTubeKit",
products: [
.library(name: "XCDYouTubeKit", targets: ["XCDYouTubeKit"])
],
targets: [
.target(
name: "XCDYouTubeKit",
path: ".",
exclude: [
"XCDYouTubeKit/Info.plist",
"XCDYouTubeKit/Configuration.plist",
"XCDYouTubeKit/AppledocSettings.plist"
],
sources: ["XCDYouTubeKit"],
publicHeadersPath: "XCDYouTubeKit"
)
]
name: "XCDYouTubeKit",
products: [
.library(name: "XCDYouTubeKit", targets: ["XCDYouTubeKit"])
],
targets: [
.target(
name: "XCDYouTubeKit",
path: ".",
exclude: [
"XCDYouTubeKit/Info.plist",
"XCDYouTubeKit/Configuration.plist",
"XCDYouTubeKit/AppledocSettings.plist"
],
sources: ["XCDYouTubeKit"],
publicHeadersPath: "XCDYouTubeKit"
)
]
)
30 changes: 15 additions & 15 deletions XCDYouTubeKit Demo/Playground.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import XCDYouTubeKit
#if swift(>=3.0)
import PlaygroundSupport
struct YouTubeVideoQuality {
static let hd720 = NSNumber(value: XCDYouTubeVideoQuality.HD720.rawValue)
static let medium360 = NSNumber(value: XCDYouTubeVideoQuality.medium360.rawValue)
static let small240 = NSNumber(value: XCDYouTubeVideoQuality.small240.rawValue)
}
import PlaygroundSupport
struct YouTubeVideoQuality {
static let hd720 = NSNumber(value: XCDYouTubeVideoQuality.HD720.rawValue)
static let medium360 = NSNumber(value: XCDYouTubeVideoQuality.medium360.rawValue)
static let small240 = NSNumber(value: XCDYouTubeVideoQuality.small240.rawValue)
}
#else
import XCPlayground
typealias Error = NSError
struct YouTubeVideoQuality {
static let hd720 = NSNumber(unsignedLong: XCDYouTubeVideoQuality.HD720.rawValue)
static let medium360 = NSNumber(unsignedLong: XCDYouTubeVideoQuality.Medium360.rawValue)
static let small240 = NSNumber(unsignedLong: XCDYouTubeVideoQuality.Small240.rawValue)
}
import XCPlayground
typealias Error = NSError
enum YouTubeVideoQuality {
static let hd720 = NSNumber(unsignedLong: XCDYouTubeVideoQuality.HD720.rawValue)
static let medium360 = NSNumber(unsignedLong: XCDYouTubeVideoQuality.Medium360.rawValue)
static let small240 = NSNumber(unsignedLong: XCDYouTubeVideoQuality.Small240.rawValue)
}
#endif

setenv("XCDYouTubeKitLogLevel", "0", 1)
Expand All @@ -38,7 +38,7 @@ client.getVideoWithIdentifier("xxxxxxxxxxx") { (video: XCDYouTubeVideo?, error:
}

#if swift(>=3.0)
PlaygroundPage.current.needsIndefiniteExecution = true
PlaygroundPage.current.needsIndefiniteExecution = true
#else
XCPlaygroundPage.currentPage.needsIndefiniteExecution = true
XCPlaygroundPage.currentPage.needsIndefiniteExecution = true
#endif
Loading