add 友盟统计

This commit is contained in:
lianxiang
2018-08-27 17:09:56 +08:00
parent 6e090fd28d
commit 6a8d55457a
54 changed files with 2560 additions and 1314 deletions
@@ -0,0 +1,15 @@
//
// EnvExport.h
// SecurityEnvTest
//
// Created by asherli on 17/9/1.
// Copyright © 2017年 alibaba. All rights reserved.
//
#ifndef EnvExport_h
#define EnvExport_h
#define SEC_ERROR_UMID_OK 0
#define SEC_ERROR_UMID_UNKNOWN_ERR 1
#endif /* EnvExport_h */
@@ -0,0 +1,21 @@
//
// ISecurityEnvInitListener.h
// SecurityEnvSDK
//
// Created by asherli on 17/9/1.
// Copyright © 2017年 alibaba. All rights reserved.
//
#ifndef SECURITYENV_ISECURITY_ENV_INITLISTENER_H
#define SECURITYENV_ISECURITY_ENV_INITLISTENER_H
#import <Foundation/Foundation.h>
#include "EnvExport.h"
@interface ISecurityEnvInitListener : NSObject
- (void) onUMIDInitFinished : (const char *) strToken : (int) status;
@end
#endif /* SECURITYENV_ISECURITY_ENV_INITLISTENER_H */
@@ -0,0 +1,27 @@
//
// SecurityEnvSDK.h
// SecurityGuardMain
//
// Created by asherli on 2017/07/12.
// Copyright © 2016年 alibaba. All rights reserved.
//
#ifndef SECURITYENV_SECURITY_ENV_SDK_H
#define SECURITYENV_SECURITY_ENV_SDK_H
#import <Foundation/Foundation.h>
#import "ISecurityEnvInitListener.h"
@interface SecurityEnvSDK : NSObject
- (NSInteger) initSync;
- (void) initASync : (ISecurityEnvInitListener *) listener;
- (NSString*) getToken;
// build by mtl
@end
#endif /* SECURITYENV_SECURITY_ENV_SDK_H */
@@ -0,0 +1,12 @@
<?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>CFBundleIdentifier</key>
<string>com.alimobilesec.SecurityEnvSDK</string>
<key>CFBundleName</key>
<string>SecurityEnvSDK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
</dict>
</plist>
@@ -0,0 +1,6 @@
framework module SecurityEnvSDK {
umbrella header "SecurityEnvSDK.h"
export *
module * { export * }
}
+1
View File
@@ -0,0 +1 @@
Versions/Current/Headers
+1
View File
@@ -0,0 +1 @@
Versions/Current/Resources
+1
View File
@@ -0,0 +1 @@
Versions/Current/UTDID
@@ -0,0 +1,23 @@
//
// 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
@protocol AidProtocolDelegate <NSObject>
@required
- (void) onAidEventChanged:(NSInteger)eventId
aid:(NSString *)aid;
@end
#endif
@@ -0,0 +1,56 @@
//
// UTDevice.h
//
//
// Created by Alvin on 4/21/13.
//
// 设备信息的分装类:sdk合作开发需要用这个类提供的设备信息接口
// Version:utdid4all-1.1.0
#ifndef UTDIDDevice_h
#define UTDIDDevice_h
#import "AidProtocol.h"
@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任意时刻都可以调用.
*
* @return AID.
*/
+(void) aidAsync:(NSString *)appName
token:(NSString *)token
aidDelegate:(id<AidProtocolDelegate>)aidDelegate;
@end
#endif
@@ -0,0 +1 @@
A