diff --git a/NextcloudTalk/VLCKitVideoViewController.swift b/NextcloudTalk/VLCKitVideoViewController.swift index 8fb2c73ec..28fa7db70 100644 --- a/NextcloudTalk/VLCKitVideoViewController.swift +++ b/NextcloudTalk/VLCKitVideoViewController.swift @@ -184,7 +184,7 @@ import MobileVLCKit private func mediaReachedEnd() -> Bool { guard let mediaPlayer = self.mediaPlayer else { return false } - return mediaPlayer.remainingTime.stringValue == "00:00" + return mediaPlayer.remainingTime?.stringValue == "00:00" } // MARK: Controls Visibility diff --git a/Podfile b/Podfile index 39be42db9..194a8bed6 100644 --- a/Podfile +++ b/Podfile @@ -1,28 +1,33 @@ source 'https://cdn.cocoapods.org/' platform :ios, '15.0' +def common_dependencies +pod 'AFNetworking', '3.2.0' +pod 'UICKeyChainStore' +end + +def common_dependencies_ext +common_dependencies +pod 'MBProgressHUD', '~> 1.2.0' +end + target "NextcloudTalk" do -pod 'AFNetworking', "3.2.0" +common_dependencies_ext pod 'DateTools' pod 'JDStatusBarNotification' -pod 'UICKeyChainStore' pod 'MaterialComponents/ActivityIndicator' pod 'Toast', '~> 4.0.0' -pod 'MBProgressHUD', '~> 1.2.0' pod 'libPhoneNumber-iOS' pod 'MZTimerLabel' -pod 'MobileVLCKit', '~>3.3.0' +pod 'MobileVLCKit', '~> 3.5.0' end target "NotificationServiceExtension" do -pod 'AFNetworking', "3.2.0" -pod 'UICKeyChainStore' +common_dependencies end target "ShareExtension" do -pod 'AFNetworking', "3.2.0" -pod 'UICKeyChainStore' -pod 'MBProgressHUD', '~> 1.2.0' +common_dependencies_ext end pre_install do |installer| diff --git a/ShareExtension/ShareViewController.m b/ShareExtension/ShareViewController.m index c8fdba252..fc8dcb58e 100644 --- a/ShareExtension/ShareViewController.m +++ b/ShareExtension/ShareViewController.m @@ -23,6 +23,7 @@ #import "ShareViewController.h" #import +#import #import "NCAPIController.h" #import "NCAppBranding.h"