mirror of https://github.com/darlinghq/darling
Add implementation for LAContext
This commit is contained in:
parent
066cf3975d
commit
988de2cd4b
|
|
@ -27,8 +27,10 @@ add_framework(LocalAuthentication
|
|||
|
||||
SOURCES
|
||||
src/LACFSupport.c
|
||||
src/LAContext.m
|
||||
src/stubs.c
|
||||
|
||||
DEPENDENCIES
|
||||
system
|
||||
Foundation
|
||||
)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2025 Darling Developers
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <LocalAuthentication/LAContext.h>
|
||||
|
||||
#import <Foundation/NSMethodSignature.h>
|
||||
#import <Foundation/NSInvocation.h>
|
||||
|
||||
@implementation LAContext
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
||||
Loading…
Reference in New Issue