Commit 040be9d5 authored by Felix Paul Kühne's avatar Felix Paul Kühne

OneDrive classes: added support for ATV

parent 834a9bd0
......@@ -86,7 +86,9 @@
scopes:_liveScopes
delegate:self
userState:@"login"];
#if TARGET_OS_IOS
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];
#endif
}
- (void)logout
......@@ -111,7 +113,9 @@
- (void)authCompleted:(LiveConnectSessionStatus)status session:(LiveConnectSession *)session userState:(id)userState
{
#if TARGET_OS_IOS
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
#endif
APLog(@"OneDrive: authCompleted, status %i, state %@", status, userState);
......@@ -137,7 +141,9 @@
- (void)authFailed:(NSError *)error userState:(id)userState
{
#if TARGET_OS_IOS
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
#endif
APLog(@"OneDrive auth failed: %@, %@", error, userState);
_activeSession = NO;
......
......@@ -13,12 +13,18 @@
#import "VLCOneDriveObject.h"
#import "VLCHTTPFileDownloader.h"
#if TARGET_OS_IOS
@interface VLCOneDriveObject () <VLCHTTPFileDownloader>
{
VLCHTTPFileDownloader *_fileDownloader;
}
@end
#else
@interface VLCOneDriveObject ()
@end
#endif
@implementation VLCOneDriveObject
......@@ -168,9 +174,11 @@
- (void)saveObjectToDocuments
{
#if TARGET_OS_IOS
_fileDownloader = [[VLCHTTPFileDownloader alloc] init];
_fileDownloader.delegate = self;
[_fileDownloader downloadFileFromURL:[NSURL URLWithString:self.downloadPath] withFileName:self.name];
#endif
}
- (void)downloadStarted
......
......@@ -68,6 +68,9 @@
7D0363AC1B2F325500CC0343 /* MediaLibrary.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 7D0363A71B2F325500CC0343 /* MediaLibrary.xcdatamodeld */; };
7D0C34E61BD94DEE0058CD19 /* VLCCloudStorageTableViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7D0C34E51BD94DEE0058CD19 /* VLCCloudStorageTableViewController.xib */; };
7D0C34E71BD951080058CD19 /* NSString+SupportedMedia.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D3784C5183A9972009EE944 /* NSString+SupportedMedia.m */; };
7D0C352F1BD97BC50058CD19 /* libLiveTVSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D0C352E1BD97BC50058CD19 /* libLiveTVSDK.a */; };
7D0C35331BD97C100058CD19 /* VLCOneDriveController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D1052ED1A4DCD1E00295F08 /* VLCOneDriveController.m */; };
7D0C35341BD97C7B0058CD19 /* VLCOneDriveObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 7DB847D61A5871570002DC30 /* VLCOneDriveObject.m */; };
7D1052E91A4DCC1100295F08 /* VLCOneDriveTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D1052E81A4DCC1100295F08 /* VLCOneDriveTableViewController.m */; };
7D1052EE1A4DCD1E00295F08 /* VLCOneDriveController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D1052ED1A4DCD1E00295F08 /* VLCOneDriveController.m */; };
7D1276621AADA0E600F0260C /* VLCMultiSelectionMenuView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D1276611AADA0E600F0260C /* VLCMultiSelectionMenuView.m */; };
......@@ -533,6 +536,7 @@
7D0363AA1B2F325500CC0343 /* MediaLibrary-2.6.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = "MediaLibrary-2.6.xcdatamodel"; sourceTree = "<group>"; };
7D0363AB1B2F325500CC0343 /* MediaLibrary-2.7.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = "MediaLibrary-2.7.xcdatamodel"; sourceTree = "<group>"; };
7D0C34E51BD94DEE0058CD19 /* VLCCloudStorageTableViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = VLCCloudStorageTableViewController.xib; path = "VLC for Apple TV/VLCCloudStorageTableViewController.xib"; sourceTree = SOURCE_ROOT; };
7D0C352E1BD97BC50058CD19 /* libLiveTVSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libLiveTVSDK.a; path = "ImportedSources/OneDrive/src/build/Debug-appletvos/libLiveTVSDK.a"; sourceTree = "<group>"; };
7D1052E71A4DCC1100295F08 /* VLCOneDriveTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VLCOneDriveTableViewController.h; path = Sources/VLCOneDriveTableViewController.h; sourceTree = SOURCE_ROOT; };
7D1052E81A4DCC1100295F08 /* VLCOneDriveTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = VLCOneDriveTableViewController.m; path = Sources/VLCOneDriveTableViewController.m; sourceTree = SOURCE_ROOT; };
7D1052EB1A4DCC4B00295F08 /* VLCOneDriveConstants.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = VLCOneDriveConstants.h; path = Sources/VLCOneDriveConstants.h; sourceTree = SOURCE_ROOT; };
......@@ -948,6 +952,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
7D0C352F1BD97BC50058CD19 /* libLiveTVSDK.a in Frameworks */,
7DC71D0E1BC81F70001FACAA /* AVFoundation.framework in Frameworks */,
7DF28AE11BA31C580030C944 /* libc++.tbd in Frameworks */,
7DF28ADF1BA31C4D0030C944 /* libiconv.tbd in Frameworks */,
......@@ -1484,6 +1489,7 @@
7D94FCDD16DE7D1000F2623B /* Frameworks */ = {
isa = PBXGroup;
children = (
7D0C352E1BD97BC50058CD19 /* libLiveTVSDK.a */,
7D8968701BD3058800F4EAAD /* LocalAuthentication.framework */,
7DC71D0D1BC81F70001FACAA /* AVFoundation.framework */,
7DF28AE41BA31D9C0030C944 /* libSystem.tbd */,
......@@ -2500,6 +2506,8 @@
7D5278E21BD7E06E00D0CA0E /* VLCDropboxController.m in Sources */,
7DEC8BD91BD670EB006E1093 /* VLCPlaybackNavigationController.m in Sources */,
7DEC8BDA1BD67112006E1093 /* VLCFrostedGlasView.m in Sources */,
7D0C35341BD97C7B0058CD19 /* VLCOneDriveObject.m in Sources */,
7D0C35331BD97C100058CD19 /* VLCOneDriveController.m in Sources */,
7D60696B1BD93AC800AB765C /* VLCDropboxTableViewController.m in Sources */,
7D1329441BA1F10100BE647E /* AppleTVAppDelegate.m in Sources */,
7D1329411BA1F10100BE647E /* main.m in Sources */,
......@@ -2815,6 +2823,7 @@
"$(inherited)",
"$(CONFIGURATION_BUILD_DIR)",
"$(SRCROOT)/ImportedSources/Dropbox/DropboxSDK/Classes/**",
"$(SRCROOT)/ImportedSources/OneDrive/src/LiveSDK/Library/**",
);
INFOPLIST_FILE = "VLC for Apple TV/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
......@@ -2822,6 +2831,7 @@
"$(inherited)",
"$(PROJECT_DIR)/ImportedSources/VLCKit/build/Debug-appletvos",
"$(SDKROOT)/usr/lib/system",
"$(PROJECT_DIR)/ImportedSources/OneDrive/src/build/Debug-appletvos",
);
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_IDENTIFIER_PREFIX}.vlc-ios";
......@@ -2864,6 +2874,7 @@
"$(inherited)",
"$(CONFIGURATION_BUILD_DIR)",
"$(SRCROOT)/ImportedSources/Dropbox/DropboxSDK/Classes/**",
"$(SRCROOT)/ImportedSources/OneDrive/src/LiveSDK/Library/**",
);
INFOPLIST_FILE = "VLC for Apple TV/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
......@@ -2871,6 +2882,7 @@
"$(inherited)",
"$(PROJECT_DIR)/ImportedSources/VLCKit/build/Debug-appletvos",
"$(SDKROOT)/usr/lib/system",
"$(PROJECT_DIR)/ImportedSources/OneDrive/src/build/Debug-appletvos",
);
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_IDENTIFIER_PREFIX}.vlc-ios";
......@@ -2913,6 +2925,7 @@
"$(inherited)",
"$(CONFIGURATION_BUILD_DIR)",
"$(SRCROOT)/ImportedSources/Dropbox/DropboxSDK/Classes/**",
"$(SRCROOT)/ImportedSources/OneDrive/src/LiveSDK/Library/**",
);
INFOPLIST_FILE = "VLC for Apple TV/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
......@@ -2920,6 +2933,7 @@
"$(inherited)",
"$(PROJECT_DIR)/ImportedSources/VLCKit/build/Debug-appletvos",
"$(SDKROOT)/usr/lib/system",
"$(PROJECT_DIR)/ImportedSources/OneDrive/src/build/Debug-appletvos",
);
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_IDENTIFIER_PREFIX}.vlc-ios";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment