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-cli/assets-lib/iOS/Classes/TemplateLibrary.m

12 lines
539 B
Mathematica
Raw Normal View History

2021-08-04 15:32:19 +08:00
#import "__$RawName__Library.h"
#import "DoricDemoPlugin.h"
@implementation __$RawName__Library
- (void)load:(DoricRegistry *)registry {
NSString *path = [[NSBundle mainBundle] bundlePath];
NSString *fullPath = [path stringByAppendingPathComponent:@"bundle___$__.js"];
NSString *jsContent = [NSString stringWithContentsOfFile:fullPath encoding:NSUTF8StringEncoding error:nil];
[registry registerJSBundle:jsContent withName:@"__$__"];
[registry registerNativePlugin:DoricDemoPlugin.class withName:@"demoPlugin"];
}
@end