Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
9b544de3
Commit
9b544de3
authored
Mar 01, 2018
by
Carola Nitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Sources/KeychainCoordinator.swift
Sources/KeychainCoordinator.swift
+2
-2
Sources/VLCWatchCommunication.m
Sources/VLCWatchCommunication.m
+5
-1
No files found.
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
Markdown
is supported
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