Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
F
flutter-push
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
flutter-push
Commits
b494dfff
提交
b494dfff
authored
3月 02, 2023
作者:
袁静春
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交:配置推送依赖;
上级
540e8e50
隐藏空白字符变更
内嵌
并排
正在显示
73 个修改的文件
包含
2650 行增加
和
3 行删除
+2650
-3
AlicloudSender
ios/AlicloudPush/AlicloudSender.framework/AlicloudSender
+0
-0
AlicloudSender.h
...oudPush/AlicloudSender.framework/Headers/AlicloudSender.h
+30
-0
module.modulemap
...oudPush/AlicloudSender.framework/Modules/module.modulemap
+6
-0
AlicloudUtils
ios/AlicloudPush/AlicloudUtils.framework/AlicloudUtils
+0
-0
ABSBootingProtection.h
...sh/AlicloudUtils.framework/Headers/ABSBootingProtection.h
+86
-0
ABSUncaughtExceptionHandler.h
...loudUtils.framework/Headers/ABSUncaughtExceptionHandler.h
+16
-0
ABSUtil.h
ios/AlicloudPush/AlicloudUtils.framework/Headers/ABSUtil.h
+24
-0
AlicloudHTTPDNSMini.h
...ush/AlicloudUtils.framework/Headers/AlicloudHTTPDNSMini.h
+22
-0
AlicloudIPv6Adapter.h
...ush/AlicloudUtils.framework/Headers/AlicloudIPv6Adapter.h
+129
-0
AlicloudReachabilityManager.h
...loudUtils.framework/Headers/AlicloudReachabilityManager.h
+61
-0
AlicloudReport.h
...loudPush/AlicloudUtils.framework/Headers/AlicloudReport.h
+68
-0
AlicloudTracker.h
...oudPush/AlicloudUtils.framework/Headers/AlicloudTracker.h
+44
-0
AlicloudTrackerManager.h
.../AlicloudUtils.framework/Headers/AlicloudTrackerManager.h
+34
-0
AlicloudUtils.h
...cloudPush/AlicloudUtils.framework/Headers/AlicloudUtils.h
+27
-0
AntilockBrakeSystem.h
...ush/AlicloudUtils.framework/Headers/AntilockBrakeSystem.h
+11
-0
EMASBeaconService.h
...dPush/AlicloudUtils.framework/Headers/EMASBeaconService.h
+45
-0
EMASOptions.h
...licloudPush/AlicloudUtils.framework/Headers/EMASOptions.h
+38
-0
EMASSecurityModeCommon.h
.../AlicloudUtils.framework/Headers/EMASSecurityModeCommon.h
+15
-0
EMASSecurityModeManager.h
...AlicloudUtils.framework/Headers/EMASSecurityModeManager.h
+28
-0
EMASTools.h
ios/AlicloudPush/AlicloudUtils.framework/Headers/EMASTools.h
+57
-0
UtilLog.h
ios/AlicloudPush/AlicloudUtils.framework/Headers/UtilLog.h
+34
-0
module.modulemap
...loudPush/AlicloudUtils.framework/Modules/module.modulemap
+6
-0
CloudPushSDK
ios/AlicloudPush/CloudPushSDK.framework/CloudPushSDK
+0
-0
CCPSysMessage.h
...icloudPush/CloudPushSDK.framework/Headers/CCPSysMessage.h
+17
-0
CloudPushCallbackResult.h
.../CloudPushSDK.framework/Headers/CloudPushCallbackResult.h
+26
-0
CloudPushSDK.h
...licloudPush/CloudPushSDK.framework/Headers/CloudPushSDK.h
+198
-0
MPGerneralDefinition.h
...ush/CloudPushSDK.framework/Headers/MPGerneralDefinition.h
+28
-0
module.modulemap
...cloudPush/CloudPushSDK.framework/Modules/module.modulemap
+6
-0
EMASRest
ios/AlicloudPush/EMASRest.framework/EMASRest
+0
-0
EMASRest.h
ios/AlicloudPush/EMASRest.framework/Headers/EMASRest.h
+18
-0
EMASRestCacheConfig.h
...loudPush/EMASRest.framework/Headers/EMASRestCacheConfig.h
+33
-0
EMASRestConfiguration.h
...udPush/EMASRest.framework/Headers/EMASRestConfiguration.h
+36
-0
EMASRestDevice.h
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestDevice.h
+32
-0
EMASRestDeviceInfo.h
...cloudPush/EMASRest.framework/Headers/EMASRestDeviceInfo.h
+37
-0
EMASRestManager.h
...AlicloudPush/EMASRest.framework/Headers/EMASRestManager.h
+24
-0
EMASRestMd5.h
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestMd5.h
+16
-0
EMASRestSendService+MultiChannel.h
...Rest.framework/Headers/EMASRestSendService+MultiChannel.h
+29
-0
EMASRestSendService.h
...loudPush/EMASRest.framework/Headers/EMASRestSendService.h
+57
-0
module.modulemap
ios/AlicloudPush/EMASRest.framework/Modules/module.modulemap
+6
-0
AidProtocol.h
ios/AlicloudPush/UTDID.framework/Headers/AidProtocol.h
+24
-0
UTDID.h
ios/AlicloudPush/UTDID.framework/Headers/UTDID.h
+13
-0
UTDevice.h
ios/AlicloudPush/UTDID.framework/Headers/UTDevice.h
+56
-0
Info.plist
ios/AlicloudPush/UTDID.framework/Info.plist
+51
-0
module.modulemap
ios/AlicloudPush/UTDID.framework/Modules/module.modulemap
+6
-0
UTDID
ios/AlicloudPush/UTDID.framework/UTDID
+0
-0
AppMonitor.h
ios/AlicloudPush/UTMini.framework/Headers/AppMonitor.h
+49
-0
AppMonitorAlarm.h
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorAlarm.h
+52
-0
AppMonitorBase.h
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorBase.h
+27
-0
AppMonitorCounter.h
...AlicloudPush/UTMini.framework/Headers/AppMonitorCounter.h
+35
-0
AppMonitorDimension.h
...icloudPush/UTMini.framework/Headers/AppMonitorDimension.h
+25
-0
AppMonitorDimensionSet.h
...oudPush/UTMini.framework/Headers/AppMonitorDimensionSet.h
+56
-0
AppMonitorDimensionValueSet.h
...sh/UTMini.framework/Headers/AppMonitorDimensionValueSet.h
+26
-0
AppMonitorMeasure.h
...AlicloudPush/UTMini.framework/Headers/AppMonitorMeasure.h
+28
-0
AppMonitorMeasureSet.h
...cloudPush/UTMini.framework/Headers/AppMonitorMeasureSet.h
+61
-0
AppMonitorMeasureValue.h
...oudPush/UTMini.framework/Headers/AppMonitorMeasureValue.h
+33
-0
AppMonitorMeasureValueSet.h
...Push/UTMini.framework/Headers/AppMonitorMeasureValueSet.h
+38
-0
AppMonitorStat.h
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorStat.h
+117
-0
AppMonitorTable.h
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorTable.h
+57
-0
UT.h
ios/AlicloudPush/UTMini.framework/Headers/UT.h
+29
-0
UTAnalytics.h
ios/AlicloudPush/UTMini.framework/Headers/UTAnalytics.h
+145
-0
UTBaseRequestAuthentication.h
...sh/UTMini.framework/Headers/UTBaseRequestAuthentication.h
+16
-0
UTCustomHitBuilder.h
...licloudPush/UTMini.framework/Headers/UTCustomHitBuilder.h
+19
-0
UTHitBuilder.h
ios/AlicloudPush/UTMini.framework/Headers/UTHitBuilder.h
+21
-0
UTICrashCaughtListener.h
...oudPush/UTMini.framework/Headers/UTICrashCaughtListener.h
+15
-0
UTIRequestAuthentication.h
...dPush/UTMini.framework/Headers/UTIRequestAuthentication.h
+17
-0
UTOirginalCustomHitBuilder.h
...ush/UTMini.framework/Headers/UTOirginalCustomHitBuilder.h
+25
-0
UTPageHitBuilder.h
ios/AlicloudPush/UTMini.framework/Headers/UTPageHitBuilder.h
+19
-0
UTSecuritySDKRequestAuthentication.h
...ni.framework/Headers/UTSecuritySDKRequestAuthentication.h
+16
-0
UTTeamWork.h
ios/AlicloudPush/UTMini.framework/Headers/UTTeamWork.h
+24
-0
UTTracker.h
ios/AlicloudPush/UTMini.framework/Headers/UTTracker.h
+143
-0
Info.plist
ios/AlicloudPush/UTMini.framework/Info.plist
+52
-0
UTMini
ios/AlicloudPush/UTMini.framework/UTMini
+0
-0
rammus.podspec
ios/rammus.podspec
+11
-3
没有找到文件。
ios/AlicloudPush/AlicloudSender.framework/AlicloudSender
0 → 100644
浏览文件 @
b494dfff
File added
ios/AlicloudPush/AlicloudSender.framework/Headers/AlicloudSender.h
0 → 100644
浏览文件 @
b494dfff
//
// AlicloudSender.h
// AlicloudSender
//
// Created by sky on 2021/1/25.
// Copyright © 2021 aliyun. All rights reserved.
//
#import <Foundation/Foundation.h>
#define ALICLOUDRESTSEND_VERSION @"1.0.0.3"
//! Project version number for AlicloudSender.
FOUNDATION_EXPORT
double
AlicloudSenderVersionNumber
;
//! Project version string for AlicloudSender.
FOUNDATION_EXPORT
const
unsigned
char
AlicloudSenderVersionString
[];
NS_ASSUME_NONNULL_BEGIN
@interface
AlicloudSender
:
NSObject
+
(
instancetype
)
shareInstance
;
-
(
void
)
sendEvent
:(
NSString
*
)
event
appKey
:(
NSString
*
)
appkey
sdkId
:(
NSString
*
)
sdkId
sdkVersion
:(
NSString
*
)
sdkVersion
extParams
:(
NSDictionary
*
)
extParams
;
@end
NS_ASSUME_NONNULL_END
ios/AlicloudPush/AlicloudSender.framework/Modules/module.modulemap
0 → 100644
浏览文件 @
b494dfff
framework module AlicloudSender {
umbrella header "AlicloudSender.h"
export *
module * { export * }
}
ios/AlicloudPush/AlicloudUtils.framework/AlicloudUtils
0 → 100644
浏览文件 @
b494dfff
File added
ios/AlicloudPush/AlicloudUtils.framework/Headers/ABSBootingProtection.h
0 → 100755
浏览文件 @
b494dfff
//
// ABSBootingProtection.h
// AntilockBrakeSystem
//
// Created by 地风(ElonChan) on 16/5/16.
// Copyright © 2016年 Ali. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef
void
(
^
ABSBoolCompletionHandler
)(
BOOL
succeeded
,
NSError
*
error
);
typedef
void
(
^
ABSRepairBlock
)(
ABSBoolCompletionHandler
completionHandler
);
typedef
void
(
^
ABSReportBlock
)(
NSUInteger
crashCounts
);
typedef
NS_ENUM
(
NSInteger
,
ABSBootingProtectionStatus
)
{
ABSBootingProtectionStatusNormal
,
/**< APP 启动正常 */
ABSBootingProtectionStatusNormalChecking
,
/**< 正在检测是否会在特定时间内是否会 Crash,注意:检测状态下“连续启动崩溃计数”个数小于或等于上限值 */
ABSBootingProtectionStatusNeedFix
,
/**< APP 出现连续启动 Crash,需要采取修复措施 */
ABSBootingProtectionStatusFixing
,
/**< APP 出现连续启动 Crash,正在修复中... */
};
/**
* 启动连续 crash 保护。
* 启动后 `_crashOnLaunchTimeIntervalThreshold` 秒内 crash,反复超过 `_continuousCrashOnLaunchNeedToReport` 次则上报日志,超过 `_continuousCrashOnLaunchNeedToFix` 则启动修复操作。
*/
@interface
ABSBootingProtection
:
NSObject
/**
* 启动连续 crash 保护方法。
* 前置条件:在 App 启动时注册 crash 处理函数,在 crash 时调用[ABSBootingProtection addCrashCountIfNeeded]。
* 启动后一定时间内(`crashOnLaunchTimeIntervalThreshold`秒内)crash,反复超过一定次数(`continuousCrashOnLaunchNeedToReport`次)则上报日志,超过一定次数(`continuousCrashOnLaunchNeedToFix`次)则启动修复程序;在一定时间内(`crashOnLaunchTimeIntervalThreshold`秒) 秒后若没有 crash 将“连续启动崩溃计数”计数置零。
`reportBlock` 上报逻辑,
`repairtBlock` 修复逻辑,完成后执行 `[self setCrashCount:0]`
*/
-
(
void
)
launchContinuousCrashProtect
;
/*!
* 当前启动Crash的状态
*/
@property
(
nonatomic
,
assign
,
readonly
)
ABSBootingProtectionStatus
bootingProtectionStatus
;
/*!
* 达到需要执行上报操作的“连续启动崩溃计数”个数。
*/
@property
(
nonatomic
,
assign
,
readonly
)
NSUInteger
continuousCrashOnLaunchNeedToReport
;
/*!
* 达到需要执行修复操作的“连续启动崩溃计数”个数。
*/
@property
(
nonatomic
,
assign
,
readonly
)
NSUInteger
continuousCrashOnLaunchNeedToFix
;
/*!
* APP 启动后经过多少秒,可以将“连续启动崩溃计数”清零
*/
@property
(
nonatomic
,
assign
,
readonly
)
NSTimeInterval
crashOnLaunchTimeIntervalThreshold
;
/*!
* 借助 context 可以让多个模块注册事件,并且事件 block 能独立执行,互不干扰。
*/
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
context
;
/*!
* @details 启动后kCrashOnLaunchTimeIntervalThreshold秒内crash,反复超过continuousCrashOnLaunchNeedToReport次则上报日志,超过continuousCrashOnLaunchNeedToFix则启动修复程序;当所有操作完成后,执行 completion。在 crashOnLaunchTimeIntervalThreshold 秒后若没有 crash 将 kContinuousCrashOnLaunchCounterKey 计数置零。
* @param context 借助 context 可以让多个模块注册事件,并且事件 block 能独立执行,互不干扰。
*/
-
(
instancetype
)
initWithContinuousCrashOnLaunchNeedToReport
:(
NSUInteger
)
continuousCrashOnLaunchNeedToReport
continuousCrashOnLaunchNeedToFix
:(
NSUInteger
)
continuousCrashOnLaunchNeedToFix
crashOnLaunchTimeIntervalThreshold
:(
NSTimeInterval
)
crashOnLaunchTimeIntervalThreshold
context
:(
NSString
*
)
context
;
/*!
* 当前“连续启动崩溃“的状态
*/
+
(
ABSBootingProtectionStatus
)
bootingProtectionStatusWithContext
:(
NSString
*
)
context
continuousCrashOnLaunchNeedToFix
:(
NSUInteger
)
continuousCrashOnLaunchNeedToFix
;
/*!
* 设置上报逻辑,参数 crashCounts 为启动连续 crash 次数
*/
-
(
void
)
setReportBlock
:(
ABSReportBlock
)
reportBlock
;
/*!
* 设置修复逻辑
*/
-
(
void
)
setRepairBlock
:(
ABSRepairBlock
)
repairtBlock
;
@end
ios/AlicloudPush/AlicloudUtils.framework/Headers/ABSUncaughtExceptionHandler.h
0 → 100644
浏览文件 @
b494dfff
//
// ABSUncaughtExceptionHandler.h
// AntilockBrakeSystem
//
// Created by 地风(ElonChan) on 16/5/16.
// Copyright © 2016年 Ali. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef
void
(
^
ABSUncaughtExceptionCallback
)(
NSException
*
exception
);
@interface
ABSUncaughtExceptionHandler
:
NSObject
+
(
void
)
registerExceptionHandlerWithCallback
:(
ABSUncaughtExceptionCallback
)
callback
;
@end
ios/AlicloudPush/AlicloudUtils.framework/Headers/ABSUtil.h
0 → 100644
浏览文件 @
b494dfff
//
// ABSUtil.h
// AntilockBrakeSystem
//
// Created by 地风(ElonChan) on 16/5/16.
// Copyright © 2016年 Ali. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
ABSUtil
:
NSObject
// 设置日志逻辑
+
(
void
)
setLogger
:(
void
(
^
)(
NSString
*
))
logger
;
+
(
void
)
Logger
:(
NSString
*
)
log
;
+
(
BOOL
)
isValidString
:(
id
)
notValidString
;
+
(
BOOL
)
isWhiteListClass
:(
Class
)
class
;
+
(
void
)
deleteCacheWithfilePathsToRemove
:(
NSArray
*
)
filePathsToRemove
;
@end
ios/AlicloudPush/AlicloudUtils.framework/Headers/AlicloudHTTPDNSMini.h
0 → 100644
浏览文件 @
b494dfff
//
// AlicloudHTTPDNSMini.h
// AlicloudUtils
//
// Created by ryan on 3/6/2016.
// Copyright © 2016 Ali. All rights reserved.
//
#ifndef AlicloudHTTPDNSMini_h
#define AlicloudHTTPDNSMini_h
#define HTTPDNSMINI_RESOLVED_NOTIFY @"HTTPDNSMiniResolvedNotify"
@interface
AlicloudHTTPDNSMini
:
NSObject
+
(
AlicloudHTTPDNSMini
*
)
sharedInstance
;
-
(
NSArray
*
)
getIpsByHostAsync
:(
NSString
*
)
host
;
-
(
void
)
setPreResolveHosts
:(
NSArray
*
)
hosts
;
@end
#endif
/* AlicloudHTTPDNSMini_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/AlicloudIPv6Adapter.h
0 → 100644
浏览文件 @
b494dfff
/*
* Copyright (c) 2000-2015 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. The rights granted to you under the License
* may not be used to create, or enable the creation or redistribution of,
* unlawful or unlicensed copies of an Apple operating system, or to
* circumvent, violate, or enable the circumvention or violation of, any
* terms of an Apple operating system software license agreement.
*
* Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this file.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
* Please see the License for the specific language governing rights and
* limitations under the License.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
*/
/*
* Copyright (c) 1980, 1986, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)route.h 8.3 (Berkeley) 4/19/94
* $FreeBSD: src/sys/net/route.h,v 1.36.2.1 2000/08/16 06:14:23 jayanth Exp $
*/
#ifndef AlicloudIPv6Adapter_h
#define AlicloudIPv6Adapter_h
#import <Foundation/Foundation.h>
/**
* IP 协议栈类型
*/
typedef
enum
{
kAlicloudIPUnkown
=
0
,
// 未知协议栈
kAlicloudIPv4only
=
1
,
// IPv4-only
kAlicloudIPv6only
=
2
,
// IPv6-only
kAlicloudIPdual
=
3
// 双栈
}
AlicloudIPStackType
;
@interface
AlicloudIPv6Adapter
:
NSObject
+
(
instancetype
)
getInstance
;
/**
* 判断当前是否为IPv6-Only网络
*/
-
(
BOOL
)
isIPv6OnlyNetwork
;
/**
* 手动刷新IPv6-Only网络的判定
*/
-
(
BOOL
)
reResolveIPv6OnlyStatus
;
/**
IPv4 > IPv6地址转换\n
- 输入IPv4地址无效,返回原地址
- IPv6-Only网络,返回转换后的IPv6地址
- 非IPv6-Only网络,返回原地址
@param addr IPv4地址
@return 转换后的v6地址 或 原地址
*/
-
(
NSString
*
)
handleIpv4Address
:(
NSString
*
)
addr
;
/**
* 判断是否为IPv4地址
*/
-
(
BOOL
)
isIPv4Address
:(
NSString
*
)
addr
;
/**
* 判断是否为IPv6地址
*/
-
(
BOOL
)
isIPv6Address
:(
NSString
*
)
addr
;
/**
获取当前网络栈
*/
-
(
AlicloudIPStackType
)
currentIpStackType
;
/**
重置
*/
-
(
void
)
reset
;
@end
#endif
/* AlicloudIPv6Adapter_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/AlicloudReachabilityManager.h
0 → 100644
浏览文件 @
b494dfff
//
// AlicloudReachabilityManager.h
//
// Created by 亿刀 on 14-1-9.
// Edited by junmo on 15-5-16
// Copyright (c) 2014年 Twitter. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
#define ALICLOUD_NETWOEK_STATUS_NOTIFY @"AlicloudNetworkStatusChangeNotify"
typedef
enum
{
AlicloudNotReachable
=
0
,
AlicloudReachableViaWiFi
,
AlicloudReachableVia2G
,
AlicloudReachableVia3G
,
AlicloudReachableVia4G
}
AlicloudNetworkStatus
;
@interface
AlicloudReachabilityManager
:
NSObject
/**
* 获取Reachability单例对象
*/
+
(
AlicloudReachabilityManager
*
)
shareInstance
;
/**
* 获取Reachability单例对象,为保证全局维护一个netInfo实例,可从外部传入netInfo对象的引用
* warn: netInfo多次实例化,有一定几率crash
*
*/
+
(
AlicloudReachabilityManager
*
)
shareInstanceWithNetInfo
:(
CTTelephonyNetworkInfo
*
)
netInfo
;
/**
* 返回当前网络状态(同步调用,可能会阻塞调用线程)
*/
-
(
AlicloudNetworkStatus
)
currentNetworkStatus
;
/**
* 返回之前网络状态
*/
-
(
AlicloudNetworkStatus
)
preNetworkStatus
;
/**
* 检测网络是否连通(同步调用,阻塞调用线程)
*/
-
(
BOOL
)
checkInternetConnection
;
/**
* 检测Wifi网络是否联通
*/
-
(
BOOL
)
isReachableViaWifi
;
/**
* 检测蜂窝网络是否联通
*/
-
(
BOOL
)
isReachableViaWWAN
;
@end
ios/AlicloudPush/AlicloudUtils.framework/Headers/AlicloudReport.h
0 → 100644
浏览文件 @
b494dfff
//
// AlicloudReport.h
// AlicloudUtils
//
// Created by ryan on 3/6/2016.
// Copyright © 2016 Ali. All rights reserved.
//
#ifndef AlicloudReport_h
#define AlicloudReport_h
extern
const
NSString
*
EXT_INFO_KEY_VERSION
;
extern
const
NSString
*
EXT_INFO_KEY_PACKAGE
;
// SDK标识
typedef
NS_ENUM
(
NSInteger
,
AMSService
)
{
AMSMAN
=
0
,
AMSHTTPDNS
,
AMSMPUSH
,
AMSMAC
,
AMSAPI
,
AMSHOTFIX
,
AMSFEEDBACK
,
AMSIM
};
// 上报状态
typedef
NS_ENUM
(
NSInteger
,
AMSReportStatus
)
{
AMS_UNREPORTED_STATUS
,
AMS_REPORTED_STATUS
};
@interface
AlicloudReport
:
NSObject
/**
* 异步上报活跃设备统计
*
@param tag SDK标识
*/
+
(
void
)
statAsync
:(
AMSService
)
tag
;
/**
* 异步上报活跃设备统计并携带附加信息
*
@param tag SDK标识
@param extInfo 附加上报信息 { EXT_INFO_KEY_VERSION :"x.x.x", EXT_INFO_KEY_PACKAGE: "xxx"}
*/
+
(
void
)
statAsync
:(
AMSService
)
tag
extInfo
:(
NSDictionary
*
)
extInfo
;
/**
* 获取指定SDK标识上报状态
*
@param tag SDK标识
@return 返回上报状态
*/
+
(
AMSReportStatus
)
getReportStatus
:(
AMSService
)
tag
;
/**
* 获取上报状态(兼容老版本接口)
*
@param tag SDK标识
@return YES:已经上报 NO:没有上报
*/
+
(
BOOL
)
isDeviceReported
:(
AMSService
)
tag
;
@end
#endif
/* AlicloudReport_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/AlicloudTracker.h
0 → 100644
浏览文件 @
b494dfff
//
// AlicloudTracker.h
// AlicloudUtils
//
// Created by junmo on 2017/6/30.
// Copyright © 2017年 Ali. All rights reserved.
//
#ifndef AlicloudTracker_h
#define AlicloudTracker_h
@interface
AlicloudTracker
:
NSObject
@property
(
nonatomic
,
copy
)
NSString
*
sdkId
;
@property
(
nonatomic
,
copy
)
NSString
*
sdkVersion
;
/**
设置Tracker的通用打点属性,每次上报都携带该参数
@param key 通用属性Key
@param value 通用属性Value
*/
-
(
void
)
setGlobalProperty
:(
NSString
*
)
key
value
:(
NSString
*
)
value
;
/**
删除Tracker通用打点属性
@param key 通用属性Key
*/
-
(
void
)
removeGlobalProperty
:(
NSString
*
)
key
;
/**
自定义打点上报
@param eventName 事件名
@param duration 时长
@param properties 额外参数
*/
-
(
void
)
sendCustomHit
:(
NSString
*
)
eventName
duration
:(
long
long
)
duration
properties
:(
NSDictionary
*
)
properties
;
@end
#endif
/* AlicloudTracker_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/AlicloudTrackerManager.h
0 → 100644
浏览文件 @
b494dfff
//
// AlicloudTrackerManager.h
// AlicloudUtils
//
// Created by junmo on 2017/7/4.
// Copyright © 2017年 Ali. All rights reserved.
//
#ifndef AlicloudTrackerManager_h
#define AlicloudTrackerManager_h
#import "AlicloudTracker.h"
@interface
AlicloudTrackerManager
:
NSObject
/**
获取上报通道管理器对象,并初始化UT
@return 管理器对象
*/
+
(
instancetype
)
getInstance
;
/**
根据SDK标识和版本号获取上报通道
@param sdkId SDK标识
@param version SDK版本号
@return 上报通道对象
*/
-
(
AlicloudTracker
*
)
getTrackerBySdkId
:(
NSString
*
)
sdkId
version
:(
NSString
*
)
version
;
@end
#endif
/* AlicloudTrackerManager_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/AlicloudUtils.h
0 → 100644
浏览文件 @
b494dfff
//
// AlicloudUtils.h
// AlicloudUtils
//
// Created by lingkun on 16/5/16.
// Copyright © 2016年 Ali. All rights reserved.
//
#import <UIKit/UIKit.h>
#define ALICLOUDUTILS_VERSION @"1.4.0-1"
// In this header, you should import all the public headers of your framework using statements like #import <AlicloudUtils/PublicHeader.h>
#import <AlicloudUtils/AlicloudReachabilityManager.h>
#import <AlicloudUtils/EMASSecurityModeManager.h>
#import <AlicloudUtils/EMASSecurityModeCommon.h>
#import <AlicloudUtils/AlicloudTrackerManager.h>
#import <AlicloudUtils/AlicloudIPv6Adapter.h>
#import <AlicloudUtils/AlicloudHTTPDNSMini.h>
#import <AlicloudUtils/AntilockBrakeSystem.h>
#import <AlicloudUtils/EMASBeaconService.h>
#import <AlicloudUtils/AlicloudTracker.h>
#import <AlicloudUtils/AlicloudReport.h>
#import <AlicloudUtils/EMASOptions.h>
#import <AlicloudUtils/EMASTools.h>
#import <AlicloudUtils/UtilLog.h>
ios/AlicloudPush/AlicloudUtils.framework/Headers/AntilockBrakeSystem.h
0 → 100644
浏览文件 @
b494dfff
//
// AntilockBrakeSystem.h
// AntilockBrakeSystem
//
// Created by 地风(ElonChan) on 16/5/16.
// Copyright © 2016年 Ali. All rights reserved.
//
#import "ABSUncaughtExceptionHandler.h"
#import "ABSBootingProtection.h"
#import "ABSUtil.h"
ios/AlicloudPush/AlicloudUtils.framework/Headers/EMASBeaconService.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASBeaconService.h
// AlicloudBeacon
//
// Created by junmo on 2017/7/6.
// Copyright © 2017年 junmo. All rights reserved.
//
#ifndef EMASBeaconService_h
#define EMASBeaconService_h
@interface
EMASBeaconConfiguration
:
NSObject
-
(
instancetype
)
initWithData
:(
NSData
*
)
data
;
-
(
id
)
getConfigureItemByKey
:(
NSString
*
)
key
;
@end
typedef
void
(
^
AlicloudBeaconCallbackHandler
)(
BOOL
res
,
NSError
*
error
);
@interface
EMASBeaconService
:
NSObject
-
(
instancetype
)
initWithAppKey
:(
NSString
*
)
appKey
appSecret
:(
NSString
*
)
appSecret
SDKVersion
:(
NSString
*
)
SDKVersion
SDKID
:(
NSString
*
)
SDKID
;
-
(
instancetype
)
initWithAppKey
:(
NSString
*
)
appKey
appSecret
:(
NSString
*
)
appSecret
SDKVersion
:(
NSString
*
)
SDKVersion
SDKID
:(
NSString
*
)
SDKID
extension
:(
NSDictionary
*
)
extension
;
-
(
void
)
enableLog
:(
BOOL
)
enabled
;
-
(
BOOL
)
isLogEnabled
;
//- (void)getBeaconConfigByKey:(NSString *)key
// completionHandler:(void(^)(EMASBeaconConfiguration *configuration, NSError *error))completionHandler;
-
(
void
)
getBeaconConfigStringByKey
:(
NSString
*
)
key
completionHandler
:(
void
(
^
)(
NSString
*
result
,
NSError
*
error
))
completionHandler
;
@end
#endif
/* EMASBeaconService_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/EMASOptions.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASOptions.h
// AlicloudUtils
//
// Created by junmo on 2018/3/16.
// Copyright © 2018年 Ali. All rights reserved.
//
#ifndef EMASOptions_h
#define EMASOptions_h
@interface
EMASOptionSDKServiceItem
:
NSObject
@property
(
nonatomic
,
copy
)
NSString
*
sdkId
;
@property
(
nonatomic
,
copy
)
NSString
*
version
;
@property
(
nonatomic
,
assign
)
NSNumber
*
status
;
@end
@interface
EMASOptions
:
NSObject
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
emasAppKey
;
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
emasAppSecret
;
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
emasBundleId
;
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
hotfixIdSecret
;
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
hotfixRsaSecret
;
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
tlogRsaSecret
;
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
appmonitorRsaSecret
;
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
httpdnsAccountId
;
@property
(
nonatomic
,
copy
,
readonly
)
NSString
*
httpdnsSecretKey
;
+
(
EMASOptions
*
)
defaultOptions
;
-
(
NSString
*
)
optionByConfigKey
:(
NSString
*
)
key
;
-
(
EMASOptionSDKServiceItem
*
)
sdkServiceItemForSdkId
:(
NSString
*
)
sdkId
;
@end
#endif
/* EMASOptions_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/EMASSecurityModeCommon.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASSecurityModeCommon.h
// AlicloudUtils
//
// Created by junmo on 2018/3/11.
// Copyright © 2018年 Ali. All rights reserved.
//
#ifndef EMASSecurityModeCommon_h
#define EMASSecurityModeCommon_h
typedef
void
(
^
SDKCheckSuccessHandler
)(
void
);
typedef
void
(
^
SDKCheckCrashHandler
)(
NSUInteger
crashCount
);
#endif
/* EMASSecurityModeCommon_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/EMASSecurityModeManager.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASSecurityModeManager.h
// AlicloudUtils
//
// Created by junmo on 2018/3/10.
// Copyright © 2018年 Ali. All rights reserved.
//
#ifndef EMASSecurityModeManager_h
#define EMASSecurityModeManager_h
#import "EMASSecurityModeCommon.h"
@interface
EMASSecurityModeManager
:
NSObject
+
(
instancetype
)
sharedInstance
;
-
(
void
)
registerSDKComponentAndStartCheck
:(
NSString
*
)
sdkId
sdkVersion
:(
NSString
*
)
sdkVersion
appKey
:(
NSString
*
)
appKey
appSecret
:(
NSString
*
)
appSecret
sdkCrashThreshold
:(
NSUInteger
)
crashTimesThreshold
onSuccess
:(
SDKCheckSuccessHandler
)
successHandler
onCrash
:(
SDKCheckCrashHandler
)
crashHandler
;
@end
#endif
/* EMASSecurityModeManager_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/EMASTools.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASTools.h
// AlicloudUtils
//
// Created by junmo on 2018/3/14.
// Copyright © 2018年 Ali. All rights reserved.
//
#ifndef EMASTools_h
#define EMASTools_h
#define EMAS_SYNC_EXECUTE_BY_KEY(key, executor)\
[EMASTools syncExecuteBlockByKey:key block:executor];\
#define EMAS_SYNC_EXECUTE_BY_QUEUE(queue, executor)\
[EMASTools syncExecuteBlockByQueue:queue block:executor];\
@interface
EMASTools
:
NSObject
+
(
BOOL
)
isValidString
:(
id
)
obj
;
+
(
BOOL
)
isValidDictionary
:(
id
)
obj
;
+
(
BOOL
)
isValidArray
:(
id
)
obj
;
+
(
NSString
*
)
md5
:(
NSString
*
)
str
;
+
(
NSString
*
)
sha1
:(
NSString
*
)
str
;
+
(
NSString
*
)
hmacSha1
:(
NSString
*
)
str
key
:(
NSString
*
)
key
;
+
(
NSString
*
)
base64EncodedWithString
:(
NSString
*
)
str
;
+
(
NSString
*
)
base64DecodedWithString
:(
NSString
*
)
base64Str
;
+
(
NSData
*
)
aes128CBCEncrypt
:(
NSData
*
)
data
key
:(
NSData
*
)
key
iv
:(
char
*
)
iv
;
+
(
NSString
*
)
URLEncodedString
:(
NSString
*
)
str
;
+
(
NSString
*
)
convertObjectToJsonString
:(
id
)
obj
;
+
(
id
)
convertJsonStringToObject
:(
NSString
*
)
jsonStr
;
+
(
id
)
convertJsonDataToObject
:(
NSData
*
)
jsonData
;
+
(
NSString
*
)
convertDateToGMT0String
:(
NSDate
*
)
date
;
+
(
NSString
*
)
convertDateToGMT8String
:(
NSDate
*
)
date
;
+
(
void
)
swizzleClassMethod
:(
Class
)
cls
originSEL
:(
SEL
)
originSEL
swizzleSEL
:(
SEL
)
swizzleSEL
;
+
(
void
)
swizzleInstanceMethod
:(
Class
)
cls
originSEL
:(
SEL
)
originSEL
swizzleSEL
:(
SEL
)
swizzleSEL
;
+
(
BOOL
)
isIPv4Address
:(
NSString
*
)
addr
;
+
(
BOOL
)
isIPv6Address
:(
NSString
*
)
addr
;
+
(
dispatch_queue_t
)
createQueueIfNotExists
:(
NSString
*
)
key
;
+
(
void
)
syncExecuteBlockByKey
:(
NSString
*
)
key
block
:(
void
(
^
)(
void
))
block
;
+
(
void
)
syncExecuteBlockByQueue
:(
dispatch_queue_t
)
queue
block
:(
void
(
^
)(
void
))
block
;
+
(
NSString
*
)
bundleIdForApp
;
+
(
NSString
*
)
deviceBrand
;
+
(
NSString
*
)
deviceModel
;
+
(
void
)
threadWaitForSec
:(
double
)
sec
;
@end
#endif
/* EMASTools_h */
ios/AlicloudPush/AlicloudUtils.framework/Headers/UtilLog.h
0 → 100644
浏览文件 @
b494dfff
//
// UtilLog.h
// AlicloudUtils
//
// Created by junmo on 16/11/24.
// Copyright © 2016年 Ali. All rights reserved.
//
#ifndef UtilLog_h
#define UtilLog_h
@interface
UtilLog
:
NSObject
+
(
void
)
enableLog
;
+
(
BOOL
)
isLogEnabled
;
#define UtilLogD(tag, frmt, ...)\
if ([UtilLog isLogEnabled]) {\
NSLog(@"[%@]-[D]: %@", tag, [NSString stringWithFormat:(frmt), ##__VA_ARGS__]);\
}
#define UtilLogI(tag, frmt, ...)\
if ([UtilLog isLogEnabled]) {\
NSLog(@"[%@]-[I]: %@", tag, [NSString stringWithFormat:(frmt), ##__VA_ARGS__]);\
}
#define UtilLogE(tag, frmt, ...)\
if ([UtilLog isLogEnabled]) {\
NSLog(@"[%@]-[E]: %@", tag, [NSString stringWithFormat:(frmt), ##__VA_ARGS__]);\
}
@end
#endif
/* UtilLog_h */
ios/AlicloudPush/AlicloudUtils.framework/Modules/module.modulemap
0 → 100644
浏览文件 @
b494dfff
framework module AlicloudUtils {
umbrella header "AlicloudUtils.h"
export *
module * { export * }
}
ios/AlicloudPush/CloudPushSDK.framework/CloudPushSDK
0 → 100644
浏览文件 @
b494dfff
File added
ios/AlicloudPush/CloudPushSDK.framework/Headers/CCPSysMessage.h
0 → 100644
浏览文件 @
b494dfff
//
// CCPSysMessage.h
// CloudPushSDK
//
// Created by wuxiang on 15/5/18.
// Copyright (c) 2015年 aliyun. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
CCPSysMessage
:
NSObject
@property
UInt8
messageType
;
// 消息类型
@property
NSData
*
title
;
// 标题
@property
NSData
*
body
;
// 内容
@end
ios/AlicloudPush/CloudPushSDK.framework/Headers/CloudPushCallbackResult.h
0 → 100644
浏览文件 @
b494dfff
//
// CloudPushCallbackResult.h
// CloudPushSDK
//
// Created by lingkun on 16/6/16.
// Copyright © 2016年 aliyun.mobileService. All rights reserved.
//
#ifndef CloudPushCallbackResult_h
#define CloudPushCallbackResult_h
@interface
CloudPushCallbackResult
:
NSObject
@property
(
nonatomic
,
readonly
)
BOOL
success
;
@property
(
nonatomic
,
readonly
,
nullable
)
id
data
;
@property
(
nonatomic
,
readonly
,
nullable
)
NSError
*
error
;
+
(
nonnull
instancetype
)
resultWithData
:(
nullable
id
)
data
;
+
(
nonnull
instancetype
)
resultWithError
:(
nullable
NSError
*
)
error
;
@end
#endif
/* CloudPushCallbackResult_h */
ios/AlicloudPush/CloudPushSDK.framework/Headers/CloudPushSDK.h
0 → 100644
浏览文件 @
b494dfff
//
// CloudPushSDK.h
// CloudPushSDK
//
// Created by junmo on 16/7/26.
// Copyright © 2016年 aliyun.mobileService. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CCPSysMessage.h"
#import "MPGerneralDefinition.h"
/* SDK版本号 */
#define MPUSH_IOS_SDK_VERSION @"1.9.9.7"
@interface
CloudPushSDK
:
NSObject
/**
Push SDK初始化
无需手动配置appKey/appSecret
@param callback 回调
*/
+
(
void
)
autoInit
:(
CallbackHandler
)
callback
;
/**
* Push SDK初始化
*
* @param appKey appKey
* @param appSecret appSecret
* @param callback 回调
*/
+
(
void
)
asyncInit
:(
NSString
*
)
appKey
appSecret
:(
NSString
*
)
appSecret
callback
:(
CallbackHandler
)
callback
;
/**
* 关闭推送消息功能(长链通道)
* 需要在SDK初始化方法之前调用,SDK初始化后调用无效
*/
+
(
void
)
closeCCPChannel
;
/**
* 打开调试日志
*/
+
(
void
)
turnOnDebug
;
/**
* 获取本机的deviceId (deviceId为推送系统的设备标识)
*
* @return deviceId
*/
+
(
NSString
*
)
getDeviceId
;
/**
* 返回SDK版本
*
* @return SDK版本
*/
+
(
NSString
*
)
getVersion
;
/**
* 返回推送通道的状态
*
* @return 通道状态
*/
+
(
BOOL
)
isChannelOpened
;
/**
* 返回推送通知ACK到服务器
*
* @param userInfo 通知相关信息
*/
+
(
void
)
sendNotificationAck
:(
NSDictionary
*
)
userInfo
;
/**
* 返回删除的推送通知ACK到服务器
*
* @param userInfo 通知相关信息
*/
+
(
void
)
sendDeleteNotificationAck
:(
NSDictionary
*
)
userInfo
;
/**
* 返回推送通知ACK到服务器 (该通知为App处于关闭状态时接收,点击后启动App)
* v1.8.1版本之后,由sendNotificationAck替代
* @param launchOptions 通知相关信息
*/
+
(
void
)
handleLaunching
:(
NSDictionary
*
)
launchOptions
DEPRECATED_MSG_ATTRIBUTE
(
"Use 'sendNotificationAck:' instead"
);
/**
* 返回推送通知ACK到服务器 (该通知为App处于开启状态时接收)
* v1.8.1版本之后,由sendNotificationAck替代
* @param userInfo 通知相关信息
*/
+
(
void
)
handleReceiveRemoteNotification
:(
NSDictionary
*
)
userInfo
DEPRECATED_MSG_ATTRIBUTE
(
"Use 'sendNotificationAck:' instead"
);
/**
* 绑定账号
*
* @param account 账号名
* @param callback 回调
*/
+
(
void
)
bindAccount
:(
NSString
*
)
account
withCallback
:(
CallbackHandler
)
callback
;
/**
* 解绑账号
*
* @param callback 回调
*/
+
(
void
)
unbindAccount
:(
CallbackHandler
)
callback
;
/**
* 向指定目标添加自定义标签
* 支持向本设备/本设备绑定账号/别名添加自定义标签,目标类型由target指定
* @param target 目标类型,1:本设备 2:本设备绑定账号 3:别名
* @param tags 标签名
* @param alias 别名(仅当target = 3时生效)
* @param callback 回调
*/
+
(
void
)
bindTag
:(
int
)
target
withTags
:(
NSArray
*
)
tags
withAlias
:(
NSString
*
)
alias
withCallback
:(
CallbackHandler
)
callback
;
/**
* 删除指定目标的自定义标签
* 支持从本设备/本设备绑定账号/别名删除自定义标签,目标类型由target指定
* @param target 目标类型,1:本设备 2:本设备绑定账号 3:别名
* @param tags 标签名
* @param alias 别名(仅当target = 3时生效)
* @param callback 回调
*/
+
(
void
)
unbindTag
:(
int
)
target
withTags
:(
NSArray
*
)
tags
withAlias
:(
NSString
*
)
alias
withCallback
:(
CallbackHandler
)
callback
;
/**
* 查询绑定标签,查询结果可从callback的data中获取
*
* @param target 目标类型,1:本设备(当前仅支持查询本设备绑定标签)
* @param callback 回调
*/
+
(
void
)
listTags
:(
int
)
target
withCallback
:(
CallbackHandler
)
callback
;
/**
* 给当前设备打别名
*
* @param alias 别名名称
* @param callback 回调
*/
+
(
void
)
addAlias
:(
NSString
*
)
alias
withCallback
:(
CallbackHandler
)
callback
;
/**
* 删除当前设备的指定别名
* 当alias为nil or length = 0时,删除当前设备绑定所有别名
* @param alias 别名名称
* @param callback 回调
*/
+
(
void
)
removeAlias
:(
NSString
*
)
alias
withCallback
:(
CallbackHandler
)
callback
;
/**
* 查询本设备绑定别名,查询结果可从callback的data中获取
*
* @param callback 回调
*/
+
(
void
)
listAliases
:(
CallbackHandler
)
callback
;
/**
* 向阿里云推送注册该设备的deviceToken
*
* @param deviceToken 苹果APNs服务器返回的deviceToken
*/
+
(
void
)
registerDevice
:(
NSData
*
)
deviceToken
withCallback
:(
CallbackHandler
)
callback
;
/**
* 获取APNs返回的deviceToken
*
* @return deviceToken
*/
+
(
NSString
*
)
getApnsDeviceToken
;
/**
同步设备通知角标数到推送服务器
@param num badge数,取值范围[0,99999]
@param callback 回调
*/
+
(
void
)
syncBadgeNum
:(
NSUInteger
)
num
withCallback
:(
CallbackHandler
)
callback
;
@end
ios/AlicloudPush/CloudPushSDK.framework/Headers/MPGerneralDefinition.h
0 → 100644
浏览文件 @
b494dfff
//
// MPGerneralDefinition.h
// CloudPushSDK
//
// Created by junmo on 16/10/11.
// Copyright © 2016年 aliyun.mobileService. All rights reserved.
//
#ifndef MPGerneralDefinition_h
#define MPGerneralDefinition_h
#import "CloudPushCallbackResult.h"
typedef
void
(
^
CallbackHandler
)(
CloudPushCallbackResult
*
res
);
// 保证callback不为空且回调不在主线程上执行
#define NotNilCallback(funcName, paras)\
if (funcName) {\
if ([NSThread isMainThread]) {\
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{\
funcName(paras);\
});\
} else {\
funcName(paras);\
}\
}
#endif
/* MPGerneralDefinition_h */
ios/AlicloudPush/CloudPushSDK.framework/Modules/module.modulemap
0 → 100644
浏览文件 @
b494dfff
framework module CloudPushSDK {
umbrella header "CloudPushSDK.h"
export *
module * { export * }
}
ios/AlicloudPush/EMASRest.framework/EMASRest
0 → 100644
浏览文件 @
b494dfff
File added
ios/AlicloudPush/EMASRest.framework/Headers/EMASRest.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASRest.h
// EMASRest
//
// Created by sky on 2020/6/11.
// Copyright © 2020 aliyun. All rights reserved.
//
#import <Foundation/Foundation.h>
#define ALICLOUD_EMAS_REST_IOS_SDK_VERSION @"11.1.1.2-fix"
#import <EMASRest/EMASRestConfiguration.h>
#import <EMASRest/EMASRestCacheConfig.h>
#import <EMASRest/EMASRestManager.h>
#import <EMASRest/EMASRestManager.h>
#import <EMASRest/EMASRestSendService+MultiChannel.h>
#import <EMASRest/EMASRestSendService.h>
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestCacheConfig.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASRestCacheConfig.h
// AlicloudCommonAnalytics
//
// Created by sky on 2020/7/27.
//
#import <Foundation/Foundation.h>
#import "EMASRestConfiguration.h"
NS_ASSUME_NONNULL_BEGIN
@interface
EMASRestCacheConfig
:
NSObject
@property
(
nonatomic
,
assign
)
int
memoryCacheSizeLimit
;
// 内存size限制
@property
(
nonatomic
,
assign
)
int
memoryCacheCountLimit
;
// 日志条数限制
@property
(
nonatomic
,
assign
)
BOOL
memoryCacheSwitch
;
// 内存缓存开关
@property
(
nonatomic
,
assign
)
BOOL
diskCacheSwitch
;
// 磁盘缓存开关
@property
(
nonatomic
,
strong
)
NSString
*
cacheName
;
// 缓存标识,默认为common
// 缓存标识,对应一个实例。
// dataUploadHost+appkey+cacheName共同确认一个实例
@property
(
nonatomic
,
strong
)
NSString
*
cacheKey
;
@property
(
nonatomic
,
strong
)
EMASRestConfiguration
*
restConfig
;
// 是否有效
-
(
BOOL
)
isValid
;
@end
NS_ASSUME_NONNULL_END
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestConfiguration.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASRestConfiguration.h
// EMASRest
//
// Created by qiulibin on 16/11/12.
// Copyright © 2016年 Taobao lnc. All rights reserved.
//
#ifndef EMASRestConfiguration_h
#define EMASRestConfiguration_h
#import <Foundation/Foundation.h>
//用于返回追加的保留字段信息
@protocol
EMASRestReservesProviderProtocol
<
NSObject
>
-
(
NSDictionary
<
NSString
*
,
NSString
*>*
)
reserveInfoDictionary
;
@end
@interface
EMASRestConfiguration
:
NSObject
@property
(
nonatomic
,
copy
)
NSString
*
channel
;
@property
(
nonatomic
,
copy
)
NSString
*
appkey
;
@property
(
nonatomic
,
copy
)
NSString
*
secret
;
@property
(
nonatomic
,
copy
)
NSString
*
userId
;
@property
(
nonatomic
,
copy
)
NSString
*
usernick
;
@property
(
nonatomic
,
copy
)
NSString
*
appVersion
;
@property
(
nonatomic
,
copy
)
NSString
*
country
;
@property
(
nonatomic
,
copy
)
NSString
*
dataUploadScheme
;
// http or https
@property
(
nonatomic
,
copy
)
NSString
*
dataUploadHost
;
// data upload host
@end
#endif
/* EMASRestConfiguration_h */
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestDevice.h
0 → 100644
浏览文件 @
b494dfff
//
// TBDevice2.h
//
//
// Created by Alvin on 4/21/13.
//
// 设备信息的分装类
#ifndef EMASRestDevice_h
#define EMASRestDevice_h
#import <sys/socket.h>
#import <sys/sysctl.h>
#import <net/if.h>
#import <net/if_dl.h>
#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonHMAC.h>
#import "EMASRestDeviceInfo.h"
@interface
EMASRestDevice
:
NSObject
// 获取设备信息:部分信息的变化性,因此这里需要提供一个 持久配置模块,用于支持这类数据
+
(
EMASRestDeviceInfo
*
)
getDevice
;
// 获取Mac地址
+
(
NSString
*
)
macAddress
;
@end
#endif
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestDeviceInfo.h
0 → 100644
浏览文件 @
b494dfff
//
// TBDevice.h
//
//
// Created by Alvin on 4/21/13.
//
// 设备信息存储的元类
#ifndef EMASRestDeviceInfo_h
#define EMASRestDeviceInfo_h
#import <Foundation/Foundation.h>
@interface
EMASRestDeviceInfo
:
NSObject
@property
(
readwrite
,
strong
)
NSString
*
mAppVersion
;
@property
(
readwrite
,
strong
)
NSString
*
mOsName
;
@property
(
readwrite
,
strong
)
NSString
*
mUtdid
;
@property
(
readwrite
,
strong
)
NSString
*
mImei
;
@property
(
readwrite
,
strong
)
NSString
*
mImsi
;
@property
(
readwrite
,
strong
)
NSString
*
mBrand
;
@property
(
readwrite
,
strong
)
NSString
*
mCpu
;
@property
(
readwrite
,
strong
)
NSString
*
mDeviceId
;
@property
(
readwrite
,
strong
)
NSString
*
mDeviceModel
;
@property
(
readwrite
,
strong
)
NSString
*
mResolution
;
@property
(
readwrite
,
strong
)
NSString
*
mCarrier
;
@property
(
readwrite
,
strong
)
NSString
*
mAccess
;
@property
(
readwrite
,
strong
)
NSString
*
mAccessSubType
;
@property
(
readwrite
,
strong
)
NSString
*
mCountry
;
@property
(
readwrite
,
strong
)
NSString
*
mLanguage
;
@property
(
readwrite
,
strong
)
NSString
*
mOsVersion
;
//@property(readwrite,strong) NSString * mDebugId;
@end
#endif
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestManager.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASRest.h
// EMASRest
//
// Created by sky on 2020/6/11.
// Copyright © 2020 aliyun. All rights reserved.
//
#import "EMASRestCacheConfig.h"
@interface
EMASRestManager
:
NSObject
+
(
void
)
turnOnDebug
;
// 添加rest配置
+
(
void
)
addRestCacheConfigs
:(
EMASRestCacheConfig
*
)
config
;
/**
* 异步接口,注意数据大小不能超过30K
*/
+
(
void
)
sendLogAsyncWithConfiguration
:(
EMASRestCacheConfig
*
)
config
aPageName
:(
NSObject
*
)
aPageName
eventId
:(
int
)
aEventId
arg1
:
(
NSString
*
)
aArg1
arg2
:
(
NSString
*
)
aArg2
arg3
:
(
NSString
*
)
aArg3
args
:
(
NSDictionary
*
)
aArgs
;
@end
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestMd5.h
0 → 100644
浏览文件 @
b494dfff
//
// UTMd5.h
//
#import <Foundation/Foundation.h>
@interface
EMASRestMd5
:
NSObject
+
(
NSString
*
)
md5StrForData
:(
NSData
*
)
data
;
+
(
NSData
*
)
md5ForData
:(
NSData
*
)
data
;
+
(
NSString
*
)
md5StrForNSString
:(
NSString
*
)
str
;
@end
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestSendService+MultiChannel.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASRestSendService+MultiChannel.h
// AlicloudCommonAnalytics
//
// Created by sky on 2020/6/11.
// Copyright © 2020 aliyun. All rights reserved.
//
#import "EMASRestSendService.h"
#import "EMASRestConfiguration.h"
NS_ASSUME_NONNULL_BEGIN
@interface
EMASRestSendService
(
MultiChannel
)
/**
* 异步接口,注意数据大小不能超过30K
*/
+
(
void
)
sendLogAsyncWithConfiguration
:(
EMASRestConfiguration
*
)
configuration
aPageName
:(
NSObject
*
)
aPageName
eventId
:(
int
)
aEventId
arg1
:
(
NSString
*
)
aArg1
arg2
:
(
NSString
*
)
aArg2
arg3
:
(
NSString
*
)
aArg3
args
:
(
NSDictionary
*
)
aArgs
;
/**
* 同步接口,注意数据大小不能超过30K
*/
+
(
BOOL
)
sendLogSyncWithConfiguration
:(
EMASRestConfiguration
*
)
configuration
aPageName
:(
NSObject
*
)
aPageName
eventId
:(
int
)
aEventId
arg1
:
(
NSString
*
)
aArg1
arg2
:
(
NSString
*
)
aArg2
arg3
:
(
NSString
*
)
aArg3
args
:
(
NSDictionary
*
)
aArgs
;
@end
NS_ASSUME_NONNULL_END
ios/AlicloudPush/EMASRest.framework/Headers/EMASRestSendService.h
0 → 100644
浏览文件 @
b494dfff
//
// EMASRestSendService.h
// EMASRest
//
// Created by qiulibin on 16/11/12.
// Copyright © 2016年 Taobao lnc. All rights reserved.
//
#ifndef EMASRestSendService_h
#define EMASRestSendService_h
#import <Foundation/Foundation.h>
#import "EMASRestConfiguration.h"
@interface
EMASRestSendService
:
NSObject
//From数据链路打通需求,由一休SDK调用, 文档https://yuque.antfin-inc.com/ubmgda/lh1gwa/dffuy5
@property
(
nonatomic
,
copy
)
NSString
*
utabtest
;
@property
(
nonatomic
,
copy
)
NSString
*
utabtestpage
;
@property
(
nonatomic
,
weak
)
id
<
EMASRestReservesProviderProtocol
>
reserveProvider
;
+
(
EMASRestSendService
*
)
shareInstance
;
/**
* 配置初始化,该接口支持更新配置
* 》》》》》》》》》》》》》》》》提醒:只有调用接口比TBCrashReporter的业务才需要进行配置,比如安全模式 》》》》》》
* @param config 配置对象,参数存储在对象中
* @return 配置初始化是否成功,如appkey是必填参数,不可缺少
*/
-
(
BOOL
)
configBasicParamWithTBConfiguration
:(
EMASRestConfiguration
*
)
config
;
/**
* 获取配置参数
* @return 已经配置过了,返回配置的结果,否则返回nil
*/
-
(
EMASRestConfiguration
*
)
obtainConfiguration
;
/**
* 同步接口,注意数据大小不能超过30K
*/
-
(
BOOL
)
sendLogSync
:(
NSObject
*
)
aPageName
eventId
:(
int
)
aEventId
arg1
:
(
NSString
*
)
aArg1
arg2
:
(
NSString
*
)
aArg2
arg3
:
(
NSString
*
)
aArg3
args
:
(
NSDictionary
*
)
aArgs
;
/**
* 异步接口,注意数据大小不能超过30K
*/
-
(
void
)
sendLogAsync
:(
NSObject
*
)
aPageName
eventId
:(
int
)
aEventId
arg1
:
(
NSString
*
)
aArg1
arg2
:
(
NSString
*
)
aArg2
arg3
:
(
NSString
*
)
aArg3
args
:
(
NSDictionary
*
)
aArgs
;
/**
* 自定义url传输(同步),注意数据大小不能超过30K
*/
-
(
NSData
*
)
sendLogWithUrl
:(
NSString
*
)
url
PageName
:(
NSObject
*
)
aPageName
eventId
:(
int
)
aEventId
arg1
:
(
NSString
*
)
aArg1
arg2
:
(
NSString
*
)
aArg2
arg3
:
(
NSString
*
)
aArg3
args
:
(
NSDictionary
*
)
aArgs
;
@end
#endif
/* EMASRestSendService_h */
ios/AlicloudPush/EMASRest.framework/Modules/module.modulemap
0 → 100644
浏览文件 @
b494dfff
framework module EMASRest {
umbrella header "EMASRest.h"
export *
module * { export * }
}
ios/AlicloudPush/UTDID.framework/Headers/AidProtocol.h
0 → 100644
浏览文件 @
b494dfff
//
// AidProtocol.h
// UtdidSDK
//
// Created by ALLEN on 14-12-22.
// Copyright (c) 2014年 Alvin. All rights reserved.
//
#ifndef AidProtocol_h
#define AidProtocol_h
#define EVENT_REQUEST_STARTED 1000
#define EVENT_REQUEST_SUCCESS 1001
#define EVENT_REQUEST_FAILED 1002
#define EVENT_NETWORK_ERROR 1003
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol
AidProtocolDelegate
<
NSObject
>
@required
-
(
void
)
onAidEventChanged
:
(
NSInteger
)
eventId
aid
:
(
NSString
*
)
aid
;
@end
NS_ASSUME_NONNULL_END
#endif
ios/AlicloudPush/UTDID.framework/Headers/UTDID.h
0 → 100644
浏览文件 @
b494dfff
//
// UTDIDPublic.h
// UTDID
//
// Created by ljianfeng on 2019/8/1.
// Copyright © 2019 Alvin. All rights reserved.
//
#ifndef UTDID_h
#define UTDID_h
#import <UTDID/UTDevice.h>
#import <UTDID/AidProtocol.h>
#endif
/* UTDIDPublic_h */
ios/AlicloudPush/UTDID.framework/Headers/UTDevice.h
0 → 100644
浏览文件 @
b494dfff
//
// UTDevice.h
//
//
// Created by Alvin on 4/21/13.
//
// 设备信息的分装类:sdk合作开发需要用这个类提供的设备信息接口
// Version:1.5.0-AU
#ifndef UTDIDDevice_h
#define UTDIDDevice_h
#import <Foundation/Foundation.h>
@protocol
AidProtocolDelegate
;
NS_ASSUME_NONNULL_BEGIN
@interface
UTDevice
:
NSObject
/**
* @brief 获取SDK生成的设备唯一标识.
*
* @warning 调用说明:这个设备唯一标识是持久的,并且格式安全,iOS6以及以下,多应用互通.
*
* 调用顺序:utdid任意时刻都可以调用.
*
* @return 24字节的设备唯一标识.
*/
+
(
NSString
*
)
utdid
;
/**
* @brief 同步获得AID.
*
* @warning 调用说明:若本地端没有最新AID,将耗费远程通信时间并阻塞线程,建议将此调用置于非主线程,或使用{@link getAidAsync}异步获得AID。
*
* 调用顺序:aid任意时刻都可以调用.
*
* @return AID.
*/
+
(
NSString
*
)
aid
:(
NSString
*
)
appName
token
:(
NSString
*
)
token
;
/**
* @brief 异步请求AID.
*
* @warning 调用说明:若本地端没有最新AID,将建立异步请求获得AID,
*
* 调用顺序:aidAsync任意时刻都可以调用.
*/
+
(
void
)
aidAsync
:(
NSString
*
)
appName
token
:(
NSString
*
)
token
aidDelegate
:(
id
<
AidProtocolDelegate
>
)
aidDelegate
;
@end
NS_ASSUME_NONNULL_END
#endif
ios/AlicloudPush/UTDID.framework/Info.plist
0 → 100644
浏览文件 @
b494dfff
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
BuildMachineOSBuild
<
/k
e
y
>
<
string
>
19G73
<
/string
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
en
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
UTDID
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
com.alibaba.UTDID-AU
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
UTDID
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
FMWK
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.5.0.90-SNAPSHOT
<
/string
>
<
k
e
y
>
CFBundleSupportedPlatforms
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
iPhoneOS
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1
<
/string
>
<
k
e
y
>
DTCompiler
<
/k
e
y
>
<
string
>
com.apple.compilers.llvm.clang.1_0
<
/string
>
<
k
e
y
>
DTPlatformBuild
<
/k
e
y
>
<
string
>
17B102
<
/string
>
<
k
e
y
>
DTPlatformName
<
/k
e
y
>
<
string
>
iphoneos
<
/string
>
<
k
e
y
>
DTPlatformVersion
<
/k
e
y
>
<
string
>
13.2
<
/string
>
<
k
e
y
>
DTSDKBuild
<
/k
e
y
>
<
string
>
17B102
<
/string
>
<
k
e
y
>
DTSDKName
<
/k
e
y
>
<
string
>
iphoneos13.2
<
/string
>
<
k
e
y
>
DTXcode
<
/k
e
y
>
<
string
>
1120
<
/string
>
<
k
e
y
>
DTXcodeBuild
<
/k
e
y
>
<
string
>
11B500
<
/string
>
<
k
e
y
>
MinimumOSVersion
<
/k
e
y
>
<
string
>
7.0
<
/string
>
<
k
e
y
>
UIDeviceFamily
<
/k
e
y
>
<
a
rr
a
y
>
<
int
e
g
e
r
>
1
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
2
<
/int
e
g
e
r
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/plist
>
ios/AlicloudPush/UTDID.framework/Modules/module.modulemap
0 → 100644
浏览文件 @
b494dfff
framework module UTDID {
umbrella header "UTDID.h"
export *
module * { export * }
}
ios/AlicloudPush/UTDID.framework/UTDID
0 → 100644
浏览文件 @
b494dfff
File added
ios/AlicloudPush/UTMini.framework/Headers/AppMonitor.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorSDK.h
// AppMonitorSDK
//
// Created by junzhan on 14-9-9.
// Copyright (c) 2014年 君展. All rights reserved.
// 接口类
#import <Foundation/Foundation.h>
#import "AppMonitorTable.h"
#import "AppMonitorAlarm.h"
#import "AppMonitorCounter.h"
#import "AppMonitorStat.h"
@interface
AppMonitor
:
NSObject
+
(
BOOL
)
isInit
;
+
(
BOOL
)
isUTInit
;
+
(
void
)
setUTInit
;
+
(
instancetype
)
sharedInstance
;
/*
* 设置采样率配置
* @param jsonStr JSON串
*/
+
(
void
)
setSamplingConfigWithJson
:(
NSString
*
)
jsonStr
;
/**
* 关闭采样,紧开发调试用。线上版本请勿调用此API
*/
+
(
void
)
disableSample
;
/**
* 设置采样率(默认是 50%) 值范围在[0~10000] (0表示不上传,10000表示100%上传,5000表示50%上传)
*/
+
(
void
)
setSampling
:(
NSString
*
)
sampling
;
////是否开启实时调试模式(与UT同步)
+
(
BOOL
)
isTurnOnRealTimeDebug
;
+
(
NSString
*
)
realTimeDebugUploadUrl
;
+
(
NSString
*
)
realTimeDebugId
;
+
(
void
)
turnOnAppMonitorRealtimeDebug
:(
NSDictionary
*
)
pDict
;
+
(
void
)
turnOffAppMonitorRealtimeDebug
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorAlarm.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorAlarm.h
// AppMonitor
//
// Created by junzhan on 14-9-15.
// Copyright (c) 2014年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AppMonitorBase.h"
@interface
AppMonitorAlarm
:
AppMonitorBase
/**
* 记录业务操作成功接口
*
* @param page 页面名称,安卓iOS要相同. 命名规范:若之前埋点有页面名,则用原来的; 否则用"业务名_页面名"(无页面则"业务名"); 采用首字母大写驼峰方式. 如Shop_Detail, Shop_List
* @param monitorPoint 监控点名称,安卓iOS要相同,从@雷曼 获取
*
*/
+
(
void
)
commitSuccessWithPage
:(
NSString
*
)
page
monitorPoint
:(
NSString
*
)
monitorPoint
;
/**
* 记录业务操作失败接口
*
* @param page 页面名称,安卓iOS要相同. 命名规范:若之前埋点有页面名,则用原来的; 否则用"业务名_页面名"(无页面则"业务名"); 采用首字母大写驼峰方式. 如Shop_Detail, Shop_List
* @param monitorPoint 监控点名称,安卓iOS要相同,从@雷曼 获取
* @param errorCode 错误码,若为MTOP请求则传MTOP的错误码,否则请业务方对错误进行分类编码,方便统计错误类型占比
* @param errorMsg 错误信息,若位MTOP请求则传MTOP的错误信息, 否则请业务方自己描述错误, 方便自己查找原因
*/
+
(
void
)
commitFailWithPage
:(
NSString
*
)
page
monitorPoint
:(
NSString
*
)
monitorPoint
errorCode
:(
NSString
*
)
errorCode
errorMsg
:(
NSString
*
)
errorMsg
;
/**
* 记录业务操作成功接口
*
* @param page 页面名称,安卓iOS要相同. 命名规范:若之前埋点有页面名,则用原来的; 否则用"业务名_页面名"(无页面则"业务名"); 采用首字母大写驼峰方式. 如Shop_Detail, Shop_List
* @param monitorPoint 监控点名称,安卓iOS要相同,从@雷曼 获取
* @arg 附加参数,用于做横向扩展
*/
+
(
void
)
commitSuccessWithPage
:(
NSString
*
)
page
monitorPoint
:(
NSString
*
)
monitorPoint
arg
:(
NSString
*
)
arg
;
/**
* 记录业务操作失败接口
*
* @param page 页面名称,安卓iOS要相同. 命名规范:若之前埋点有页面名,则用原来的; 否则用"业务名_页面名"(无页面则"业务名"); 采用首字母大写驼峰方式. 如Shop_Detail, Shop_List
* @param monitorPoint 监控点名称,安卓iOS要相同,从@雷曼 获取
* @param errorCode 错误码,若为MTOP请求则传MTOP的错误码,否则请业务方对错误进行分类编码,方便统计错误类型占比
* @param errorMsg 错误信息,若位MTOP请求则传MTOP的错误信息, 否则请业务方自己描述错误, 方便自己查找原因
* @arg 附加参数,用于做横向扩展
*/
+
(
void
)
commitFailWithPage
:(
NSString
*
)
page
monitorPoint
:(
NSString
*
)
monitorPoint
errorCode
:(
NSString
*
)
errorCode
errorMsg
:(
NSString
*
)
errorMsg
arg
:(
NSString
*
)
arg
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorBase.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorBase.h
// AppMonitor
//
// Created by junzhan on 14-10-14.
// Copyright (c) 2014年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
AppMonitorBase
:
NSObject
/**
* 日志写入UT间隔时间(单位秒).默认300秒, -1代表关闭. 会监听配置中心做变化
*/
+
(
void
)
setWriteLogInterval
:(
NSInteger
)
writeLogInterval
;
+
(
NSInteger
)
writeLogInterval
;
/**
* 将appmonitor的日志立刻强制写入本地(UT),避免丢失。请不要私自调用,使用前咨询@君展
*/
+
(
void
)
flushAllLog
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorCounter.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorCounter.h
// AppMonitor
//
// Created by junzhan on 14-10-14.
// Copyright (c) 2014年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AppMonitorBase.h"
@interface
AppMonitorCounter
:
AppMonitorBase
/**
* 实时计数接口.(每次commit会累加一次count,value也会累加)可用于服务端计算总次数或求平均值。
* 此接口数据量不应太大,
*
* @param page 操作发生所在的页面
* @param monitorPoint 监控点名称
* @param value 数值
*/
+
(
void
)
commitWithPage
:(
NSString
*
)
page
monitorPoint
:(
NSString
*
)
monitorPoint
value
:(
double
)
value
;
/**
* 实时计数接口.(每次commit会累加一次count,value也会累加)可用于服务端计算总次数或求平均值。
* 此接口数据量不应太大,
*
* @param page 操作发生所在的页面
* @param monitorPoint 监控点名称
* @param value 数值
* @param arg 附加参数
*/
+
(
void
)
commitWithPage
:(
NSString
*
)
page
monitorPoint
:(
NSString
*
)
monitorPoint
value
:(
double
)
value
arg
:(
NSString
*
)
arg
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorDimension.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorDimension.h
// AppMonitor
//
// Created by christ.yuj on 15/2/15.
// Copyright (c) 2015年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* 监控维度
*
*/
@interface
AppMonitorDimension
:
NSObject
@property
(
nonatomic
,
copy
)
NSString
*
name
;
@property
(
nonatomic
,
copy
)
NSString
*
constantValue
;
-
(
instancetype
)
initWithName
:(
NSString
*
)
name
;
-
(
instancetype
)
initWithName
:(
NSString
*
)
name
constantValue
:(
NSString
*
)
constantValue
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorDimensionSet.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorDimensionSet.h
// AppMonitor
//
// Created by christ.yuj on 15/2/15.
// Copyright (c) 2015年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AppMonitorDimensionValueSet.h"
#import "AppMonitorDimension.h"
@interface
AppMonitorDimensionSet
:
NSObject
/**
* 根据列表初始化指标集合对象
*
* @param array NSString类型的数组 string为Name;
* @return
*/
+
(
instancetype
)
setWithArray
:(
NSArray
*
)
array
;
-
(
BOOL
)
valid
:(
AppMonitorDimensionValueSet
*
)
dimensionValues
;
/**
* 增加维度
*
* @param dimension 维度对象
* @return
*/
-
(
void
)
addDimension
:(
AppMonitorDimension
*
)
dimension
;
/**
* 增加维度对象
*
* @param name 维度名称
* @return
*/
-
(
void
)
addDimensionWithName
:(
NSString
*
)
name
;
/**
* 获取维度对象
*
* @param name 维度名称
* @return
*/
-
(
AppMonitorDimension
*
)
dimensionForName
:(
NSString
*
)
name
;
-
(
NSMutableOrderedSet
*
)
dimensions
;
/**
* 设置定值维度
*
* @param dimensionValues key为维度名称,value为内容
*/
-
(
void
)
setConstantValue
:(
AppMonitorDimensionValueSet
*
)
dimensionValues
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorDimensionValueSet.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorDimensionValueSet.h
// AppMonitor
//
// Created by christ.yuj on 15/2/15.
// Copyright (c) 2015年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
其实就是个字典
*/
@interface
AppMonitorDimensionValueSet
:
NSObject
<
NSCopying
>
-
(
instancetype
)
initWithDictionary
:
(
NSDictionary
*
)
dictionary
;
/**
* 存储维度值
*/
@property
(
nonatomic
,
strong
)
NSMutableDictionary
*
dict
;
-
(
void
)
setValue
:(
NSString
*
)
value
forName
:(
NSString
*
)
name
;
-
(
BOOL
)
containValueForName
:(
NSString
*
)
name
;
-
(
NSString
*
)
valueForName
:(
NSString
*
)
name
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorMeasure.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorMeasure.h
// AppMonitor
//
// Created by christ.yuj on 15/2/15.
// Copyright (c) 2015年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AppMonitorMeasureValue.h"
/**
* 监控指标项
*
*/
@interface
AppMonitorMeasure
:
NSObject
@property
(
nonatomic
,
copy
)
NSString
*
name
;
@property
(
nonatomic
,
strong
)
NSNumber
*
constantValue
;
@property
(
nonatomic
,
strong
)
NSNumber
*
min
;
@property
(
nonatomic
,
strong
)
NSNumber
*
max
;
-
(
instancetype
)
initWithName
:(
NSString
*
)
name
;
-
(
instancetype
)
initWithName
:(
NSString
*
)
name
constantValue
:(
NSNumber
*
)
constantValue
;
-
(
instancetype
)
initWithName
:(
NSString
*
)
name
constantValue
:(
NSNumber
*
)
constantValue
min
:(
NSNumber
*
)
min
max
:(
NSNumber
*
)
max
;
-
(
void
)
setRangeWithMin
:(
NSNumber
*
)
min
max
:(
NSNumber
*
)
max
;
-
(
BOOL
)
valid
:(
AppMonitorMeasureValue
*
)
measureValue
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorMeasureSet.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorMeasureSet.h
// AppMonitor
//
// Created by christ.yuj on 15/2/15.
// Copyright (c) 2015年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AppMonitorMeasure.h"
#import "AppMonitorMeasureValueSet.h"
@interface
AppMonitorMeasureSet
:
NSObject
/**
* 根据列表初始化指标集合对象
*
* @param array NSString类型的数组 string为Name;
* @return
*/
+
(
instancetype
)
setWithArray
:(
NSArray
*
)
array
;
-
(
BOOL
)
valid
:(
NSString
*
)
module
MonitorPoint
:(
NSString
*
)
monitorpoint
measureValues
:(
AppMonitorMeasureValueSet
*
)
measureValues
;
/**
* 增加指标
*
* @param measure 指标对象
* @return
*/
-
(
void
)
addMeasure
:(
AppMonitorMeasure
*
)
measure
;
/**
* 增加指标对象
*
* @param name 指标名称
* @return
*/
-
(
void
)
addMeasureWithName
:(
NSString
*
)
name
;
/**
* 获取指标对象
*
* @param name 指标名称
* @return
*/
-
(
AppMonitorMeasure
*
)
measureForName
:(
NSString
*
)
name
;
/**
* 获取指标对象的列表
*
* @return
*/
-
(
NSMutableOrderedSet
*
)
measures
;
/**
* 设置定值维度
*
* @param measureValues key为指标名称,value为内容
*/
-
(
void
)
setConstantValue
:(
AppMonitorMeasureValueSet
*
)
measureValues
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorMeasureValue.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorMeasureValue.h
// AppMonitor
//
// Created by christ.yuj on 15/2/15.
// Copyright (c) 2015年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* 监控指标值
*
*/
@interface
AppMonitorMeasureValue
:
NSObject
/**
* 耗时操作是否已经完成
*/
@property
(
nonatomic
,
assign
)
BOOL
isFinish
;
@property
(
nonatomic
,
strong
)
NSNumber
*
offset
;
@property
(
nonatomic
,
strong
)
NSNumber
*
value
;
-
(
instancetype
)
initWithValue
:(
NSNumber
*
)
value
;
-
(
instancetype
)
initWithValue
:(
NSNumber
*
)
value
offset
:(
NSNumber
*
)
offset
;
-
(
void
)
merge
:(
AppMonitorMeasureValue
*
)
measureValue
;
//为了json序列化
-
(
NSDictionary
*
)
jsonDict
;
//json反序列化
-
(
instancetype
)
initWithDictionary
:(
NSDictionary
*
)
dictionary
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorMeasureValueSet.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorMeasureValueSet.h
// AppMonitor
//
// Created by christ.yuj on 15/2/15.
// Copyright (c) 2015年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AppMonitorMeasureValue.h"
@interface
AppMonitorMeasureValueSet
:
NSObject
<
NSCopying
>
-
(
instancetype
)
initWithDictionary
:
(
NSDictionary
*
)
dictionary
;
/**
* 设置指标值
*
* @param name
* @param value
* @return
*/
-
(
void
)
setDoubleValue
:(
double
)
value
forName
:(
NSString
*
)
name
;
-
(
void
)
setValue
:(
AppMonitorMeasureValue
*
)
value
forName
:(
NSString
*
)
name
;
-
(
BOOL
)
containValueForName
:(
NSString
*
)
name
;
-
(
AppMonitorMeasureValue
*
)
valueForName
:(
NSString
*
)
name
;
/**
* 合并指标
*
* @param measureValueSet 目标指标集合
* 发现相同的name就对MeasureValue做加操作
*/
-
(
void
)
merge
:(
AppMonitorMeasureValueSet
*
)
measureValueSet
;
-
(
NSDictionary
*
)
jsonDict
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorStat.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorStat.h
// AppMonitor
//
// Created by christ.yuj on 15/3/10.
// Copyright (c) 2015年 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AppMonitorBase.h"
#import "AppMonitorMeasureSet.h"
#import "AppMonitorDimensionSet.h"
@interface
AppMonitorStatTransaction
:
NSObject
-
(
void
)
beginWithMeasureName
:(
NSString
*
)
measureName
;
-
(
void
)
endWithMeasureName
:(
NSString
*
)
measureName
;
@end
@interface
AppMonitorStat
:
AppMonitorBase
/**
* 注册性能埋点
* @param module 模块
* @param monitorPoint 监控点
* @param measures 多指标
*/
+
(
void
)
registerWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
measureSet
:(
AppMonitorMeasureSet
*
)
measures
;
/**
* 注册性能埋点
* @param module 模块
* @param monitorPoint 监控点
* @param measures 多指标
* @param dimemsions 多维度
*/
+
(
void
)
registerWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
measureSet
:(
AppMonitorMeasureSet
*
)
measures
dimensionSet
:(
AppMonitorDimensionSet
*
)
dimensions
;
/**
* 注册性能埋点
* @param module 模块
* @param monitorPoint 监控点
* @param measures 多指标
* @param isCommitDetail 标记是否提交明细。需要提交明细时设置为YES,否则为NO
*/
+
(
void
)
registerWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
measureSet
:(
AppMonitorMeasureSet
*
)
measures
isCommitDetail
:(
BOOL
)
detail
;
/**
* 注册性能埋点
* @param module 模块
* @param monitorPoint 监控点
* @param measures 多指标
* @param dimemsions 多维度
* @param isCommitDetail 标记是否提交明细。需要提交明细时设置为YES,否则为NO
*/
+
(
void
)
registerWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
measureSet
:(
AppMonitorMeasureSet
*
)
measures
dimensionSet
:(
AppMonitorDimensionSet
*
)
dimensions
isCommitDetail
:(
BOOL
)
detail
;
/**
* 提交多维度,多指标
* @param module 监控模块
* @param monitorPoint 监控点名称 Page+monitorPoint必须唯一
* @param dimensionValues 维度值集合
* @param measureValues 指标值集合
*/
+
(
void
)
commitWithModule
:(
NSString
*
)
module
monitorPoint
:
(
NSString
*
)
monitorPoint
dimensionValueSet
:(
AppMonitorDimensionValueSet
*
)
dimensionValues
measureValueSet
:(
AppMonitorMeasureValueSet
*
)
measureValues
;
/**
* 提交多维度单指标
* @param module 监控模块
* @param monitorPoint 监控点名称 Page+monitorPoint必须唯一
* @param dimensionValues 维度值集合
* @param value 指标值
*/
+
(
void
)
commitWithModule
:(
NSString
*
)
module
monitorPoint
:
(
NSString
*
)
monitorPoint
dimensionValueSet
:(
AppMonitorDimensionValueSet
*
)
dimensionValues
value
:(
double
)
value
;
/**
* 提交单指标
* @param module 监控模块
* @param monitorPoint 监控点名称 Page+monitorPoint必须唯一
* @param value 指标值
*/
+
(
void
)
commitWithModule
:(
NSString
*
)
module
monitorPoint
:
(
NSString
*
)
monitorPoint
value
:(
double
)
value
;
/**
*开始事件,适合不存在并发的跨多线程事件(比如常见的UI加载渲染)<br/>
*如果事件跨多线程多并发执行,请使用beginTransaction-endTransaction方法对,此场景较少见
* @param module 监控模块
* @param monitorPoint 监控点名称 module+monitorPoint必须唯一
*/
+
(
void
)
beginWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
measureName
:(
NSString
*
)
measureName
;
/**
*结束事件,适合不存在并发的跨多线程事件(比如常见的UI加载渲染)<br/>
*如果事件跨多线程多并发执行,请使用beginTransaction-endTransaction方法对,此场景较少见
* @param module 监控模块
* @param monitorPoint 监控点名称 module+monitorPoint必须唯一
*/
+
(
void
)
endWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
measureName
:(
NSString
*
)
measureName
;
/**
* 埋点事务,可以通过调用事务的begin-end方法对来统计耗时指标的值
*
* @param module 模块
* @param monitorPoint 监控点
* @return 返回埋点事务实例
*/
+
(
AppMonitorStatTransaction
*
)
createTransactionWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
;
@end
ios/AlicloudPush/UTMini.framework/Headers/AppMonitorTable.h
0 → 100644
浏览文件 @
b494dfff
//
// AppMonitorStat2.h
// AppMonitor
//
// Created by sugar on 7/8/15.
// Copyright (c) 2015 君展. All rights reserved.
//
#import <Foundation/Foundation.h>
/////////////////////////////////////////////////////////
// 数据格式以下图为例:
// 启动性能 - 启动时间监控
// 启动方式 | cpu | 机型 | 网络类型| 总计
// ----------------------------------
// 冷启动耗时 |arm7 | 4s | 2G | 5s (约束2-10)
// 热启动耗时 |arm7s| 5s | 4G | 3s (约束1-3)
// step 1: 创建一个模块空间;monitorForScheme
// step 2: 在空间下面创建表
// step 3: 添加对应的值的约束,不在约束范围内的点将一噪点方式上报
// step 4: 更新表数据
//
/////////////////////////////////////////////////////////
@interface
AppMonitorTable
:
NSObject
// BEGIN Add by 玄叶
+
(
void
)
registerWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
columns
:(
NSArray
*
)
cols
rows
:(
NSArray
*
)
rows
aggregate
:(
BOOL
)
aggregate
;
+
(
void
)
addConstraintWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
name
:(
NSString
*
)
name
min
:(
double
)
min
max
:(
double
)
max
defaultValue
:(
double
)
value
;
+
(
BOOL
)
commitWithModule
:(
NSString
*
)
module
monitorPoint
:(
NSString
*
)
monitorPoint
columns
:(
NSDictionary
*
)
cols
rows
:(
NSDictionary
*
)
rows
;
// END
// 创建一个表的模块空间
+
(
instancetype
)
monitorForScheme
:(
NSString
*
)
scheme
tableName
:(
NSString
*
)
tableName
;
// 新建一张表, 行,列,数据是否聚合
-
(
void
)
registerTableWithRows
:(
NSArray
*
)
rows
columns
:(
NSArray
*
)
cols
aggregate
:(
BOOL
)
yn
;
// 添加约束
-
(
void
)
addConstraintWithName
:(
NSString
*
)
name
range
:(
NSRange
)
range
defaultValue
:(
NSNumber
*
)
number
;
// 添加约束
-
(
void
)
addConstraintWithName
:(
NSString
*
)
name
min
:(
double
)
min
max
:(
double
)
max
defaultValue
:(
double
)
value
;
// 更新表 行的名字,列的名字,行的数据,列的数据
-
(
BOOL
)
updateTableForColumns
:(
NSDictionary
*
)
cols
rows
:(
NSDictionary
*
)
rows
;
// 更新表,不区分行列名字。此接口不允许行列同名,性能偏低,慎用!
-
(
BOOL
)
updateTableWithDictionary
:(
NSDictionary
*
)
dict
;
@end
\ No newline at end of file
ios/AlicloudPush/UTMini.framework/Headers/UT.h
0 → 100644
浏览文件 @
b494dfff
//
// UT.h
// miniUTSDK
//
// Created by 宋军 on 15/5/19.
// Copyright (c) 2015年 ___SONGJUN___. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface
UT
:
NSObject
////=====================================h5&Native接口=====================================
/**
* @brief h5&Native打通
*
* @warning 调用说明:由windwave封装,供aplus_wap.js调用
*
*
*
* @param dataDict aplus_wap.js采集的h5信息都通过该字典传进来,该字典中必须有key(funcType)
* 用来区分采集的是哪个事件信息,比如funcType=2001,则h5UT内部会调用
* pageEnter来处理,funcType=2101,则调用ctrlClicked处理
*
*/
+
(
void
)
h5UT
:(
NSDictionary
*
)
dataDict
view
:
(
UIView
*
)
pView
viewController
:
(
UIViewController
*
)
pViewController
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTAnalytics.h
0 → 100644
浏览文件 @
b494dfff
//
// UTAnalytics.h
// miniUTInterface
//
// Created by 宋军 on 14-10-14.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UTTracker.h"
#import "UTIRequestAuthentication.h"
#import "UTICrashCaughtListener.h"
@interface
UTAnalytics
:
NSObject
+
(
void
)
turnOnDev2
;
/**
* 单例初始化时,不再会从安全图片和指令plist读取appkey
*
* @return 返回UTAnalytics单例
*
*/
+
(
UTAnalytics
*
)
getInstance
;
/**
* 老接口兼容:接口方式设置主app级appkey/appsecret对
* 重复设置抛异常
*
* @param appKey 主app级的appkey
*
* @param secret 主app级的appsecret
*
*/
-
(
void
)
setAppKey
:(
NSString
*
)
appKey
secret
:(
NSString
*
)
secret
;
/**
* 新接口1:从安全图片读取出appkey后,塞給ut,作为主app级的appkey
* 重复设置抛异常
*
* @param appKey 主app级的appkey
*
* @param authocode 多图片时的后缀;为nil时,对应默认图片
*
*/
-
(
void
)
setAppKey4APP
:(
NSString
*
)
appKey
authcode
:(
NSString
*
)
authcode
;
/**
* 新接口2:接口方式设置SDK级appkey/appsecret对
* !!!请注意:只设置了SDK级appkey,埋点方法(UTTracker *) getTracker:(NSString *) pTrackId将不起作用
* !!!请注意:一定要先设置了主app级appkey,埋点方法(UTTracker *) getTracker:(NSString *) pTrackId才会作用
*
* @param appKey SDK级的appkey
*
* @param secret SDK级的appsecret
*
*/
-
(
void
)
setAppKey4SDK
:(
NSString
*
)
appKey
secret
:(
NSString
*
)
secret
;
/**
* 新接口3:从安全图片读取出appkey后,塞給ut,作为SDK级的appkey
* !!!请注意:只设置了SDK级appkey,埋点方法(UTTracker *) getTracker:(NSString *) pTrackId将不起作用
* !!!请注意:一定要先设置了主app级appkey,埋点方法(UTTracker *) getTracker:(NSString *) pTrackId才会作用
*
* @param appKey SDK级的appkey
*
* @param authocode 多图片时的后缀;为nil时,对应默认图片
*
*/
-
(
void
)
setAppKey4SDK
:(
NSString
*
)
appKey
authcode
:(
NSString
*
)
authcode
;
+
(
void
)
setDailyEnvironment
__deprecated
;
/**
* 老接口:对主app级的appkey设置appversion
*
* @param pAppVersion app级的appversion
*
*/
-
(
void
)
setAppVersion
:(
NSString
*
)
pAppVersion
;
-
(
void
)
setChannel
:(
NSString
*
)
pChannel
;
-
(
void
)
updateUserAccount
:(
NSString
*
)
pNick
userid
:
(
NSString
*
)
pUserId
;
-
(
void
)
userRegister
:(
NSString
*
)
pUsernick
;
-
(
void
)
updateSessionProperties
:(
NSDictionary
*
)
pDict
;
/**
* 老接口兼容:获取默认的UTTracker.
* 如果设置了app级的appkey,默认的tracker对应app级的生产者
* 如果只设置了sdk级的appkey,默认的tracker为空,返回第一个设置appkey的对应生产者
*
* @return 默认的UTTracker
*
*/
-
(
UTTracker
*
)
getDefaultTracker
;
/**
* 老接口兼容:返回trackid对应的UTTracker.
* 只能已经设置主app级appkey的前提下,才能有效设置并返回
*
* @param pTrackId 主app级的trackid
*
* @return 返回trackid对应的UTTracker
*
*/
-
(
UTTracker
*
)
getTracker
:(
NSString
*
)
pTrackId
;
/**
* 新接口:获取sdk级对应的UTTracker.
* 只有已经设置对应的sdk级的appkey的前提下,才能有效返回
*
* @param pAppkey SDK级的appkey
*
* @return sdk级对应的UTTracker
*
*/
-
(
UTTracker
*
)
getTracker4SDK
:(
NSString
*
)
pAppkey
;
-
(
void
)
turnOnDebug
;
-
(
void
)
turnOnDev
;
// 以下接口功能已废弃,接口保留
-
(
void
)
setRequestAuthentication
:(
id
<
UTIRequestAuthentication
>
)
pRequestAuth
__deprecated
;
-
(
void
)
onCrashHandler
;
-
(
void
)
turnOffCrashHandler
;
-
(
void
)
setCrashCaughtListener
:(
id
<
UTICrashCaughtListener
>
)
aListener
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTBaseRequestAuthentication.h
0 → 100644
浏览文件 @
b494dfff
//
// BaseRequestAuthentication.h
// miniUTInterface
//
// Created by 宋军 on 14-10-17.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UTIRequestAuthentication.h"
@interface
UTBaseRequestAuthentication
:
NSObject
<
UTIRequestAuthentication
>
-
(
id
)
initWithAppKey
:
(
NSString
*
)
pAppKey
appSecret
:
(
NSString
*
)
pSecret
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTCustomHitBuilder.h
0 → 100644
浏览文件 @
b494dfff
//
// UTCustomHitBuilder.h
// miniUTInterface
//
// Created by 宋军 on 14-10-17.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import "UTHitBuilder.h"
@interface
UTCustomHitBuilder
:
UTHitBuilder
-
(
void
)
setEventLabel
:(
NSString
*
)
pEventId
;
-
(
void
)
setEventPage
:(
NSString
*
)
pPageName
;
-
(
void
)
setDurationOnEvent
:(
long
long
)
durationOnEvent
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTHitBuilder.h
0 → 100644
浏览文件 @
b494dfff
//
// UTBaseMapBuilder.h
// miniUTInterface
//
// Created by 宋军 on 14-10-14.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
UTHitBuilder
:
NSObject
-
(
NSDictionary
*
)
build
;
-
(
void
)
setProperty
:(
NSString
*
)
pKey
value
:
(
NSString
*
)
pValue
;
-
(
void
)
setProperties
:(
NSDictionary
*
)
pPageProperties
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTICrashCaughtListener.h
0 → 100644
浏览文件 @
b494dfff
//
// UTICrashCaughtListener.h
// miniUTInterface
//
// Created by 宋军 on 14/10/28.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol
UTICrashCaughtListener
<
NSObject
>
-
(
NSDictionary
*
)
onCrashCaught
:
(
NSString
*
)
pCrashReason
CallStack
:
(
NSString
*
)
callStack
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTIRequestAuthentication.h
0 → 100644
浏览文件 @
b494dfff
//
// IRequestAuthentication.h
// miniUTInterface
//
// Created by 宋军 on 14-10-17.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol
UTIRequestAuthentication
<
NSObject
>
-
(
NSString
*
)
getAppKey
;
-
(
NSString
*
)
getSign
:(
NSString
*
)
pToBeSignStr
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTOirginalCustomHitBuilder.h
0 → 100644
浏览文件 @
b494dfff
//
// UTOirginalCustomHitBuilder.h
// miniUTInterface
//
// Created by 宋军 on 14/10/28.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UTHitBuilder.h"
@interface
UTOirginalCustomHitBuilder
:
UTHitBuilder
-
(
void
)
setPageName
:(
NSString
*
)
pPage
;
-
(
void
)
setEventId
:(
NSString
*
)
pEventId
;
-
(
void
)
setArg1
:(
NSString
*
)
pArg1
;
-
(
void
)
setArg2
:(
NSString
*
)
pArg2
;
-
(
void
)
setArg3
:(
NSString
*
)
pArg3
;
-
(
void
)
setArgs
:(
NSDictionary
*
)
pArgs
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTPageHitBuilder.h
0 → 100644
浏览文件 @
b494dfff
//
// UTMapBuilder.h
// miniUTInterface
//
// Created by 宋军 on 14-10-14.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import "UTHitBuilder.h"
@interface
UTPageHitBuilder
:
UTHitBuilder
-
(
void
)
setPageName
:(
NSString
*
)
pPageName
;
-
(
void
)
setReferPage
:(
NSString
*
)
pReferPageName
;
-
(
void
)
setDurationOnPage
:(
long
long
)
durationTimeOnPage
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTSecuritySDKRequestAuthentication.h
0 → 100644
浏览文件 @
b494dfff
//
// SecuritySDKRequestAuthentication.h
// miniUTInterface
//
// Created by 宋军 on 14-10-17.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UTIRequestAuthentication.h"
@interface
UTSecuritySDKRequestAuthentication
:
NSObject
<
UTIRequestAuthentication
>
-
(
id
)
initWithAppKey
:
(
NSString
*
)
pAppKey
;
@end
ios/AlicloudPush/UTMini.framework/Headers/UTTeamWork.h
0 → 100644
浏览文件 @
b494dfff
//
// UTTeamWork.h
// UTMini
//
// Created by ljianfeng on 2019/9/29.
// Copyright © 2019 alibaba. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface
UTTeamWork
:
NSObject
/**
* @brief 自定义https上传域名
*
* @param url 指定的https上传域名,比如以https://开头
*
* @warning 调用说明:需要在初始化UT之前调用(setAppkey之前)
*/
+
(
void
)
setHttpsUploadUrl
:(
NSString
*
)
url
;
@end
NS_ASSUME_NONNULL_END
ios/AlicloudPush/UTMini.framework/Headers/UTTracker.h
0 → 100644
浏览文件 @
b494dfff
//
// UTTracker.h
// miniUTInterface
//
// Created by 宋军 on 14-10-14.
// Copyright (c) 2014年 ___SONGJUN___. All rights reserved.
//
#import <Foundation/Foundation.h>
//#import <UIKit/UIViewController.h>
//#import <UIKit/UIWebView.h>
@class
UTDSDKInfo
;
typedef
enum
_UTPageStatus
{
UT_H5_IN_WebView
//设置容器中的H5页面事件的eventid为2001,不设置默认为2006
}
UTPageStatus
;
@interface
UTTracker
:
NSObject
@property
(
readonly
,
copy
)
UTDSDKInfo
*
mSdkinfo
;
-
(
id
)
initWithTrackId
:(
NSString
*
)
pTrackId
__deprecated
;
-
(
id
)
initWithAppKey
:(
NSString
*
)
pAppkey
appsecret
:
(
NSString
*
)
pAppSecret
authcode
:
(
NSString
*
)
pAuthCode
securitySign
:
(
BOOL
)
securitySign
;
-
(
id
)
initWithTracker
:(
UTTracker
*
)
pTracker
trackid
:
(
NSString
*
)
pTrackId
;
-
(
NSString
*
)
getAppKey
;
-
(
void
)
setGlobalProperty
:(
NSString
*
)
pKey
value
:
(
NSString
*
)
pValue
;
-
(
void
)
removeGlobalProperty
:(
NSString
*
)
pKey
;
-
(
NSString
*
)
getGlobalProperty
:(
NSString
*
)
pKey
;
-
(
void
)
send
:(
NSDictionary
*
)
pLogDict
;
#pragma mark 页面埋点
/**
* @brief 页面进入.
*
* @param pPageObject 页面对象,如viewcontroller指针
*
* @warning 调用说明:1.必须和pageDisAppear配对使用,否则不会成功埋点
* 2.确定页面名称优先级:updatePageName > NSStringFromClass(pObject.class)
*
* 最佳位置:若是viewcontroller页面,则需在viewDidAppear函数内调用
*/
-
(
void
)
pageAppear
:(
id
)
pPageObject
;
/**
* @brief 页面进入.
*
* @param pPageObject 页面对象,如viewcontroller指针
* @param pPageName 页面名称,如Page_Detail
*
* @warning 调用说明:1.必须和pageDisAppear配对使用,否则不会成功埋点
* 2.确定页面名称优先级:updatePageName > pPageName > NSStringFromClass(pObject.class)
* 若当调用pageAppear时已知页面名称,强烈建议使用该接口
* 最佳位置:若是viewcontroller页面,则需在viewDidAppear函数内调用
*/
-
(
void
)
pageAppear
:(
id
)
pPageObject
withPageName
:
(
NSString
*
)
pPageName
;
/**
* @brief 页面离开.
*
* @param pPageObject 页面对象,如viewcontroller指针
*
* @warning 调用说明:必须和pageAppear配对使用,否则不会成功埋点
*
* 最佳位置:若是viewcontroller页面,则需在viewDidDisAppear函数内调用
*/
-
(
void
)
pageDisAppear
:(
id
)
pPageObject
;
/**
* @brief 更新页面业务参数.
*
* @param pPageObject 页面对象,如viewcontroller指针
* @param pProperties 业务参数,kv对
*
* @warning 调用说明:必须在pageDisAppear之前调用
*
* 最佳位置:在pageDisAppear之前调用即可
*/
-
(
void
)
updatePageProperties
:(
id
)
pPageObject
properties
:
(
NSDictionary
*
)
pProperties
;
/**
* @brief 更新页面业务参数.
*
* @param pProperties 传给下一个页面业务参数,kv对
*
* @warning 调用说明:必须在下一个页面pageAppear之前调用,否则会携带错误
*
* 最佳位置:必须在下一个页面pageAppear之前调用
*/
-
(
void
)
updateNextPageProperties
:(
NSDictionary
*
)
pProperties
;
#pragma mark 页面埋点的辅助函数
/**
* @brief 更新页面名称.
*
* @param pPageObject 页面对象,如viewcontroller指针
* @param pPageName 更新后的页面名称
*
* @warning 调用说明:只有当调用pageAppear时还未知页面名称,后续可使用该接口更新
*
* 最佳位置:在pageDisAppear之前调用
*/
-
(
void
)
updatePageName
:(
id
)
pPageObject
pageName
:
(
NSString
*
)
pPageName
;
/**
* @brief 更新页面url.
*
* @param pPageObject 页面对象,如viewcontroller指针
* @param pUrl 页面对应的url
*
* @warning 调用说明:如手淘统一导航将每次页面跳转的url塞给对应的viewcontroller
*
* 最佳位置:在pageDisAppear之前调用
*/
-
(
void
)
updatePageUrl
:(
id
)
pPageObject
url
:
(
NSURL
*
)
pUrl
;
/**
* @brief 更新页面状态.
*
* @param pPageObject 页面对象,如viewcontroller指针
* @param aStatus 页面状态 enum类型
*
* @warning 调用说明:告知页面处于某些特殊的业务场景,如回退等
*
* 最佳位置:必须在pageAppear之前调用
*/
-
(
void
)
updatePageStatus
:(
id
)
pPageObject
status
:
(
UTPageStatus
)
aStatus
;
-
(
void
)
skipPage
:(
id
)
pPageObject
;
-
(
void
)
ctrlClicked
:(
NSString
*
)
controlName
onPage
:(
NSObject
*
)
pageName
args
:
(
NSDictionary
*
)
dict
;
@end
ios/AlicloudPush/UTMini.framework/Info.plist
0 → 100644
浏览文件 @
b494dfff
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
BuildMachineOSBuild
<
/k
e
y
>
<
string
>
18D109
<
/string
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
UTMini
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
com.taobao.junzhan.UTMini
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
UTMini
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
FMWK
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
5.2.0.2-appkeys-SNAPSHOT
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleSupportedPlatforms
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
iPhoneOS
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1
<
/string
>
<
k
e
y
>
DTCompiler
<
/k
e
y
>
<
string
>
com.apple.compilers.llvm.clang.1_0
<
/string
>
<
k
e
y
>
DTPlatformBuild
<
/k
e
y
>
<
string
>
16B91
<
/string
>
<
k
e
y
>
DTPlatformName
<
/k
e
y
>
<
string
>
iphoneos
<
/string
>
<
k
e
y
>
DTPlatformVersion
<
/k
e
y
>
<
string
>
12.1
<
/string
>
<
k
e
y
>
DTSDKBuild
<
/k
e
y
>
<
string
>
16B91
<
/string
>
<
k
e
y
>
DTSDKName
<
/k
e
y
>
<
string
>
iphoneos12.1
<
/string
>
<
k
e
y
>
DTXcode
<
/k
e
y
>
<
string
>
1010
<
/string
>
<
k
e
y
>
DTXcodeBuild
<
/k
e
y
>
<
string
>
10B61
<
/string
>
<
k
e
y
>
MinimumOSVersion
<
/k
e
y
>
<
string
>
5.0
<
/string
>
<
k
e
y
>
UIDeviceFamily
<
/k
e
y
>
<
a
rr
a
y
>
<
int
e
g
e
r
>
1
<
/int
e
g
e
r
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/plist
>
ios/AlicloudPush/UTMini.framework/UTMini
0 → 100644
浏览文件 @
b494dfff
File added
ios/rammus.podspec
浏览文件 @
b494dfff
...
...
@@ -14,12 +14,20 @@ A new Flutter plugin for AliCloud push.
s
.
source
=
{
:path
=>
'.'
}
s
.
source_files
=
'Classes/**/*'
s
.
public_header_files
=
'Classes/**/*.h'
s
.
dependency
'Flutter'
s
.
dependency
'AlicloudPush'
,
'1.9.9'
s
.
static_framework
=
true
s
.
frameworks
=
[
"SystemConfiguration"
,
"CoreTelephony"
]
s
.
libraries
=
[
"z"
,
"sqlite3.0"
,
"resolv"
]
s
.
static_framework
=
true
s
.
vendored_frameworks
=
[
'AlicloudPush/AlicloudSender.framework'
,
'AlicloudPush/AlicloudUtils.framework'
,
'AlicloudPush/CloudPushSDK.framework'
,
'AlicloudPush/EMASRest.framework'
,
'AlicloudPush/UTDID.framework'
,
'AlicloudPush/UTMini.framework'
,
]
s
.
dependency
'Flutter'
# s.dependency 'AlicloudPush', '1.9.9'
s
.
ios
.
deployment_target
=
'8.0'
end
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论