photo_gallery/ios/Classes/PhotoGalleryPlugin.m

16 lines
590 B
Mathematica
Raw Normal View History

2020-08-14 18:07:27 +08:00
#import "PhotoGalleryPlugin.h"
#if __has_include(<photo_gallery/photo_gallery-Swift.h>)
#import <photo_gallery/photo_gallery-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 "photo_gallery-Swift.h"
#endif
@implementation PhotoGalleryPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
[SwiftPhotoGalleryPlugin registerWithRegistrar:registrar];
}
@end