Quellcode durchsuchen

Box: removed invalid urlscheme and removed false overwrite of mediaListUpdated

Carola Nitz vor 10 Jahren
Ursprung
Commit
f8e8fda48e
3 geänderte Dateien mit 2 neuen und 16 gelöschten Zeilen
  1. 0 10
      Sources/VLC for iOS-Info.plist
  2. 0 1
      Sources/VLCBoxConstants.h
  3. 2 5
      Sources/VLCBoxTableViewController.m

+ 0 - 10
Sources/VLC for iOS-Info.plist

@@ -182,16 +182,6 @@
 				<string>vlc-x-callback</string>
 			</array>
 		</dict>
-		<dict>
-			<key>CFBundleTypeRole</key>
-			<string>Viewer</string>
-			<key>CFBundleURLName</key>
-			<string>Box</string>
-			<key>CFBundleURLSchemes</key>
-			<array>
-				<string>boxsdk-nrjwriavk0mf8j6bhra56tyn58d5i7ci://boxsdkoauth2redirect</string>
-			</array>
-		</dict>
 	</array>
 	<key>CFBundleVersion</key>
 	<string>1</string>

+ 0 - 1
Sources/VLCBoxConstants.h

@@ -13,7 +13,6 @@
 #define kVLCBoxClientID @"nrjwriavk0mf8j6bhra56tyn58d5i7ci"
 #warning Box app secret missing, login will fail
 #define kVLCBoxClientSecret @""
-#define kVLCBoxRedirectURL @"boxsdk-nrjwriavk0mf8j6bhra56tyn58d5i7ci://boxsdkoauth2redirect"
 #define kVLCBoxService @"kVLCBoxService"
 #define kVLCBoxAccount @"kVLCBoxAccount"
 

+ 2 - 5
Sources/VLCBoxTableViewController.m

@@ -76,7 +76,8 @@
 - (UIViewController *)createAuthController
 {
     NSURL *authorizationURL = [[BoxSDK sharedSDK].OAuth2Session authorizeURL];
-    BoxAuthorizationViewController *authorizationController = [[BoxAuthorizationViewController alloc] initWithAuthorizationURL:authorizationURL redirectURI:kVLCBoxRedirectURL];
+    NSString *redirectURLString = [[BoxSDK sharedSDK].OAuth2Session redirectURIString];
+    BoxAuthorizationViewController *authorizationController = [[BoxAuthorizationViewController alloc] initWithAuthorizationURL:authorizationURL redirectURI:redirectURLString];
     authorizationController.delegate = self;
     return authorizationController;
 }
@@ -116,10 +117,6 @@
 
 #pragma mark - Table view delegate
 
-- (void)mediaListUpdated
-{
-    [self.tableView reloadData];
-}
 
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 {