8000 移除setBundleSearchPath:方法,使用LVBundle的方法 · pythonzz/LuaViewSDK@6fbff97 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6fbff97

Browse files
committed
移除setBundleSearchPath:方法,使用LVBundle的方法
1 parent 5ab7378 commit 6fbff97

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

IOS/LuaViewSDK/Classes/LView.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,24 +117,14 @@
117117
#pragma mark - 设置资源搜索路径
118118
@interface LView ()
119119

120-
/**
121-
* 设置 图片资源bundle查询路径
122-
*/
123-
-(void) setBundleSearchPath:(NSArray*) path;
124-
125-
126-
/**
127-
* 获取 图片资源bundle查询路径
128-
*/
129-
-(NSArray*) bundleSearchPath;
120+
@property (nonatomic,strong) LVBundle* bundle;
130121

131122
/*
132123
* packageName: 包名 比如:"ppt"
133124
* info格式: { "url" : "http://g.tbcdn.cn/ju/lua/3.2.12/ppt4.4.0.js" , "time":"2015-11-18 09:53"}
134125
*/
135126
+(void) downLoadPackage:(NSString*)package withInfo:(NSDictionary*)info;
136127

137-
138128
@end
139129

140130
#pragma mark - 各种系统回调, 回调会传递到lua脚本中执行脚本代码
@@ -193,7 +183,6 @@
193183
#pragma mark - Property 系统使用的, 基本上不用关心细节
194184
@interface LView ()
195185
@property (nonatomic,assign) BOOL runInSignModel;// 加密模式,优先加载加密脚本
196-
@property (nonatomic,strong) LVBundle* bundle;
197186

198187
@property (nonatomic, weak) UIView* conentView; // 运行环境view
199188
@property (nonatomic, weak) LView* lv_lview;

IOS/LuaViewSDK/Classes/LView.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -682,16 +682,6 @@ -(id) argumentToObject:(int) index{
682682
return 0;
683683
}
684684

685-
-(void) setBundleSearchPath:(NSArray*) paths{
686-
for (NSString *path in paths) {
687-
[self.bundle addResourcePath:path];
688-
}
689-
}
690-
691-
-(NSArray*) bundleSearchPath{
692-
return self.bundle.resourcePaths;
693-
}
694-
695685
-(NSString*) description{
696686
return [NSString stringWithFormat:@"<View(0x%x) frame = %@>", (int)[self hash], NSStringFromCGRect(self.frame) ];
697687
}

0 commit comments

Comments
 (0)
0