Soft-link LocalAuthentication.Framework
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Mar 2018 08:56:09 +0000 (08:56 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Mar 2018 08:56:09 +0000 (08:56 +0000)
https://bugs.webkit.org/show_bug.cgi?id=183587
<rdar://problem/38219763>

Reviewed by Brian Burg.

* UIProcess/CredentialManagement/cocoa/WebCredentialsMessengerProxyCocoa.mm:
(WebKit::WebCredentialsMessengerProxy::platformIsUserVerifyingPlatformAuthenticatorAvailable):
* WebKit.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229575 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/CredentialManagement/cocoa/WebCredentialsMessengerProxyCocoa.mm
Source/WebKit/WebKit.xcodeproj/project.pbxproj

index 32cd3c2..446f62d 100644 (file)
@@ -1,3 +1,15 @@
+2018-03-13  Jiewen Tan  <jiewen_tan@apple.com>
+
+        Soft-link LocalAuthentication.Framework
+        https://bugs.webkit.org/show_bug.cgi?id=183587
+        <rdar://problem/38219763>
+
+        Reviewed by Brian Burg.
+
+        * UIProcess/CredentialManagement/cocoa/WebCredentialsMessengerProxyCocoa.mm:
+        (WebKit::WebCredentialsMessengerProxy::platformIsUserVerifyingPlatformAuthenticatorAvailable):
+        * WebKit.xcodeproj/project.pbxproj:
+
 2018-03-12  Dean Jackson  <dino@apple.com>
 
         Add a WKWebViewContentProvider for system previews
index 216146a..f4ac275 100644 (file)
 #import <LocalAuthentication/LocalAuthentication.h>
 #import <WebCore/NotImplemented.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/SoftLinking.h>
+
+SOFT_LINK_FRAMEWORK(LocalAuthentication)
+SOFT_LINK_CLASS(LocalAuthentication, LAContext);
 
 namespace WebKit {
 
@@ -40,7 +44,7 @@ void WebCredentialsMessengerProxy::platformIsUserVerifyingPlatformAuthenticatorA
     ASSERT_UNUSED(messageId, messageId);
     notImplemented();
 #else
-    auto context = adoptNS([[LAContext alloc] init]);
+    auto context = adoptNS([allocLAContextInstance() init]);
     NSError *error = nil;
 
     if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error])
index d7c341e..f36fb3d 100644 (file)
                53BA47D01DC2EF5E004DF4AD /* NetworkDataTaskBlob.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 539EB5461DC2EE40009D48CF /* NetworkDataTaskBlob.cpp */; };
                53BA47D11DC2EF5E004DF4AD /* NetworkDataTaskBlob.h in Headers */ = {isa = PBXBuildFile; fileRef = 539EB5471DC2EE40009D48CF /* NetworkDataTaskBlob.h */; };
                53DEA3661DDE423100E82648 /* json.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 53DEA3651DDE422E00E82648 /* json.hpp */; };
-               5750F32B2032D4E500389347 /* LocalAuthentication.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5750F32A2032D4E500389347 /* LocalAuthentication.framework */; };
                5760828E2029895E00116678 /* WebCredentialsMessenger.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5760828C2029854200116678 /* WebCredentialsMessenger.cpp */; };
                57608298202BD8BA00116678 /* WebCredentialsMessengerProxy.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57608296202BD8BA00116678 /* WebCredentialsMessengerProxy.cpp */; };
                5760829C202D2C3C00116678 /* WebCredentialsMessengerMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5760829020298FBD00116678 /* WebCredentialsMessengerMessageReceiver.cpp */; };
                        files = (
                                3766F9EE189A1241003CF19B /* JavaScriptCore.framework in Frameworks */,
                                3766F9F1189A1254003CF19B /* libicucore.dylib in Frameworks */,
-                               5750F32B2032D4E500389347 /* LocalAuthentication.framework in Frameworks */,
                                3766F9EF189A1244003CF19B /* QuartzCore.framework in Frameworks */,
                                37694525184FC6B600CDE21F /* Security.framework in Frameworks */,
                                37BEC4DD1948FC6A008B4286 /* WebCore.framework in Frameworks */,