mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-26 15:59:24 -05:00
16 lines
537 B
Mathematica
16 lines
537 B
Mathematica
|
#import "VeilidPlugin.h"
|
||
|
#if __has_include(<veilid/veilid-Swift.h>)
|
||
|
#import <veilid/veilid-Swift.h>
|
||
|
#else
|
||
|
// Support project import fallback if the generated compatibility header
|
||
|
// is not copied when this plugin is created as a library.
|
||
|
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
|
||
|
#import "veilid-Swift.h"
|
||
|
#endif
|
||
|
|
||
|
@implementation VeilidPlugin
|
||
|
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
|
||
|
[SwiftVeilidPlugin registerWithRegistrar:registrar];
|
||
|
}
|
||
|
@end
|