-
Notifications
You must be signed in to change notification settings - Fork 26
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 18, 2024
1 parent
009e32f
commit 60433a1
Showing
42 changed files
with
2,775 additions
and
28 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,58 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>AvailableLibraries</key> | ||
<array> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_x86_64-maccatalyst</string> | ||
<key>LibraryPath</key> | ||
<string>COSBeaconAPI_Base.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>maccatalyst</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-i386_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>COSBeaconAPI_Base.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>i386</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_arm64e_armv7_armv7s</string> | ||
<key>LibraryPath</key> | ||
<string>COSBeaconAPI_Base.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>arm64e</string> | ||
<string>armv7</string> | ||
<string>armv7s</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
</dict> | ||
</array> | ||
<key>CFBundlePackageType</key> | ||
<string>XFWK</string> | ||
<key>XCFrameworkFormatVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+23 MB
...e.xcframework/ios-arm64_arm64e_armv7_armv7s/COSBeaconAPI_Base.framework/COSBeaconAPI_Base
Binary file not shown.
145 changes: 145 additions & 0 deletions
145
...os-arm64_arm64e_armv7_armv7s/COSBeaconAPI_Base.framework/Headers/COSBeaconBaseInfoModel.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,145 @@ | ||
// | ||
// COSBeaconBaseInfoModel.h | ||
// COSBeaconAPI_Base | ||
// | ||
// Created by jackhuali on 2020/4/14. | ||
// Copyright © 2020 tencent.com. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "COSBeaconOStarContent.h" | ||
#import "COSBeaconReportConfig.h" | ||
|
||
|
||
typedef enum : NSInteger | ||
{ | ||
COSBeaconNotReachable = 0, | ||
COSBeaconReachableViaWiFi, | ||
COSBeaconReachableViaWWAN, | ||
COSBeaconReachableUnknow | ||
} COSBeaconNetworkStatus; | ||
|
||
@class COSBeaconLocalConfig; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
灯塔SDK采集的公共基础信息 | ||
存储在单例里的属性,在多线程,采用atomic控制线程同步,重写set/get方法的属性需手动控制同步,不同步的属性在多线程时可能引起crash或计算结果不是预期的 | ||
*/ | ||
@interface COSBeaconBaseInfoModel : NSObject | ||
|
||
/// 主App的appKey | ||
@property (copy) NSString *mainAppKey; | ||
/// 上报策略配置 | ||
@property (strong) COSBeaconReportConfig *config; | ||
/// 缓存各appKey的的附加参数,以通道的appKey作为key进行缓存 | ||
@property (copy) NSMutableDictionary<NSString *, NSDictionary *> *additionalInfoDict; | ||
/// 缓存各appKet的的userId,以通道的appKey作为key进行缓存 | ||
@property (copy) NSMutableDictionary<NSString *, NSString *> *userIdDict; | ||
/// 缓存各appKet的的openId,以通道的appKey作为key进行缓存 | ||
@property (copy) NSMutableDictionary<NSString *, NSString *> *openIdDict; | ||
|
||
|
||
/// QimeiCont对象, ostar等同于QimeiContent.为了屏蔽敏感而做的替换 | ||
@property (nonatomic, strong) QimeiContent *qimei; | ||
|
||
|
||
/// bundle相关 | ||
@property (copy, readonly) NSString *bundleId; | ||
/// 平台 id | ||
@property (assign, readonly) int platformId; | ||
/// 网关 ip | ||
@property (copy) NSString *gatewayIP; | ||
/// 硬件型号 | ||
@property (copy, readonly) NSString *hardwareModel; | ||
/// 国家 | ||
@property (copy, readonly) NSString *country; | ||
/// 语言 | ||
@property (copy, readonly) NSString *language; | ||
/// 单位GB | ||
@property (assign, readonly) long long romSize; | ||
/// openuuid 自建 | ||
@property (copy, readonly) NSString *openUdid; | ||
/// idfv | ||
@property (copy) NSString *idfv; | ||
/// idfa | ||
@property (copy) NSString *idfa; | ||
/// 是否越狱 | ||
@property (assign, readonly) BOOL isReet; | ||
/// 主通道的channelId | ||
@property (copy) NSString *channelId; | ||
/// 分辨率 | ||
@property (copy, readonly) NSString *resolution; | ||
/// sessionId | ||
@property (copy) NSString *sessionId; | ||
|
||
/// 缓存服务端返回的sId,请求时带上,给服务端从缓存取解密后的密钥 | ||
@property (copy) NSString *sId; | ||
|
||
/// 版本相关 | ||
@property (copy) NSString *appVersion; | ||
/// sdk 版本 | ||
@property (copy, readonly) NSString *sdkVersion; | ||
/// 系统版本 | ||
@property (copy, readonly) NSString *osVer; | ||
/// 系统版本 | ||
@property (assign, readonly) float osVerFloat; | ||
/// 是否纯新增用户,纯新增用户的定义是首次在某台设备上安装APP,卸载重装的不算纯新增 | ||
@property (assign) BOOL isnew; | ||
/// 是否版本新增用户 | ||
@property (assign) BOOL isNewWithVer; | ||
/// 是否升级版本 | ||
@property (assign, readonly) BOOL versionChanged; | ||
/// sdk是否升级版本 | ||
@property (assign, readonly) BOOL sdkVersionChanged; | ||
|
||
/// 网络相关 | ||
@property (copy, nullable) NSString *wifiName; | ||
/// imsi | ||
@property (copy, readonly) NSString *imsi; | ||
/// mac | ||
@property (copy, nullable) NSString *wifiMac; | ||
/// 终端获取的APN信息(cmwap、cmnet等) | ||
@property (copy) NSString *apn; | ||
/// 网络状态 | ||
@property (assign) COSBeaconNetworkStatus currentNetStatus; | ||
/// all_ssid | ||
@property (copy, readonly) NSString *wlanDevices; | ||
|
||
/// APP或者此SDK在运行过程中的一些运行时参数的模型类 | ||
@property (strong) COSBeaconLocalConfig *localConfig; | ||
/// 是否在后台 | ||
@property (assign) BOOL isBackground; | ||
/// 是否模拟器 | ||
@property (assign, readonly) BOOL isSimulator; | ||
/// 是否冷启动 | ||
@property (assign) BOOL isCold; | ||
/// 启动来源 | ||
@property (copy) NSString *launchSource; | ||
/// 设备名 | ||
@property (copy, readonly) NSString *deviceName DEPRECATED_MSG_ATTRIBUTE("安全合规建设,4.2.75以后不再采集"); | ||
/// 设备型号 | ||
@property (copy, readonly) NSString *deviceModel; | ||
/// 设备类型 | ||
@property (copy, readonly) NSString *deviceType; | ||
/// 电池 | ||
@property (copy, readonly) NSString *battery; | ||
/// aesKey | ||
@property (copy) NSString *aesKey; | ||
/// 加密 key | ||
@property (nonatomic, copy) NSString *aesKeyEncrypt; | ||
/// 与服务器进行时钟同步的时间差(单位毫秒) | ||
@property (assign) NSTimeInterval serverTimeDelta; | ||
/// app安装时间 | ||
@property (assign, readonly) long long appInstallTime; | ||
|
||
// 延迟初始化相关需要耗时的参数,需在子线程调用 | ||
- (void)initBaseInfo; | ||
|
||
// 初始化最基础infos,目前(4.1.29)只在检查appkey为异常时的201错误上报使用。 | ||
- (void)initBaseSimpleInfo; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.