Feature/prepare publish (#2)
* add doric-js bundle into vcs * android project read js bundle directly * update iOS project config * update version
This commit is contained in:
@@ -22,7 +22,7 @@ - (void)viewDidLoad {
|
||||
self.title = self.filePath;
|
||||
self.view.backgroundColor = [UIColor whiteColor];
|
||||
NSString *path = [[NSBundle mainBundle] bundlePath];
|
||||
NSString *demoPath = [path stringByAppendingPathComponent:@"demo"];
|
||||
NSString *demoPath = [path stringByAppendingPathComponent:@"src"];
|
||||
NSString *fullPath = [demoPath stringByAppendingPathComponent:self.filePath];
|
||||
NSString *jsContent = [NSString stringWithContentsOfFile:fullPath encoding:NSUTF8StringEncoding error:nil];
|
||||
DoricPanel *panel = [DoricPanel new];
|
||||
|
@@ -22,7 +22,7 @@ - (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
self.title = @"Doric Demo";
|
||||
NSString *path = [[NSBundle mainBundle] bundlePath];
|
||||
NSString *demoPath = [path stringByAppendingPathComponent:@"demo"];
|
||||
NSString *demoPath = [path stringByAppendingPathComponent:@"src"];
|
||||
NSFileManager *mgr = [NSFileManager defaultManager];
|
||||
self.demoFilePaths = [[mgr subpathsAtPath:demoPath] filter:^BOOL(NSString *obj) {
|
||||
return ![obj containsString:@".map"];
|
||||
@@ -78,7 +78,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
|
||||
NSString *file = self.demoFilePaths[(NSUInteger) indexPath.row];
|
||||
if ([file containsString:@"NavigatorDemo"]) {
|
||||
DoricViewController *doricViewController = [[DoricViewController alloc]
|
||||
initWithScheme:[NSString stringWithFormat:@"assets://demo/%@", file]
|
||||
initWithScheme:[NSString stringWithFormat:@"assets://src/%@", file]
|
||||
alias:self.demoFilePaths[(NSUInteger) indexPath.row]
|
||||
extra:nil
|
||||
];
|
||||
|
1
doric-iOS/Example/Example/demo/.gitignore
vendored
1
doric-iOS/Example/Example/demo/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
*.js
|
Reference in New Issue
Block a user