feat:dont show es5 bundle in demo

This commit is contained in:
pengfei.zhou 2020-02-29 15:09:37 +08:00 committed by osborn
parent 523beaa0e1
commit 7d2553726d

View File

@ -27,7 +27,7 @@ - (void)viewDidLoad {
NSString *demoPath = [path stringByAppendingPathComponent:@"src"]; NSString *demoPath = [path stringByAppendingPathComponent:@"src"];
NSFileManager *mgr = [NSFileManager defaultManager]; NSFileManager *mgr = [NSFileManager defaultManager];
self.demoFilePaths = [[mgr subpathsAtPath:demoPath] filter:^BOOL(NSString *obj) { self.demoFilePaths = [[mgr subpathsAtPath:demoPath] filter:^BOOL(NSString *obj) {
return ![obj containsString:@".map"]; return ![obj containsString:@".map"] && ![obj containsString:@"es5."];
}]; }];
NSMutableArray <NSString *> *tmp = [self.demoFilePaths mutableCopy]; NSMutableArray <NSString *> *tmp = [self.demoFilePaths mutableCopy];
NSStringCompareOptions comparisonOptions = NSCaseInsensitiveSearch | NSNumericSearch | NSWidthInsensitiveSearch | NSForcedOrderingSearch; NSStringCompareOptions comparisonOptions = NSCaseInsensitiveSearch | NSNumericSearch | NSWidthInsensitiveSearch | NSForcedOrderingSearch;