Shakes.h 1.11 KB
Newer Older
MuF's avatar
MuF committed
1
//
MuF's avatar
MuF committed
2
3
//  Shakes.h
//  Shake
MuF's avatar
MuF committed
4
//
MuF's avatar
MuF committed
5
6
//  Created by MF on 2019/11/11.
//  Copyright © 2019 Shake. All rights reserved.
MuF's avatar
MuF committed
7
8
9
10
11
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

MuF's avatar
MuF committed
12

MuF's avatar
MuF committed
13
14
NS_ASSUME_NONNULL_BEGIN

MuF's avatar
MuF committed
15
@interface ShakeConfiguration : NSObject
MuF's avatar
MuF committed
16
17
18
19
20
21
22

@property (nonatomic, strong) NSString *channel;
@property (nonatomic, strong) NSString *branchName;
@property (nonatomic, strong) NSString *stableUrl;

@end

MuF's avatar
MuF committed
23
@interface Shakes : NSObject
MuF's avatar
MuF committed
24
25
26
27
28

+ (instancetype)sharedInstance;

/**
 创建白鹭使用的window
MuF's avatar
MuF committed
29
 
MuF's avatar
MuF committed
30
31
32
 @param configurationHandler 必须对configuration的所有值进行赋值,参数从公共服务接口中获取
 @return 白鹭window
 */
MuF's avatar
MuF committed
33
- (UIWindow *)creatShakeWindowWithConfigurationHandler:(void (^)(ShakeConfiguration *configuration))configurationHandler;
MuF's avatar
MuF committed
34
35
36

/**
 上架
MuF's avatar
MuF committed
37
 
MuF's avatar
MuF committed
38
39
40
41
42
43
 @param isNow NO:不会立刻显示,除非公共服务后台有配置打开;YES:到公共服务后台拉取测试配置进行切换
 */
- (void)displayNow:(BOOL)isNow;

/**
 官方包打包
MuF's avatar
MuF committed
44
 
MuF's avatar
MuF committed
45
46
47
48
49
50
51
 @param branchName 站点名称
 */
- (void)displayOfficallyWithBranchName:(NSString *)branchName andChannel:(NSString *)channel;

@end

NS_ASSUME_NONNULL_END