This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-iOS/Example/Example/DemoLibrary.m
osborn be4fb05f91
Feature/zpf (#564)
* iOS: fix memory leak of blur effect

* js: fix callback cause memory leak
2022-12-20 15:06:46 +08:00

28 lines
553 B
Objective-C

//
// Created by pengfei.zhou on 2019/12/11.
// Copyright (c) 2019 pengfei.zhou. All rights reserved.
//
#import "DemoLibrary.h"
@interface DoricDemoPlugin : DoricNativePlugin
@end
@implementation DoricDemoPlugin
- (void)test {
}
- (void)test2:(NSString *)val withPromise:(DoricPromise *)promise {
dispatch_async(dispatch_get_main_queue(), ^{
[promise resolve:nil];
});
}
@end
@implementation DemoLibrary
- (void)load:(DoricRegistry *)registry {
[registry registerNativePlugin:[DoricDemoPlugin class] withName:@"demo"];
}
@end