-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(native_authentication): Bump dependencies
- Updates `ffigen`, `jnigen`, and `objective_c` to latest versions
- Loading branch information
Showing
13 changed files
with
26,413 additions
and
25,341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 47 additions & 61 deletions
108
packages/native/authentication/ios/Classes/AuthenticationServices.ffi.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,84 @@ | ||
#include <stdint.h> | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <UIKit/UIApplication.h> | ||
#import <UIKit/UIDevice.h> | ||
#import <AuthenticationServices/ASFoundation.h> | ||
#import <AuthenticationServices/ASWebAuthenticationSession.h> | ||
#import <AuthenticationServices/ASWebAuthenticationSessionCallback.h> | ||
|
||
#if !__has_feature(objc_arc) | ||
#error "This file must be compiled with ARC enabled" | ||
#endif | ||
|
||
id objc_retain(id); | ||
id objc_retainBlock(id); | ||
|
||
typedef void (^ListenerBlock)(NSTimer* ); | ||
ListenerBlock wrapListenerBlock_ObjCBlock_ffiVoid_NSTimer(ListenerBlock block) { | ||
ListenerBlock wrapper = [^void(NSTimer* arg0) { | ||
block([arg0 retain]); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock wrapListenerBlock_ObjCBlock_ffiVoid_NSTimer(ListenerBlock block) NS_RETURNS_RETAINED { | ||
return ^void(NSTimer* arg0) { | ||
block(objc_retain(arg0)); | ||
}; | ||
} | ||
|
||
typedef void (^ListenerBlock1)(UIImage* ); | ||
ListenerBlock1 wrapListenerBlock_ObjCBlock_ffiVoid_UIImage(ListenerBlock1 block) { | ||
ListenerBlock1 wrapper = [^void(UIImage* arg0) { | ||
block([arg0 retain]); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock1 wrapListenerBlock_ObjCBlock_ffiVoid_UIImage(ListenerBlock1 block) NS_RETURNS_RETAINED { | ||
return ^void(UIImage* arg0) { | ||
block(objc_retain(arg0)); | ||
}; | ||
} | ||
|
||
typedef void (^ListenerBlock2)(id ); | ||
ListenerBlock2 wrapListenerBlock_ObjCBlock_ffiVoid_objcObjCObject(ListenerBlock2 block) { | ||
ListenerBlock2 wrapper = [^void(id arg0) { | ||
block([arg0 retain]); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock2 wrapListenerBlock_ObjCBlock_ffiVoid_objcObjCObject(ListenerBlock2 block) NS_RETURNS_RETAINED { | ||
return ^void(id arg0) { | ||
block(objc_retain(arg0)); | ||
}; | ||
} | ||
|
||
typedef void (^ListenerBlock3)(NSError* ); | ||
ListenerBlock3 wrapListenerBlock_ObjCBlock_ffiVoid_NSError(ListenerBlock3 block) { | ||
ListenerBlock3 wrapper = [^void(NSError* arg0) { | ||
block([arg0 retain]); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock3 wrapListenerBlock_ObjCBlock_ffiVoid_NSError(ListenerBlock3 block) NS_RETURNS_RETAINED { | ||
return ^void(NSError* arg0) { | ||
block(objc_retain(arg0)); | ||
}; | ||
} | ||
|
||
typedef void (^ListenerBlock4)(UIAction* ); | ||
ListenerBlock4 wrapListenerBlock_ObjCBlock_ffiVoid_UIAction(ListenerBlock4 block) { | ||
ListenerBlock4 wrapper = [^void(UIAction* arg0) { | ||
block([arg0 retain]); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock4 wrapListenerBlock_ObjCBlock_ffiVoid_UIAction(ListenerBlock4 block) NS_RETURNS_RETAINED { | ||
return ^void(UIAction* arg0) { | ||
block(objc_retain(arg0)); | ||
}; | ||
} | ||
|
||
typedef void (^ListenerBlock5)(UIAction* , id , void * , UIControlEvents , BOOL * ); | ||
ListenerBlock5 wrapListenerBlock_ObjCBlock_ffiVoid_UIAction_objcObjCObject_objcObjCSelector_UIControlEvents_bool(ListenerBlock5 block) { | ||
ListenerBlock5 wrapper = [^void(UIAction* arg0, id arg1, void * arg2, UIControlEvents arg3, BOOL * arg4) { | ||
block([arg0 retain], [arg1 retain], arg2, arg3, arg4); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock5 wrapListenerBlock_ObjCBlock_ffiVoid_UIAction_objcObjCObject_objcObjCSelector_UIControlEvents_bool(ListenerBlock5 block) NS_RETURNS_RETAINED { | ||
return ^void(UIAction* arg0, id arg1, void * arg2, UIControlEvents arg3, BOOL * arg4) { | ||
block(objc_retain(arg0), objc_retain(arg1), arg2, arg3, arg4); | ||
}; | ||
} | ||
|
||
typedef void (^ListenerBlock6)(NSInputStream* , NSOutputStream* , NSError* ); | ||
ListenerBlock6 wrapListenerBlock_ObjCBlock_ffiVoid_NSInputStream_NSOutputStream_NSError(ListenerBlock6 block) { | ||
ListenerBlock6 wrapper = [^void(NSInputStream* arg0, NSOutputStream* arg1, NSError* arg2) { | ||
block([arg0 retain], [arg1 retain], [arg2 retain]); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock6 wrapListenerBlock_ObjCBlock_ffiVoid_NSInputStream_NSOutputStream_NSError(ListenerBlock6 block) NS_RETURNS_RETAINED { | ||
return ^void(NSInputStream* arg0, NSOutputStream* arg1, NSError* arg2) { | ||
block(objc_retain(arg0), objc_retain(arg1), objc_retain(arg2)); | ||
}; | ||
} | ||
|
||
typedef void (^ListenerBlock7)(NSDate* , BOOL , BOOL * ); | ||
ListenerBlock7 wrapListenerBlock_ObjCBlock_ffiVoid_NSDate_bool_bool(ListenerBlock7 block) { | ||
ListenerBlock7 wrapper = [^void(NSDate* arg0, BOOL arg1, BOOL * arg2) { | ||
block([arg0 retain], arg1, arg2); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock7 wrapListenerBlock_ObjCBlock_ffiVoid_NSDate_bool_bool(ListenerBlock7 block) NS_RETURNS_RETAINED { | ||
return ^void(NSDate* arg0, BOOL arg1, BOOL * arg2) { | ||
block(objc_retain(arg0), arg1, arg2); | ||
}; | ||
} | ||
|
||
typedef void (^ListenerBlock8)(NSError* ); | ||
ListenerBlock8 wrapListenerBlock_ObjCBlock_ffiVoid_NSError1(ListenerBlock8 block) { | ||
ListenerBlock8 wrapper = [^void(NSError* arg0) { | ||
block([arg0 retain]); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock8 wrapListenerBlock_ObjCBlock_ffiVoid_NSError1(ListenerBlock8 block) NS_RETURNS_RETAINED { | ||
return ^void(NSError* arg0) { | ||
block(objc_retain(arg0)); | ||
}; | ||
} | ||
|
||
typedef void (^ListenerBlock9)(NSURL* , NSError* ); | ||
ListenerBlock9 wrapListenerBlock_ObjCBlock_ffiVoid_NSURL_NSError(ListenerBlock9 block) { | ||
ListenerBlock9 wrapper = [^void(NSURL* arg0, NSError* arg1) { | ||
block([arg0 retain], [arg1 retain]); | ||
} copy]; | ||
[block release]; | ||
return wrapper; | ||
ListenerBlock9 wrapListenerBlock_ObjCBlock_ffiVoid_NSURL_NSError(ListenerBlock9 block) NS_RETURNS_RETAINED { | ||
return ^void(NSURL* arg0, NSError* arg1) { | ||
block(objc_retain(arg0), objc_retain(arg1)); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.