ifish/Ifish/AlibcTradeSDK-3.1.1.96/Frameworks/AlibcTradeCommon.framework/Headers/AlibcConfig.h

72 lines
1.8 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* AlibcConfig.h
*
* 阿里百川电商
* 项目名称:阿里巴巴电商 AlibcTradeCommon
* 版本号3.1.1.93
* 发布时间2017-03-06
* 开发团队:阿里巴巴百川商业化团队
* 阿里巴巴电商SDK答疑群号1229144682(阿里旺旺)
* Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
*/
#import <Foundation/Foundation.h>
#ifndef AlibcConfig_h
#define AlibcConfig_h
/** 环境,测试和预发,只有内网有效,外部使用只能用线上环境 */
typedef NS_ENUM (NSInteger, AlibcEnvironment) {
/** 未定义环境 */
AlibcEnvironmentNone = -1,
/** 测试环境 */
AlibcEnvironmentDaily = 0,
/** 预发环境 */
AlibcEnvironmentPreRelease,
/** 线上环境 */
AlibcEnvironmentRelease
};
/** 日志级别 */
typedef NS_ENUM (NSUInteger, AlibcLogLevel) {
/** 调试 */
AlibcLogLevelDebug = 0,
/** 信息 */
AlibcLogLevelInfo = 1,
/** */
AlibcLogLevelPerf = 2,
/** 警告 */
AlibcLogLevelWarn = 3,
/** 错误 */
AlibcLogLevelError = 4,
};
NS_ASSUME_NONNULL_BEGIN
/** 配置 */
@interface AlibcConfig : NSObject
/** 系统环境 */
@property(atomic, assign) AlibcEnvironment environment;
/** 日志级别 */
@property(atomic, assign) AlibcLogLevel logLevel;
/** UTDID */
@property(atomic, strong) NSString *utdId;
/** appKey */
@property(atomic, strong) NSString *appKey;
/** 共享实例 */
+ (instancetype)sharedConfig;
/** 写入插件上下文 */
- (void)setValue:(nullable id)value forKey:(NSString *)key forModule:(NSString *)module;
/** 读取插件上下文 */
- (id)valueForKey:(NSString *)key forModule:(NSString *)module;
- (void)setDictionary:(NSDictionary *)dic forModule:(NSString *)module;
@end
NS_ASSUME_NONNULL_END
#endif