Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
9b544de3
Commit
9b544de3
authored
Mar 01, 2018
by
Carola
Browse files
make VLC compile with Xcode 9.3 beta 2
(cherry picked from commit
aa0e659d
)
parent
aeabef37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Sources/KeychainCoordinator.swift
View file @
9b544de3
...
...
@@ -27,7 +27,7 @@ class KeychainCoordinator:NSObject, PAPasscodeViewControllerDelegate {
var
touchIDEnabled
=
UserDefaults
.
standard
.
bool
(
forKey
:
kVLCSettingPasscodeAllowTouchID
)
let
laContext
=
LAContext
()
if
#available(iOS 11.0, *)
,
laContext
.
canEvaluatePolicy
(
.
deviceOwnerAuthenticationWithBiometrics
,
error
:
nil
)
{
if
#available(iOS 11.0
.1
, *)
,
laContext
.
canEvaluatePolicy
(
.
deviceOwnerAuthenticationWithBiometrics
,
error
:
nil
)
{
touchIDEnabled
=
touchIDEnabled
&&
laContext
.
biometryType
==
.
touchID
}
return
touchIDEnabled
...
...
@@ -36,7 +36,7 @@ class KeychainCoordinator:NSObject, PAPasscodeViewControllerDelegate {
var
faceIDEnabled
=
UserDefaults
.
standard
.
bool
(
forKey
:
kVLCSettingPasscodeAllowFaceID
)
let
laContext
=
LAContext
()
if
#available(iOS 11.0, *)
,
laContext
.
canEvaluatePolicy
(
.
deviceOwnerAuthenticationWithBiometrics
,
error
:
nil
)
{
if
#available(iOS 11.0
.1
, *)
,
laContext
.
canEvaluatePolicy
(
.
deviceOwnerAuthenticationWithBiometrics
,
error
:
nil
)
{
faceIDEnabled
=
faceIDEnabled
&&
laContext
.
biometryType
==
.
faceID
}
return
faceIDEnabled
...
...
Sources/VLCWatchCommunication.m
View file @
9b544de3
...
...
@@ -175,7 +175,11 @@ static VLCWatchCommunication *_singeltonInstance = nil;
}
-
(
void
)
requestThumnail
:(
VLCWatchMessage
*
)
message
{
NSString
*
uriString
=
message
.
payload
[
VLCWatchMessageKeyURIRepresentation
];
NSAssert
([
message
.
payload
isKindOfClass
:[
NSDictionary
class
]],
@"the payload needs to be an NSDictionary"
);
if
(
!
[
message
.
payload
isKindOfClass
:[
NSDictionary
class
]])
return
;
NSDictionary
*
payload
=
(
NSDictionary
*
)
message
.
payload
;
NSString
*
uriString
=
payload
[
VLCWatchMessageKeyURIRepresentation
];
NSURL
*
url
=
[
NSURL
URLWithString
:
uriString
];
NSManagedObject
*
object
=
[[
MLMediaLibrary
sharedMediaLibrary
]
objectForURIRepresentation
:
url
];
if
(
object
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment