-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iOS / OSX 平台下增加初始化上下文时传入配置接口,允许导出类方法名称使用完整名称。
- Loading branch information
Showing
13 changed files
with
188 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// | ||
// LuaConfig.swift | ||
// LuaScriptCore | ||
// | ||
// Created by 冯鸿杰 on 2019/4/4. | ||
// Copyright © 2019年 vimfung. All rights reserved. | ||
// | ||
|
||
public typealias LuaConfig = LSCConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// LSCConfig.h | ||
// LuaScriptCore | ||
// | ||
// Created by 冯鸿杰 on 2019/4/4. | ||
// Copyright © 2019年 vimfung. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
|
||
/** | ||
配置信息 | ||
*/ | ||
@interface LSCConfig : NSObject | ||
|
||
/** | ||
是否使用完整名称导出 | ||
*/ | ||
@property (nonatomic) BOOL fullExportName; | ||
|
||
/** | ||
获取默认配置 | ||
@return 配置信息 | ||
*/ | ||
+ (instancetype)defaultConfig; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// LSCConfig.m | ||
// LuaScriptCore | ||
// | ||
// Created by 冯鸿杰 on 2019/4/4. | ||
// Copyright © 2019年 vimfung. All rights reserved. | ||
// | ||
|
||
#import "LSCConfig.h" | ||
|
||
@implementation LSCConfig | ||
|
||
+ (instancetype)defaultConfig | ||
{ | ||
static LSCConfig *config = nil; | ||
static dispatch_once_t onceToken; | ||
dispatch_once(&onceToken, ^{ | ||
|
||
config = [[LSCConfig alloc] init]; | ||
|
||
}); | ||
|
||
return config; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.