Skip to content

Commit

Permalink
Updated JSON file to include WWDC 2016 stream URLS.
Browse files Browse the repository at this point in the history
  • Loading branch information
azzoor committed Jul 12, 2016
1 parent 2e109a7 commit 9633c5c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6,157 deletions.
8 changes: 4 additions & 4 deletions WWDC.xcodeproj/project.pbxproj
Expand Up @@ -15,7 +15,7 @@
541C84BF1BFA953500FE5B5D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 541C84BE1BFA953500FE5B5D /* Assets.xcassets */; };
541C84CC1BFAE25900FE5B5D /* VideoTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 541C84CB1BFAE25900FE5B5D /* VideoTableViewController.m */; };
541C84CF1BFAE2F000FE5B5D /* VideoDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 541C84CE1BFAE2F000FE5B5D /* VideoDetailViewController.m */; };
54CF6B691C7E7DA2000086E6 /* videos.json in Resources */ = {isa = PBXBuildFile; fileRef = 54CF6B681C7E7DA2000086E6 /* videos.json */; };
542AA9DB1D34BB0E00B0A8BE /* videos.json in Resources */ = {isa = PBXBuildFile; fileRef = 542AA9DA1D34BB0E00B0A8BE /* videos.json */; };
54CF6B6D1C7E7E2E000086E6 /* screen03.png in Resources */ = {isa = PBXBuildFile; fileRef = 54CF6B6A1C7E7E2E000086E6 /* screen03.png */; };
54CF6B6E1C7E7E2E000086E6 /* screen01.png in Resources */ = {isa = PBXBuildFile; fileRef = 54CF6B6B1C7E7E2E000086E6 /* screen01.png */; };
54CF6B6F1C7E7E2E000086E6 /* screen02.png in Resources */ = {isa = PBXBuildFile; fileRef = 54CF6B6C1C7E7E2E000086E6 /* screen02.png */; };
Expand All @@ -38,7 +38,7 @@
541C84CD1BFAE2F000FE5B5D /* VideoDetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VideoDetailViewController.h; sourceTree = "<group>"; };
541C84CE1BFAE2F000FE5B5D /* VideoDetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VideoDetailViewController.m; sourceTree = "<group>"; };
541C84D01BFAF6DD00FE5B5D /* Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Header.h; sourceTree = "<group>"; };
54CF6B681C7E7DA2000086E6 /* videos.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = videos.json; sourceTree = "<group>"; };
542AA9DA1D34BB0E00B0A8BE /* videos.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = videos.json; sourceTree = "<group>"; };
54CF6B6A1C7E7E2E000086E6 /* screen03.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = screen03.png; sourceTree = "<group>"; };
54CF6B6B1C7E7E2E000086E6 /* screen01.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = screen01.png; sourceTree = "<group>"; };
54CF6B6C1C7E7E2E000086E6 /* screen02.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = screen02.png; sourceTree = "<group>"; };
Expand Down Expand Up @@ -92,10 +92,10 @@
541C84AF1BFA953500FE5B5D /* Supporting Files */ = {
isa = PBXGroup;
children = (
542AA9DA1D34BB0E00B0A8BE /* videos.json */,
541C84BB1BFA953500FE5B5D /* Main.storyboard */,
541C84BE1BFA953500FE5B5D /* Assets.xcassets */,
541C84C01BFA953500FE5B5D /* Info.plist */,
54CF6B681C7E7DA2000086E6 /* videos.json */,
541C84D01BFAF6DD00FE5B5D /* Header.h */,
54CF6B6A1C7E7E2E000086E6 /* screen03.png */,
54CF6B6B1C7E7E2E000086E6 /* screen01.png */,
Expand Down Expand Up @@ -167,7 +167,7 @@
541C84BF1BFA953500FE5B5D /* Assets.xcassets in Resources */,
541C84BD1BFA953500FE5B5D /* Main.storyboard in Resources */,
54CF6B6D1C7E7E2E000086E6 /* screen03.png in Resources */,
54CF6B691C7E7DA2000086E6 /* videos.json in Resources */,
542AA9DB1D34BB0E00B0A8BE /* videos.json in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
2 changes: 1 addition & 1 deletion WWDC/AppDelegate.m
Expand Up @@ -51,7 +51,7 @@ - (void)initializeRootViewControllerWith:(NSArray*)videoArray {
// JSON location = https://raw.githubusercontent.com/azzoor/WWDCTV/master/WWDC/videos.json
- (void)downloadJSONFile {
NSURLSession* downloadSession = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
NSURL* url = [NSURL URLWithString:@"https://raw.githubusercontent.com/azzoor/WWDCTV/master/WWDC/videos.json"];
NSURL *url = [NSURL URLWithString:@"https://raw.githubusercontent.com/azzoor/WWDCTV/master/WWDC/videos.json"];
[[downloadSession dataTaskWithURL:url completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {
NSArray* videoArray;
if (((NSHTTPURLResponse*)response).statusCode == 200) {
Expand Down
8 changes: 4 additions & 4 deletions WWDC/Base.lproj/Main.storyboard
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder.AppleTV.Storyboard" version="3.0" toolsVersion="9532" systemVersion="14F1605" targetRuntime="AppleTV" propertyAccessControl="none" useAutolayout="YES" initialViewController="clk-cX-D8h">
<document type="com.apple.InterfaceBuilder.AppleTV.Storyboard" version="3.0" toolsVersion="10116" systemVersion="15F34" targetRuntime="AppleTV" propertyAccessControl="none" useAutolayout="YES" initialViewController="clk-cX-D8h">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -174,7 +174,7 @@
<scene sceneID="3fj-VY-vTB">
<objects>
<navigationController id="Hpj-PL-kEk" sceneMemberID="viewController">
<navigationBar key="navigationBar" contentMode="scaleToFill" misplaced="YES" id="LJ3-mb-IZT">
<navigationBar key="navigationBar" contentMode="scaleToFill" id="LJ3-mb-IZT">
<rect key="frame" x="0.0" y="0.0" width="1920" height="145"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
Expand Down Expand Up @@ -204,7 +204,7 @@
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="n0k-6E-kpd" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" misplaced="YES" id="KXM-Qh-F80">
<navigationBar key="navigationBar" contentMode="scaleToFill" id="KXM-Qh-F80">
<rect key="frame" x="0.0" y="0.0" width="1920" height="145"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
Expand Down

0 comments on commit 9633c5c

Please sign in to comment.