-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
garenwang
committed
Mar 22, 2023
1 parent
7881135
commit 96ab89d
Showing
12 changed files
with
263 additions
and
52 deletions.
There are no files selected for viewing
Binary file modified
BIN
+27.2 KB
(110%)
QCloudCOSXMLDemo.xcworkspace/xcuserdata/garenwang.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Binary file modified
BIN
+8.7 MB
(140%)
QCloudCore/Classes/BeaconFramework/BeaconAPI_Base.framework/BeaconAPI_Base
Binary file not shown.
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
40 changes: 40 additions & 0 deletions
40
QCloudCore/Classes/BeaconFramework/BeaconAPI_Base.framework/Headers/BeaconCallBackManager.h
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,40 @@ | ||
// | ||
// BeaconCallBackManager.h | ||
// BeaconAPI_Base | ||
// | ||
// Created by 吴小二哥 on 2021/9/17. | ||
// Copyright © 2021 tencent.com. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "BeaconResult.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
typedef void (^BeaconMsfSendCallback)(BeaconMsfSendResult *beaconResult); | ||
|
||
/** | ||
* 长连接Msf回调Manger,Msf是通过代理方式回调手Q端,为了简化手Q接入逻辑,多线程代理回调由灯塔内部处理. | ||
*/ | ||
@interface BeaconCallBackManager : NSObject | ||
|
||
+ (instancetype)sharedInstance; | ||
|
||
/** | ||
* 获取callback记录个数 | ||
*/ | ||
- (NSInteger)getCallbackMapCount; | ||
|
||
/** | ||
* 灯塔内部存储callback并关联sequenceId | ||
*/ | ||
- (void)addCallBack:(BeaconMsfSendCallback )beaconCallBack withSequenceId:(NSInteger )sequenceId; | ||
|
||
/** | ||
* msf 回调接入层回调灯塔 | ||
*/ | ||
- (void)callBackSendResult:(BeaconMsfSendResult *)result; | ||
|
||
@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
24 changes: 24 additions & 0 deletions
24
QCloudCore/Classes/BeaconFramework/BeaconAPI_Base.framework/Headers/BeaconMsfSendArgs.h
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,24 @@ | ||
// | ||
// BeaconMsfSendArgs.h | ||
// BeaconAPI_Base | ||
// | ||
// Created by 吴小二哥 on 2021/4/27. | ||
// Copyright © 2021 tencent.com. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* 转发Msf携带的参数对象 | ||
*/ | ||
@interface BeaconMsfSendArgs : NSObject | ||
/// 业务上报的事件的二进制内容 | ||
@property (nonatomic, strong) NSData *data; | ||
/// 请求命令字 | ||
@property (nonatomic, copy) NSString *command; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
25 changes: 25 additions & 0 deletions
25
QCloudCore/Classes/BeaconFramework/BeaconAPI_Base.framework/Headers/BeaconOStarContent.h
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,25 @@ | ||
// | ||
// BeaconOStarContent.h | ||
// BeaconAPI_Base | ||
// | ||
// Created by 吴小二哥 on 2021/7/8. | ||
// Copyright © 2021 tencent.com. All rights reserved. | ||
// | ||
/** | ||
* BEACON_DEPEND_QIMEI:是否依赖Qimei. | ||
* 由于在外网集成直连版QimeiSDK,存在风险问题.进而开发了 OStar 非直连版本 SDK. 灯塔SDK为了支持外网也需要做同步修改, | ||
* 具体的修改逻辑是通过 BEACON_DEPEND_QIMEI 预编译条件编译方式,如果需要依赖 QIMEI,则和原有逻辑不变; 如果不依赖 和Qimei相关方法屏蔽掉. | ||
* 通用内网版本存在一个 QimeiContent 的类,是属于Qimei具体内容载体. 这里BeaconOStarContent类作用是替代QimeiContent. | ||
* 替代后只需在BeaconOStarContent内进行条件判断, 减少在其他使用地方预条件的设置. | ||
* 因为QIMEI是敏感字段,外网版打包时会将所有头文件中 BEACON_DEPEND_QIMEI=1 范围内的代码删掉,包括(#if BEACON_DEPEND_QIMEI) | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <QimeiSDK/QimeiSDK.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
@interface BeaconOStarContent : QimeiContent | ||
|
||
@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
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.