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
+2
View File
@@ -109,6 +109,7 @@
055947143A68ADCC68C3F3E1 /* Pods-GIGA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GIGA.debug.xcconfig"; path = "Pods/Target Support Files/Pods-GIGA/Pods-GIGA.debug.xcconfig"; sourceTree = "<group>"; }; 055947143A68ADCC68C3F3E1 /* Pods-GIGA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GIGA.debug.xcconfig"; path = "Pods/Target Support Files/Pods-GIGA/Pods-GIGA.debug.xcconfig"; sourceTree = "<group>"; };
8314D20F2133ABE500B458BF /* WeiIXinApiManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WeiIXinApiManager.h; sourceTree = "<group>"; }; 8314D20F2133ABE500B458BF /* WeiIXinApiManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WeiIXinApiManager.h; sourceTree = "<group>"; };
8314D2102133ABE500B458BF /* WeiIXinApiManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WeiIXinApiManager.m; sourceTree = "<group>"; }; 8314D2102133ABE500B458BF /* WeiIXinApiManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WeiIXinApiManager.m; sourceTree = "<group>"; };
8314D2122133F44600B458BF /* MobClickList.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MobClickList.h; sourceTree = "<group>"; };
83346ABD212BB50A0054D597 /* PassWordResetVC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PassWordResetVC.h; sourceTree = "<group>"; }; 83346ABD212BB50A0054D597 /* PassWordResetVC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PassWordResetVC.h; sourceTree = "<group>"; };
83346ABE212BB50A0054D597 /* PassWordResetVC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PassWordResetVC.m; sourceTree = "<group>"; }; 83346ABE212BB50A0054D597 /* PassWordResetVC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PassWordResetVC.m; sourceTree = "<group>"; };
83346ABF212BB50A0054D597 /* PassWordResetVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PassWordResetVC.xib; sourceTree = "<group>"; }; 83346ABF212BB50A0054D597 /* PassWordResetVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PassWordResetVC.xib; sourceTree = "<group>"; };
@@ -488,6 +489,7 @@
8361B40021215CD800238FEB /* GIGA.h */, 8361B40021215CD800238FEB /* GIGA.h */,
8361B42C2121812000238FEB /* GiGaServerConfig.h */, 8361B42C2121812000238FEB /* GiGaServerConfig.h */,
8361B42D2121812000238FEB /* GiGaServerConfig.m */, 8361B42D2121812000238FEB /* GiGaServerConfig.m */,
8314D2122133F44600B458BF /* MobClickList.h */,
); );
path = Config; path = Config;
sourceTree = "<group>"; sourceTree = "<group>";
+1 -1
View File
@@ -8,8 +8,8 @@
#import "AppDelegate.h" #import "AppDelegate.h"
#import <UserNotifications/UserNotifications.h> #import <UserNotifications/UserNotifications.h>
@interface AppDelegate (GiGaConfig)<UNUserNotificationCenterDelegate>
@interface AppDelegate (GiGaConfig)<UNUserNotificationCenterDelegate>
/** /**
v1.0 后使用 v1.0 后使用
-4
View File
@@ -70,16 +70,12 @@
item2.image = [[UIImage imageNamed:@""] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; item2.image = [[UIImage imageNamed:@""] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
} }
-(void)configEnvironment{ -(void)configEnvironment{
[GiGaServerConfig setServerType:GIGA_ENVIRONMENT]; [GiGaServerConfig setServerType:GIGA_ENVIRONMENT];
} }
- (void)setupRootVC{ - (void)setupRootVC{
GiGaMaskTaskViewController *maskeVC = [[GiGaMaskTaskViewController alloc] init]; GiGaMaskTaskViewController *maskeVC = [[GiGaMaskTaskViewController alloc] init];
+13
View File
@@ -9,6 +9,10 @@
#import "AppDelegate+ThirdParty.h" #import "AppDelegate+ThirdParty.h"
#define PUSH_APPKEY @"1f8122badd24c2adb8b3f231" #define PUSH_APPKEY @"1f8122badd24c2adb8b3f231"
#import "WXApi.h" #import "WXApi.h"
#import <Bugly/Bugly.h>
#import <UMCommon/UMCommon.h>
#import <UMAnalytics/MobClick.h>
#define UMAPP_Key @"5b83a929b27b0a1b9e000036"
@implementation AppDelegate (ThirdParty) @implementation AppDelegate (ThirdParty)
@@ -39,6 +43,15 @@
//微信 //微信
[WXApi registerApp:WXin_APPID]; [WXApi registerApp:WXin_APPID];
//bugly
[Bugly startWithAppId:nil];
//友盟统计
[UMConfigure setEncryptEnabled:YES];
[UMConfigure setLogEnabled:YES];
[UMConfigure initWithAppkey:UMAPP_Key channel:nil];
// NSString* deviceID = [UMConfigure deviceIDForIntegration];
// NSLog(@"集成测试的deviceID:%@",deviceID);
} }
+1 -16
View File
@@ -28,14 +28,10 @@
//[NSThread sleepForTimeInterval:1];//延迟启动 //[NSThread sleepForTimeInterval:1];//延迟启动
_isMasking = NO; _isMasking = NO;
[[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
[self registLocalNotification]; [self registLocalNotification];
[self configThridPartyWithOptions:launchOptions]; [self configThridPartyWithOptions:launchOptions];
[self configEnvironment]; [self configEnvironment];
[self setupRootVC]; [self setupRootVC];
//广告页 //广告页
[self creatAdView]; [self creatAdView];
@@ -44,23 +40,16 @@
} }
- (void)applicationWillResignActive:(UIApplication *)application { - (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
} }
- (void)applicationDidEnterBackground:(UIApplication *)application { - (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // 当 开启面膜时间 app长期保持后台模式
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
// 当 开启面膜时间 长期保持后台模式
if (_isMasking) { if (_isMasking) {
[self creatBackGoundTask]; [self creatBackGoundTask];
} }
//[self creatBackGoundTask];
} }
@@ -93,8 +82,6 @@
- (void)applicationWillEnterForeground:(UIApplication *)application { - (void)applicationWillEnterForeground:(UIApplication *)application {
application.applicationIconBadgeNumber = 0; application.applicationIconBadgeNumber = 0;
[JPUSHService resetBadge]; [JPUSHService resetBadge];
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
} }
- (void)applicationDidBecomeActive:(UIApplication *)application { - (void)applicationDidBecomeActive:(UIApplication *)application {
@@ -105,7 +92,6 @@
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
//app 挂起 面膜时间未结束 将发送本地通知提醒 //app 挂起 面膜时间未结束 将发送本地通知提醒
if (_isMasking) { if (_isMasking) {
// [[GiGaLocalNotificationManager localNotifiationCenter] sendLocalNotification:@"闹钟提醒!" fireTimeInterval:2 alertAction:@"面膜时间已添加闹钟提醒!" withIdentifier:kLOCALNotifiID_APPTERMINAL]; // [[GiGaLocalNotificationManager localNotifiationCenter] sendLocalNotification:@"闹钟提醒!" fireTimeInterval:2 alertAction:@"面膜时间已添加闹钟提醒!" withIdentifier:kLOCALNotifiID_APPTERMINAL];
@@ -117,7 +103,6 @@
{ {
if (event.type == UIEventTypeRemoteControl ) { if (event.type == UIEventTypeRemoteControl ) {
} }
} }
+15
View File
@@ -0,0 +1,15 @@
//
// MobClickList.h
// GIGA
//
// Created by lianxiang on 2018/8/27.
// Copyright © 2018年 com.giga.ios. All rights reserved.
//
#ifndef MobClickList_h
#define MobClickList_h
//友盟统计埋点事件
#define MobClick_UserLogin @"userlogin"
#define MobClick_MaskTest @"maskTest"
#endif /* MobClickList_h */
+3
View File
@@ -16,6 +16,9 @@
#import "UIView+Toast.h" #import "UIView+Toast.h"
#import "JXTAlertManagerHeader.h" #import "JXTAlertManagerHeader.h"
#import "Masonry.h" #import "Masonry.h"
#import <UMCommon/UMCommon.h>
#import <UMAnalytics/MobClick.h>
#import "MobClickList.h"
#ifdef DEBUG #ifdef DEBUG
#define GILog(fmt,...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) #define GILog(fmt,...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
+2
View File
@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>BuglyAppIDString</key>
<string>8f49773330</string>
<key>LSApplicationQueriesSchemes</key> <key>LSApplicationQueriesSchemes</key>
<array> <array>
<string>weixin</string> <string>weixin</string>
@@ -42,18 +42,15 @@
//链接正常状态文本属性NSTextCheckingTypeLink; //链接正常状态文本属性NSTextCheckingTypeLink;
NSString *text = @"已阅读并同意《用户服务协议》"; NSString *text = @"已阅读并同意《用户服务协议》";
[self.useragreementLabel setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:^NSMutableAttributedString *(NSMutableAttributedString *mutableAttributedString) { [self.useragreementLabel setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:^NSMutableAttributedString *(NSMutableAttributedString *mutableAttributedString) {
NSRange fontRange = [[mutableAttributedString string] rangeOfString:@"用户服务协议" options:NSCaseInsensitiveSearch]; NSRange fontRange = [[mutableAttributedString string] rangeOfString:@"用户服务协议" options:NSCaseInsensitiveSearch];
UIFont* sysFont = [UIFont systemFontOfSize:15]; UIFont* sysFont = [UIFont systemFontOfSize:15];
CTFontRef font = CTFontCreateWithName((__bridge CFStringRef)sysFont.fontName, sysFont.pointSize, NULL); CTFontRef font = CTFontCreateWithName((__bridge CFStringRef)sysFont.fontName, sysFont.pointSize, NULL);
if (font) { if (font) {
[mutableAttributedString addAttribute:(NSString *)kCTFontAttributeName value:(__bridge id)font range:fontRange]; [mutableAttributedString addAttribute:(NSString *)kCTFontAttributeName value:(__bridge id)font range:fontRange];
[mutableAttributedString addAttribute:(NSString *)kCTForegroundColorAttributeName value:(__bridge id)[[UIColor greenColor] CGColor] range:fontRange]; [mutableAttributedString addAttribute:(NSString *)kCTForegroundColorAttributeName value:(__bridge id)[[UIColor greenColor] CGColor] range:fontRange];
} }
return mutableAttributedString; return mutableAttributedString;
}]; }];
@@ -89,14 +86,4 @@
// Dispose of any resources that can be recreated. // Dispose of any resources that can be recreated.
} }
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end @end
@@ -89,10 +89,10 @@
self.weiXinLoginBtn.layer.cornerRadius = self.weiXinLoginBtn.frame.size.height / 2; self.weiXinLoginBtn.layer.cornerRadius = self.weiXinLoginBtn.frame.size.height / 2;
} }
-(void)rightBtnAction{ -(void)rightBtnAction{
[self dismissViewControllerAnimated:YES completion:nil]; [self dismissViewControllerAnimated:YES completion:nil];
} }
-(void)viewWillAppear:(BOOL)animated{ -(void)viewWillAppear:(BOOL)animated{
@@ -111,7 +111,6 @@
PassWordResetVC *passVC= [[PassWordResetVC alloc] init]; PassWordResetVC *passVC= [[PassWordResetVC alloc] init];
[self.navigationController pushViewController:passVC animated:YES]; [self.navigationController pushViewController:passVC animated:YES];
} }
#pragma mark - 去注册 #pragma mark - 去注册
@@ -120,11 +119,12 @@
GiGaRegistViewController *registVC = [[GiGaRegistViewController alloc] init]; GiGaRegistViewController *registVC = [[GiGaRegistViewController alloc] init];
[self.navigationController pushViewController:registVC animated:YES]; [self.navigationController pushViewController:registVC animated:YES];
} }
#pragma mark - 登录 #pragma mark - 登录
-(void)loginBtnAction:(UIButton *)btn{ -(void)loginBtnAction:(UIButton *)btn{
//埋点
[MobClick endEvent:MobClick_UserLogin];
[GiGaUserDefault saveUserId:@"123"]; [GiGaUserDefault saveUserId:@"123"];
[self dismissViewControllerAnimated:YES completion:nil]; [self dismissViewControllerAnimated:YES completion:nil];
} }
@@ -138,7 +138,6 @@
req.scope = @"snsapi_userinfo"; req.scope = @"snsapi_userinfo";
req.state = @"wx_oauth2_authorization_state"; req.state = @"wx_oauth2_authorization_state";
[WXApi sendReq:req]; [WXApi sendReq:req];
} }
} }
@@ -161,7 +160,6 @@
GILog(@"access_token err-->%@",err.localizedDescription); GILog(@"access_token err-->%@",err.localizedDescription);
}]; }];
} }
//获取微信用户信息 //获取微信用户信息
@@ -181,6 +179,7 @@
GILog(@"weixin_userinfoApi err-->%@",err.localizedDescription); GILog(@"weixin_userinfoApi err-->%@",err.localizedDescription);
}]; }];
} }
@end @end
+4
View File
@@ -21,5 +21,9 @@ target 'GIGA' do
pod 'IQKeyboardManager' pod 'IQKeyboardManager'
pod 'TTTAttributedLabel' pod 'TTTAttributedLabel'
pod 'NJKWebViewProgress' pod 'NJKWebViewProgress'
pod 'Bugly'
pod 'UMCCommon'
pod 'UMCAnalytics'
pod 'UMCSecurityPlugins'
end end
+18 -1
View File
@@ -14,6 +14,7 @@ PODS:
- AFNetworking/Serialization (3.2.1) - AFNetworking/Serialization (3.2.1)
- AFNetworking/UIKit (3.2.1): - AFNetworking/UIKit (3.2.1):
- AFNetworking/NSURLSession - AFNetworking/NSURLSession
- Bugly (2.5.0)
- FMDB (2.7.2): - FMDB (2.7.2):
- FMDB/standard (= 2.7.2) - FMDB/standard (= 2.7.2)
- FMDB/standard (2.7.2) - FMDB/standard (2.7.2)
@@ -41,12 +42,17 @@ PODS:
- Toast (4.0.0) - Toast (4.0.0)
- TTTAttributedLabel (2.0.0) - TTTAttributedLabel (2.0.0)
- "UITableView+FDTemplateLayoutCell (1.6)" - "UITableView+FDTemplateLayoutCell (1.6)"
- UMCAnalytics (5.5.0):
- UMCCommon
- UMCCommon (1.5.2)
- UMCSecurityPlugins (1.0.6)
- WechatOpenSDK (1.8.2) - WechatOpenSDK (1.8.2)
- YTKKeyValueStore (0.1.2): - YTKKeyValueStore (0.1.2):
- FMDB (~> 2.0) - FMDB (~> 2.0)
DEPENDENCIES: DEPENDENCIES:
- AFNetworking (~> 3.0) - AFNetworking (~> 3.0)
- Bugly
- FMDB - FMDB
- IQKeyboardManager - IQKeyboardManager
- JPush - JPush
@@ -61,12 +67,16 @@ DEPENDENCIES:
- Toast (~> 4.0.0) - Toast (~> 4.0.0)
- TTTAttributedLabel - TTTAttributedLabel
- "UITableView+FDTemplateLayoutCell" - "UITableView+FDTemplateLayoutCell"
- UMCAnalytics
- UMCCommon
- UMCSecurityPlugins
- WechatOpenSDK - WechatOpenSDK
- YTKKeyValueStore - YTKKeyValueStore
SPEC REPOS: SPEC REPOS:
https://github.com/CocoaPods/Specs.git: https://github.com/CocoaPods/Specs.git:
- AFNetworking - AFNetworking
- Bugly
- FMDB - FMDB
- IQKeyboardManager - IQKeyboardManager
- JCore - JCore
@@ -82,11 +92,15 @@ SPEC REPOS:
- Toast - Toast
- TTTAttributedLabel - TTTAttributedLabel
- "UITableView+FDTemplateLayoutCell" - "UITableView+FDTemplateLayoutCell"
- UMCAnalytics
- UMCCommon
- UMCSecurityPlugins
- WechatOpenSDK - WechatOpenSDK
- YTKKeyValueStore - YTKKeyValueStore
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057 AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057
Bugly: 3ca9f255c01025582df26f9222893b383c7e4b4e
FMDB: 6198a90e7b6900cfc046e6bc0ef6ebb7be9236aa FMDB: 6198a90e7b6900cfc046e6bc0ef6ebb7be9236aa
IQKeyboardManager: 79c57795f5c2408d259d37b9da2ed07efcbb5225 IQKeyboardManager: 79c57795f5c2408d259d37b9da2ed07efcbb5225
JCore: 467b5b56bd367c548f88ee1b5794d94ee07ab319 JCore: 467b5b56bd367c548f88ee1b5794d94ee07ab319
@@ -102,9 +116,12 @@ SPEC CHECKSUMS:
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196 Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
TTTAttributedLabel: 8cffe8e127e4e82ff3af1e5386d4cd0ad000b656 TTTAttributedLabel: 8cffe8e127e4e82ff3af1e5386d4cd0ad000b656
"UITableView+FDTemplateLayoutCell": 5c949b4a5059c404b442926c0e80f81d10a2d66f "UITableView+FDTemplateLayoutCell": 5c949b4a5059c404b442926c0e80f81d10a2d66f
UMCAnalytics: 4667788559a72f2fa5077117d1b8802a3b6eb6bb
UMCCommon: 4392868ac47ff1b101663106bb114ba616fabbad
UMCSecurityPlugins: 0831a08f3988f3cea9f1d3a7626cd9bee4fef150
WechatOpenSDK: 676feec516a11173eafd1fe64b10d27babf28701 WechatOpenSDK: 676feec516a11173eafd1fe64b10d27babf28701
YTKKeyValueStore: 4d002941540dd5108fa23009b71e0f2f937f7a0f YTKKeyValueStore: 4d002941540dd5108fa23009b71e0f2f937f7a0f
PODFILE CHECKSUM: dab9f56b1ec7688e11809754299b1b531ddcca86 PODFILE CHECKSUM: c276e618d4015acab13b2a705a6f1fac52a99dfd
COCOAPODS: 1.5.0 COCOAPODS: 1.5.0
BIN
View File
Binary file not shown.
+144
View File
@@ -0,0 +1,144 @@
//
// Bugly.h
//
// Version: 2.5(0)
//
// Copyright (c) 2017年 Tencent. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "BuglyConfig.h"
#import "BuglyLog.h"
BLY_START_NONNULL
@interface Bugly : NSObject
/**
* Bugly,使BuglyConfig
*
* @param appId Bugly分配的应用唯一标识
*/
+ (void)startWithAppId:(NSString * BLY_NULLABLE)appId;
/**
* 使Bugly
*
* @param appId Bugly分配的应用唯一标识
* @param config BuglyConfig
*/
+ (void)startWithAppId:(NSString * BLY_NULLABLE)appId
config:(BuglyConfig * BLY_NULLABLE)config;
/**
* 使Bugly
*
* @param appId Bugly分配的应用唯一标识
* @param development
* @param config BuglyConfig
*/
+ (void)startWithAppId:(NSString * BLY_NULLABLE)appId
developmentDevice:(BOOL)development
config:(BuglyConfig * BLY_NULLABLE)config;
/**
*
*
* @param userId
*/
+ (void)setUserIdentifier:(NSString *)userId;
/**
*
*
* @param version
*/
+ (void)updateAppVersion:(NSString *)version;
/**
*
*
* @param value KEY
* @param key VALUE
*/
+ (void)setUserValue:(NSString *)value
forKey:(NSString *)key;
/**
*
*
* @return
*/
+ (NSDictionary * BLY_NULLABLE)allUserValues;
/**
*
*
* @param tag ID
*/
+ (void)setTag:(NSUInteger)tag;
/**
*
*
* @return ID
*/
+ (NSUInteger)currentTag;
/**
* ID
*
* @return ID
*/
+ (NSString *)buglyDeviceId;
/**
* Objective-C异常
*
* @param exception
*/
+ (void)reportException:(NSException *)exception;
/**
*
*
* @param error
*/
+ (void)reportError:(NSError *)error;
/**
* @brief
*
* @param category (Cocoa=3,CSharp=4,JS=5,Lua=6)
* @param aName
* @param aReason
* @param aStackArray
* @param info
* @param terminate 退
*/
+ (void)reportExceptionWithCategory:(NSUInteger)category
name:(NSString *)aName
reason:(NSString *)aReason
callStack:(NSArray *)aStackArray
extraInfo:(NSDictionary *)info
terminateApp:(BOOL)terminate;
/**
* SDK
*
* @return SDK版本号
*/
+ (NSString *)sdkVersion;
/**
* App 退
* SDK 5 退 3 退
*
* @return 退
*/
+ (BOOL)isAppCrashedOnStartUpExceedTheLimit;
BLY_END_NONNULL
@end
+126
View File
@@ -0,0 +1,126 @@
//
// BuglyConfig.h
// Bugly
//
// Copyright (c) 2016年 Tencent. All rights reserved.
//
#pragma once
#define BLY_UNAVAILABLE(x) __attribute__((unavailable(x)))
#if __has_feature(nullability)
#define BLY_NONNULL __nonnull
#define BLY_NULLABLE __nullable
#define BLY_START_NONNULL _Pragma("clang assume_nonnull begin")
#define BLY_END_NONNULL _Pragma("clang assume_nonnull end")
#else
#define BLY_NONNULL
#define BLY_NULLABLE
#define BLY_START_NONNULL
#define BLY_END_NONNULL
#endif
#import <Foundation/Foundation.h>
#import "BuglyLog.h"
BLY_START_NONNULL
@protocol BuglyDelegate <NSObject>
@optional
/**
*
*
* @param exception
*
* @return
*/
- (NSString * BLY_NULLABLE)attachmentForException:(NSException * BLY_NULLABLE)exception;
@end
@interface BuglyConfig : NSObject
/**
* SDK Debug信息开关,
*/
@property (nonatomic, assign) BOOL debugMode;
/**
*
*/
@property (nonatomic, copy) NSString *channel;
/**
*
*/
@property (nonatomic, copy) NSString *version;
/**
*
*/
@property (nonatomic, copy) NSString *deviceIdentifier;
/**
*
*/
@property (nonatomic) BOOL blockMonitorEnable;
/**
*
*/
@property (nonatomic) NSTimeInterval blockMonitorTimeout;
/**
* App Groups Id (使 Bugly iOS Extension SDK)
*/
@property (nonatomic, copy) NSString *applicationGroupIdentifier;
/**
*
*/
@property (nonatomic) BOOL symbolicateInProcessEnable;
/**
* 退
*/
@property (nonatomic) BOOL unexpectedTerminatingDetectionEnable;
/**
*
*/
@property (nonatomic) BOOL viewControllerTrackingEnable;
/**
* Bugly Delegate
*/
@property (nonatomic, assign) id<BuglyDelegate> delegate;
/**
* BuglyLogLevelSilent
* BuglyLogLevelWarnWarnError接口打印的日志
*/
@property (nonatomic, assign) BuglyLogLevel reportLogLevel;
/**
*
* SogouInputIPhone.dylib等
*/
@property (nonatomic, copy) NSArray *excludeModuleFilter;
/**
*
*/
@property (nonatomic, assign) BOOL consolelogEnable;
/**
* 退App一直没有退出abort进程退出
* 5s
* 0abort进程退出
*/
@property (nonatomic, assign) NSUInteger crashAbortTimeout;
@end
BLY_END_NONNULL
+78
View File
@@ -0,0 +1,78 @@
//
// BuglyLog.h
// Bugly
//
// Copyright (c) 2017年 Tencent. All rights reserved.
//
#import <Foundation/Foundation.h>
// Log level for Bugly Log
typedef NS_ENUM(NSUInteger, BuglyLogLevel) {
BuglyLogLevelSilent = 0,
BuglyLogLevelError = 1,
BuglyLogLevelWarn = 2,
BuglyLogLevelInfo = 3,
BuglyLogLevelDebug = 4,
BuglyLogLevelVerbose = 5,
};
#pragma mark -
OBJC_EXTERN void BLYLog(BuglyLogLevel level, NSString *format, ...) NS_FORMAT_FUNCTION(2, 3);
OBJC_EXTERN void BLYLogv(BuglyLogLevel level, NSString *format, va_list args) NS_FORMAT_FUNCTION(2, 0);
#pragma mark -
#define BUGLY_LOG_MACRO(_level, fmt, ...) [BuglyLog level:_level tag:nil log:fmt, ##__VA_ARGS__]
#define BLYLogError(fmt, ...) BUGLY_LOG_MACRO(BuglyLogLevelError, fmt, ##__VA_ARGS__)
#define BLYLogWarn(fmt, ...) BUGLY_LOG_MACRO(BuglyLogLevelWarn, fmt, ##__VA_ARGS__)
#define BLYLogInfo(fmt, ...) BUGLY_LOG_MACRO(BuglyLogLevelInfo, fmt, ##__VA_ARGS__)
#define BLYLogDebug(fmt, ...) BUGLY_LOG_MACRO(BuglyLogLevelDebug, fmt, ##__VA_ARGS__)
#define BLYLogVerbose(fmt, ...) BUGLY_LOG_MACRO(BuglyLogLevelVerbose, fmt, ##__VA_ARGS__)
#pragma mark - Interface
@interface BuglyLog : NSObject
/**
* @brief
*
* @param level BLYLogLevelSilent
*
* @param printConsole NO
*/
+ (void)initLogger:(BuglyLogLevel) level consolePrint:(BOOL)printConsole;
/**
* @brief BLYLogLevelInfo日志
*
* @param format 30k200
*/
+ (void)log:(NSString *)format, ... NS_FORMAT_FUNCTION(1, 2);
/**
* @brief
*
* @param level
* @param message 30k200
*/
+ (void)level:(BuglyLogLevel) level logs:(NSString *)message;
/**
* @brief
*
* @param level
* @param format 30k200
*/
+ (void)level:(BuglyLogLevel) level log:(NSString *)format, ... NS_FORMAT_FUNCTION(2, 3);
/**
* @brief
*
* @param level
* @param tag
* @param format 30k200
*/
+ (void)level:(BuglyLogLevel) level tag:(NSString *) tag log:(NSString *)format, ... NS_FORMAT_FUNCTION(3, 4);
@end
+12
View File
@@ -0,0 +1,12 @@
framework module Bugly {
umbrella header "Bugly.h"
export *
module * { export * }
link framework "Foundation"
link framework "Security"
link framework "SystemConfiguration"
link "c++"
link "z"
}
+18 -1
View File
@@ -14,6 +14,7 @@ PODS:
- AFNetworking/Serialization (3.2.1) - AFNetworking/Serialization (3.2.1)
- AFNetworking/UIKit (3.2.1): - AFNetworking/UIKit (3.2.1):
- AFNetworking/NSURLSession - AFNetworking/NSURLSession
- Bugly (2.5.0)
- FMDB (2.7.2): - FMDB (2.7.2):
- FMDB/standard (= 2.7.2) - FMDB/standard (= 2.7.2)
- FMDB/standard (2.7.2) - FMDB/standard (2.7.2)
@@ -41,12 +42,17 @@ PODS:
- Toast (4.0.0) - Toast (4.0.0)
- TTTAttributedLabel (2.0.0) - TTTAttributedLabel (2.0.0)
- "UITableView+FDTemplateLayoutCell (1.6)" - "UITableView+FDTemplateLayoutCell (1.6)"
- UMCAnalytics (5.5.0):
- UMCCommon
- UMCCommon (1.5.2)
- UMCSecurityPlugins (1.0.6)
- WechatOpenSDK (1.8.2) - WechatOpenSDK (1.8.2)
- YTKKeyValueStore (0.1.2): - YTKKeyValueStore (0.1.2):
- FMDB (~> 2.0) - FMDB (~> 2.0)
DEPENDENCIES: DEPENDENCIES:
- AFNetworking (~> 3.0) - AFNetworking (~> 3.0)
- Bugly
- FMDB - FMDB
- IQKeyboardManager - IQKeyboardManager
- JPush - JPush
@@ -61,12 +67,16 @@ DEPENDENCIES:
- Toast (~> 4.0.0) - Toast (~> 4.0.0)
- TTTAttributedLabel - TTTAttributedLabel
- "UITableView+FDTemplateLayoutCell" - "UITableView+FDTemplateLayoutCell"
- UMCAnalytics
- UMCCommon
- UMCSecurityPlugins
- WechatOpenSDK - WechatOpenSDK
- YTKKeyValueStore - YTKKeyValueStore
SPEC REPOS: SPEC REPOS:
https://github.com/CocoaPods/Specs.git: https://github.com/CocoaPods/Specs.git:
- AFNetworking - AFNetworking
- Bugly
- FMDB - FMDB
- IQKeyboardManager - IQKeyboardManager
- JCore - JCore
@@ -82,11 +92,15 @@ SPEC REPOS:
- Toast - Toast
- TTTAttributedLabel - TTTAttributedLabel
- "UITableView+FDTemplateLayoutCell" - "UITableView+FDTemplateLayoutCell"
- UMCAnalytics
- UMCCommon
- UMCSecurityPlugins
- WechatOpenSDK - WechatOpenSDK
- YTKKeyValueStore - YTKKeyValueStore
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057 AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057
Bugly: 3ca9f255c01025582df26f9222893b383c7e4b4e
FMDB: 6198a90e7b6900cfc046e6bc0ef6ebb7be9236aa FMDB: 6198a90e7b6900cfc046e6bc0ef6ebb7be9236aa
IQKeyboardManager: 79c57795f5c2408d259d37b9da2ed07efcbb5225 IQKeyboardManager: 79c57795f5c2408d259d37b9da2ed07efcbb5225
JCore: 467b5b56bd367c548f88ee1b5794d94ee07ab319 JCore: 467b5b56bd367c548f88ee1b5794d94ee07ab319
@@ -102,9 +116,12 @@ SPEC CHECKSUMS:
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196 Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
TTTAttributedLabel: 8cffe8e127e4e82ff3af1e5386d4cd0ad000b656 TTTAttributedLabel: 8cffe8e127e4e82ff3af1e5386d4cd0ad000b656
"UITableView+FDTemplateLayoutCell": 5c949b4a5059c404b442926c0e80f81d10a2d66f "UITableView+FDTemplateLayoutCell": 5c949b4a5059c404b442926c0e80f81d10a2d66f
UMCAnalytics: 4667788559a72f2fa5077117d1b8802a3b6eb6bb
UMCCommon: 4392868ac47ff1b101663106bb114ba616fabbad
UMCSecurityPlugins: 0831a08f3988f3cea9f1d3a7626cd9bee4fef150
WechatOpenSDK: 676feec516a11173eafd1fe64b10d27babf28701 WechatOpenSDK: 676feec516a11173eafd1fe64b10d27babf28701
YTKKeyValueStore: 4d002941540dd5108fa23009b71e0f2f937f7a0f YTKKeyValueStore: 4d002941540dd5108fa23009b71e0f2f937f7a0f
PODFILE CHECKSUM: dab9f56b1ec7688e11809754299b1b531ddcca86 PODFILE CHECKSUM: c276e618d4015acab13b2a705a6f1fac52a99dfd
COCOAPODS: 1.5.0 COCOAPODS: 1.5.0
+1347 -1269
View File
File diff suppressed because it is too large Load Diff
@@ -24,6 +24,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
## Bugly
Copyright (C) 2017 Tencent Bugly, Inc. All rights reserved.
## FMDB ## FMDB
If you are using FMDB in your project, I'd love to hear about it. Let Gus know If you are using FMDB in your project, I'd love to hear about it. Let Gus know
@@ -339,6 +344,21 @@ SOFTWARE.
## UMCAnalytics
Copyright 2011 - 2018 umeng.com. All rights reserved.
## UMCCommon
Copyright 2011 - 2018 umeng.com. All rights reserved.
## UMCSecurityPlugins
Copyright 2011 - 2018 umeng.com. All rights reserved.
## WechatOpenSDK ## WechatOpenSDK
Copyright 2018 tencent.com. All rights reserved. Copyright 2018 tencent.com. All rights reserved.
@@ -41,6 +41,17 @@ THE SOFTWARE.
<key>Type</key> <key>Type</key>
<string>PSGroupSpecifier</string> <string>PSGroupSpecifier</string>
</dict> </dict>
<dict>
<key>FooterText</key>
<string>Copyright (C) 2017 Tencent Bugly, Inc. All rights reserved.
</string>
<key>License</key>
<string>Copyright</string>
<key>Title</key>
<string>Bugly</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict> <dict>
<key>FooterText</key> <key>FooterText</key>
<string>If you are using FMDB in your project, I'd love to hear about it. Let Gus know <string>If you are using FMDB in your project, I'd love to hear about it. Let Gus know
@@ -446,6 +457,39 @@ SOFTWARE.
<key>Type</key> <key>Type</key>
<string>PSGroupSpecifier</string> <string>PSGroupSpecifier</string>
</dict> </dict>
<dict>
<key>FooterText</key>
<string>Copyright 2011 - 2018 umeng.com. All rights reserved.
</string>
<key>License</key>
<string>Copyright</string>
<key>Title</key>
<string>UMCAnalytics</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>Copyright 2011 - 2018 umeng.com. All rights reserved.
</string>
<key>License</key>
<string>Copyright</string>
<key>Title</key>
<string>UMCCommon</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>Copyright 2011 - 2018 umeng.com. All rights reserved.
</string>
<key>License</key>
<string>Copyright</string>
<key>Title</key>
<string>UMCSecurityPlugins</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict> <dict>
<key>FooterText</key> <key>FooterText</key>
<string>Copyright 2018 tencent.com. All rights reserved. <string>Copyright 2018 tencent.com. All rights reserved.
@@ -1,10 +1,10 @@
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking" "${PODS_CONFIGURATION_BUILD_DIR}/FMDB" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManager" "${PODS_CONFIGURATION_BUILD_DIR}/JSONModel" "${PODS_CONFIGURATION_BUILD_DIR}/LKDBHelper" "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" "${PODS_CONFIGURATION_BUILD_DIR}/NJKWebViewProgress" "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage" "${PODS_CONFIGURATION_BUILD_DIR}/SocketRocket" "${PODS_CONFIGURATION_BUILD_DIR}/TTTAttributedLabel" "${PODS_CONFIGURATION_BUILD_DIR}/Toast" "${PODS_CONFIGURATION_BUILD_DIR}/UITableView+FDTemplateLayoutCell" "${PODS_CONFIGURATION_BUILD_DIR}/YTKKeyValueStore" FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking" "${PODS_CONFIGURATION_BUILD_DIR}/FMDB" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManager" "${PODS_CONFIGURATION_BUILD_DIR}/JSONModel" "${PODS_CONFIGURATION_BUILD_DIR}/LKDBHelper" "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" "${PODS_CONFIGURATION_BUILD_DIR}/NJKWebViewProgress" "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage" "${PODS_CONFIGURATION_BUILD_DIR}/SocketRocket" "${PODS_CONFIGURATION_BUILD_DIR}/TTTAttributedLabel" "${PODS_CONFIGURATION_BUILD_DIR}/Toast" "${PODS_CONFIGURATION_BUILD_DIR}/UITableView+FDTemplateLayoutCell" "${PODS_CONFIGURATION_BUILD_DIR}/YTKKeyValueStore" "${PODS_ROOT}/Bugly" "${PODS_ROOT}/UMCAnalytics" "${PODS_ROOT}/UMCCommon" "${PODS_ROOT}/UMCSecurityPlugins/thirdparties"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/WechatOpenSDK" HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/WechatOpenSDK"
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/WechatOpenSDK/WechatSDK1.8.2" LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/WechatOpenSDK/WechatSDK1.8.2"
OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking/AFNetworking.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FMDB/FMDB.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManager/IQKeyboardManager.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/JSONModel/JSONModel.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/LKDBHelper/LKDBHelper.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/NJKWebViewProgress/NJKWebViewProgress.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SocketRocket/SocketRocket.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/TTTAttributedLabel/TTTAttributedLabel.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Toast/Toast.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/UITableView+FDTemplateLayoutCell/UITableView_FDTemplateLayoutCell.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/YTKKeyValueStore/YTKKeyValueStore.framework/Headers" -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/JPush" -isystem "${PODS_ROOT}/Headers/Public/WechatOpenSDK" OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking/AFNetworking.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FMDB/FMDB.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManager/IQKeyboardManager.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/JSONModel/JSONModel.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/LKDBHelper/LKDBHelper.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/NJKWebViewProgress/NJKWebViewProgress.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SocketRocket/SocketRocket.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/TTTAttributedLabel/TTTAttributedLabel.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Toast/Toast.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/UITableView+FDTemplateLayoutCell/UITableView_FDTemplateLayoutCell.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/YTKKeyValueStore/YTKKeyValueStore.framework/Headers" -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/JPush" -isystem "${PODS_ROOT}/Headers/Public/WechatOpenSDK"
OTHER_LDFLAGS = $(inherited) -ObjC -l"WeChatSDK" -l"c++" -l"jcore-ios-1.2.2" -l"jpush-ios-3.1.0" -l"resolv" -l"sqlite3.0" -l"z" -framework "AFNetworking" -framework "CFNetwork" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreTelephony" -framework "FMDB" -framework "Foundation" -framework "IQKeyboardManager" -framework "JSONModel" -framework "LKDBHelper" -framework "MBProgressHUD" -framework "MJRefresh" -framework "Masonry" -framework "NJKWebViewProgress" -framework "SDWebImage" -framework "Security" -framework "SocketRocket" -framework "SystemConfiguration" -framework "TTTAttributedLabel" -framework "Toast" -framework "UIKit" -framework "UITableView_FDTemplateLayoutCell" -framework "YTKKeyValueStore" -weak_framework "UserNotifications" OTHER_LDFLAGS = $(inherited) -ObjC -l"WeChatSDK" -l"c++" -l"jcore-ios-1.2.2" -l"jpush-ios-3.1.0" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "AFNetworking" -framework "Bugly" -framework "CFNetwork" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreTelephony" -framework "FMDB" -framework "Foundation" -framework "IQKeyboardManager" -framework "JSONModel" -framework "LKDBHelper" -framework "MBProgressHUD" -framework "MJRefresh" -framework "Masonry" -framework "NJKWebViewProgress" -framework "SDWebImage" -framework "Security" -framework "SecurityEnvSDK" -framework "SocketRocket" -framework "SystemConfiguration" -framework "TTTAttributedLabel" -framework "Toast" -framework "UIKit" -framework "UITableView_FDTemplateLayoutCell" -framework "UMAnalytics" -framework "UMCommon" -framework "UTDID" -framework "YTKKeyValueStore" -weak_framework "UserNotifications"
PODS_BUILD_DIR = ${BUILD_DIR} PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
@@ -1,10 +1,10 @@
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking" "${PODS_CONFIGURATION_BUILD_DIR}/FMDB" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManager" "${PODS_CONFIGURATION_BUILD_DIR}/JSONModel" "${PODS_CONFIGURATION_BUILD_DIR}/LKDBHelper" "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" "${PODS_CONFIGURATION_BUILD_DIR}/NJKWebViewProgress" "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage" "${PODS_CONFIGURATION_BUILD_DIR}/SocketRocket" "${PODS_CONFIGURATION_BUILD_DIR}/TTTAttributedLabel" "${PODS_CONFIGURATION_BUILD_DIR}/Toast" "${PODS_CONFIGURATION_BUILD_DIR}/UITableView+FDTemplateLayoutCell" "${PODS_CONFIGURATION_BUILD_DIR}/YTKKeyValueStore" FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking" "${PODS_CONFIGURATION_BUILD_DIR}/FMDB" "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManager" "${PODS_CONFIGURATION_BUILD_DIR}/JSONModel" "${PODS_CONFIGURATION_BUILD_DIR}/LKDBHelper" "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" "${PODS_CONFIGURATION_BUILD_DIR}/NJKWebViewProgress" "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage" "${PODS_CONFIGURATION_BUILD_DIR}/SocketRocket" "${PODS_CONFIGURATION_BUILD_DIR}/TTTAttributedLabel" "${PODS_CONFIGURATION_BUILD_DIR}/Toast" "${PODS_CONFIGURATION_BUILD_DIR}/UITableView+FDTemplateLayoutCell" "${PODS_CONFIGURATION_BUILD_DIR}/YTKKeyValueStore" "${PODS_ROOT}/Bugly" "${PODS_ROOT}/UMCAnalytics" "${PODS_ROOT}/UMCCommon" "${PODS_ROOT}/UMCSecurityPlugins/thirdparties"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/WechatOpenSDK" HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/WechatOpenSDK"
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/WechatOpenSDK/WechatSDK1.8.2" LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/JCore" "${PODS_ROOT}/JPush" "${PODS_ROOT}/WechatOpenSDK/WechatSDK1.8.2"
OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking/AFNetworking.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FMDB/FMDB.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManager/IQKeyboardManager.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/JSONModel/JSONModel.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/LKDBHelper/LKDBHelper.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/NJKWebViewProgress/NJKWebViewProgress.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SocketRocket/SocketRocket.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/TTTAttributedLabel/TTTAttributedLabel.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Toast/Toast.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/UITableView+FDTemplateLayoutCell/UITableView_FDTemplateLayoutCell.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/YTKKeyValueStore/YTKKeyValueStore.framework/Headers" -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/JPush" -isystem "${PODS_ROOT}/Headers/Public/WechatOpenSDK" OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking/AFNetworking.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/FMDB/FMDB.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/IQKeyboardManager/IQKeyboardManager.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/JSONModel/JSONModel.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/LKDBHelper/LKDBHelper.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/NJKWebViewProgress/NJKWebViewProgress.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SocketRocket/SocketRocket.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/TTTAttributedLabel/TTTAttributedLabel.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Toast/Toast.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/UITableView+FDTemplateLayoutCell/UITableView_FDTemplateLayoutCell.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/YTKKeyValueStore/YTKKeyValueStore.framework/Headers" -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/JPush" -isystem "${PODS_ROOT}/Headers/Public/WechatOpenSDK"
OTHER_LDFLAGS = $(inherited) -ObjC -l"WeChatSDK" -l"c++" -l"jcore-ios-1.2.2" -l"jpush-ios-3.1.0" -l"resolv" -l"sqlite3.0" -l"z" -framework "AFNetworking" -framework "CFNetwork" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreTelephony" -framework "FMDB" -framework "Foundation" -framework "IQKeyboardManager" -framework "JSONModel" -framework "LKDBHelper" -framework "MBProgressHUD" -framework "MJRefresh" -framework "Masonry" -framework "NJKWebViewProgress" -framework "SDWebImage" -framework "Security" -framework "SocketRocket" -framework "SystemConfiguration" -framework "TTTAttributedLabel" -framework "Toast" -framework "UIKit" -framework "UITableView_FDTemplateLayoutCell" -framework "YTKKeyValueStore" -weak_framework "UserNotifications" OTHER_LDFLAGS = $(inherited) -ObjC -l"WeChatSDK" -l"c++" -l"jcore-ios-1.2.2" -l"jpush-ios-3.1.0" -l"resolv" -l"sqlite3" -l"sqlite3.0" -l"z" -framework "AFNetworking" -framework "Bugly" -framework "CFNetwork" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreTelephony" -framework "FMDB" -framework "Foundation" -framework "IQKeyboardManager" -framework "JSONModel" -framework "LKDBHelper" -framework "MBProgressHUD" -framework "MJRefresh" -framework "Masonry" -framework "NJKWebViewProgress" -framework "SDWebImage" -framework "Security" -framework "SecurityEnvSDK" -framework "SocketRocket" -framework "SystemConfiguration" -framework "TTTAttributedLabel" -framework "Toast" -framework "UIKit" -framework "UITableView_FDTemplateLayoutCell" -framework "UMAnalytics" -framework "UMCommon" -framework "UTDID" -framework "YTKKeyValueStore" -weak_framework "UserNotifications"
PODS_BUILD_DIR = ${BUILD_DIR} PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
@@ -0,0 +1 @@
5.5.0
+1
View File
@@ -0,0 +1 @@
Versions/Current/Headers
+1
View File
@@ -0,0 +1 @@
Versions/Current/UMAnalytics
@@ -0,0 +1,77 @@
//
// DplusMobClick.h
// Analytics
//
// Copyright (C) 2010-2016 Umeng.com . All rights reserved.
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface DplusMobClick : NSObject
/** Dplus增加事件
@param eventName
@param property
*/
+(void) track:(NSString *)eventName;
+(void) track:(NSString *)eventName property:(NSDictionary *) property;
/**
* key
* key-value写入dplus专用文件APP启动时会自动读取该文件的所有key-valuekey-value自动作为后续所有track事件的属性
*/
+(void) registerSuperProperty:(NSDictionary *)property;
/**
*
* dplus专用文件中删除指定key-value
@param key
*/
+(void) unregisterSuperProperty:(NSString *)propertyName;
/**
*
* dplus专用文件中key对应的value
@param key
@return void
*/
+(NSString *)getSuperProperty:(NSString *)propertyName;
/**
* Dplus专用文件中的所有key-value
*/
+(NSDictionary *)getSuperProperties;
/**
*Dplus专用文件中的所有key-value
*/
+(void)clearSuperProperties;
/**
* key
*/
+(void) registerPreProperties:(NSDictionary *)property;
/**
*
*
@param key
*/
+(void) unregisterPreProperty:(NSString *)propertyName;
/**
*
*/
+(NSDictionary *)getPreProperties;
/**
*
*/
+(void)clearPreProperties;
/**
* ,eventList前五个合法eventID.,
*/
+(void)setFirstLaunchEvent:(NSArray *)eventList;
@end
@@ -0,0 +1,214 @@
//
// MobClick.h
// Analytics
//
// Copyright (C) 2010-2017 Umeng.com . All rights reserved.
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
typedef void(^CallbackBlock)();
/**
使APIE_UM_GAME
*/
typedef NS_ENUM (NSUInteger, eScenarioType)
{
E_UM_NORMAL = 0, // default value
E_UM_GAME = 1, // game
E_UM_DPLUS = 4 // DPlus
};
@class CLLocation;
@interface MobClick : NSObject <UIAlertViewDelegate>
#pragma mark basics
///---------------------------------------------------------------------------------------
/// @name 设置
///---------------------------------------------------------------------------------------
/** 设置 统计场景类型,默认为普通应用统计:E_UM_NORMAL
@param E_UM_GAME.
@return void.
*/
+ (void)setScenarioType:(eScenarioType)eSType;
/** 开启CrashReport收集, 默认YES(开启状态).
@param value NO,CrashReport收集功能.
@return void.
*/
+ (void)setCrashReportEnabled:(BOOL)value;
#pragma mark event logs
///---------------------------------------------------------------------------------------
/// @name 页面计时
///---------------------------------------------------------------------------------------
/** 手动页面时长统计, 记录某个页面展示的时长.
@param pageName .
@param seconds int型.
@return void.
*/
+ (void)logPageView:(NSString *)pageName seconds:(int)seconds;
/** 自动页面时长统计, 开始记录某个页面展示时长.
使beginLogPageView:endLogPageView:
beginLogPageView:退endLogPageView:
@param pageName .
@return void.
*/
+ (void)beginLogPageView:(NSString *)pageName;
/** 自动页面时长统计, 结束记录某个页面展示时长.
使beginLogPageView:endLogPageView:
beginLogPageView:退endLogPageView:
@param pageName .
@return void.
*/
+ (void)endLogPageView:(NSString *)pageName;
///---------------------------------------------------------------------------------------
/// @name 事件统计
///---------------------------------------------------------------------------------------
/** 自定义事件,数量统计.
使App管理后台的设置-> IDID
@param eventId Id.
@param label 便,nil或空字符串时后台会生成和eventId同名的标签.
@param accumulation ID的某一分类标签进行累加
@return void.
*/
+ (void)event:(NSString *)eventId; //等同于 event:eventId label:eventId;
/** 自定义事件,数量统计.
使App管理后台的设置-> IDID
*/
+ (void)event:(NSString *)eventId label:(NSString *)label; // label为nil或@""时,等同于 event:eventId label:eventId;
/** 自定义事件,数量统计.
使App管理后台的设置-> IDID
*/
+ (void)event:(NSString *)eventId attributes:(NSDictionary *)attributes;
+ (void)event:(NSString *)eventId attributes:(NSDictionary *)attributes counter:(int)number;
/** 自定义事件,时长统计.
使App管理后台的设置-> IDID.
beginEvent,endEvent要配对使用,durations参数传递进来
@param eventId Id.
@param label 便,nil或空字符串时后台会生成和eventId同名的标签.
@param primarykey event_id一起标示一个唯一事件beginEvent和endEvent eventId primarykey
@param millisecond
@return void.
@warning event的attributes不能超过10个
eventIdattributes中key和value都不能使用空格和特殊字符NSString,255255
id ts du是保留字段eventId及key的名称
*/
+ (void)beginEvent:(NSString *)eventId;
/** 自定义事件,时长统计.
使App管理后台的设置-> IDID.
*/
+ (void)endEvent:(NSString *)eventId;
/** 自定义事件,时长统计.
使App管理后台的设置-> IDID.
*/
+ (void)beginEvent:(NSString *)eventId label:(NSString *)label;
/** 自定义事件,时长统计.
使App管理后台的设置-> IDID.
*/
+ (void)endEvent:(NSString *)eventId label:(NSString *)label;
/** 自定义事件,时长统计.
使App管理后台的设置-> IDID.
*/
+ (void)beginEvent:(NSString *)eventId primarykey :(NSString *)keyName attributes:(NSDictionary *)attributes;
/** 自定义事件,时长统计.
使App管理后台的设置-> IDID.
*/
+ (void)endEvent:(NSString *)eventId primarykey:(NSString *)keyName;
/** 自定义事件,时长统计.
使App管理后台的设置-> IDID.
*/
+ (void)event:(NSString *)eventId durations:(int)millisecond;
/** 自定义事件,时长统计.
使App管理后台的设置-> IDID.
*/
+ (void)event:(NSString *)eventId label:(NSString *)label durations:(int)millisecond;
/** 自定义事件,时长统计.
使App管理后台的设置-> IDID.
*/
+ (void)event:(NSString *)eventId attributes:(NSDictionary *)attributes durations:(int)millisecond;
#pragma mark - user methods
/** active user sign-in.
使sign-In函数后PUID的统计sign-Off函数
@param puid : user's ID
@param provider : 线"_"使; 使
@return void.
*/
+ (void)profileSignInWithPUID:(NSString *)puid;
+ (void)profileSignInWithPUID:(NSString *)puid provider:(NSString *)provider;
/** active user sign-off.
sign-in PUID的统计
@return void.
*/
+ (void)profileSignOff;
///---------------------------------------------------------------------------------------
/// @name 地理位置设置
/// 需要链接 CoreLocation.framework 并且 #import <CoreLocation/CoreLocation.h>
///---------------------------------------------------------------------------------------
/** 设置经纬度信息
@param latitude .
@param longitude .
@return void
*/
+ (void)setLatitude:(double)latitude longitude:(double)longitude;
/** 设置经纬度信息
@param location CLLocation
@return void
*/
+ (void)setLocation:(CLLocation *)location;
///---------------------------------------------------------------------------------------
/// @name Utility函数
///---------------------------------------------------------------------------------------
/** 判断设备是否越狱,依据是否存在apt和Cydia.app
*/
+ (BOOL)isJailbroken;
/** 判断App是否被破解
*/
+ (BOOL)isPirated;
/** 设置 app secret
@param secret string
@return void.
*/
+ (void)setSecret:(NSString *)secret;
+ (void)setCrashCBBlock:(CallbackBlock)cbBlock;
/** DeepLink事件
@param link link
@return void.
*/
+ (void)onDeepLinkReceived:(NSURL *)link;
@end
@@ -0,0 +1,184 @@
//
// MobClickGameAnalytics.h
// Analytics
//
// Copyright (C) 2010-2014 Umeng.com . All rights reserved.
@interface MobClickGameAnalytics : NSObject
#pragma mark - account function
/** active user sign-in.
使sign-In函数后PUID的统计sign-Off函数
@param puid : user's ID
@param provider : 线"_"使; 使
@return void.
*/
+ (void)profileSignInWithPUID:(NSString *)puid;
+ (void)profileSignInWithPUID:(NSString *)puid provider:(NSString *)provider;
/** active user sign-off.
sign-in PUID的统计
@return void.
*/
+ (void)profileSignOff;
#pragma mark GameLevel methods
///---------------------------------------------------------------------------------------
/// @name set game level
///---------------------------------------------------------------------------------------
/** 设置玩家的等级.
*/
/** 设置玩家等级属性.
@param level
@return void
*/
+ (void)setUserLevelId:(int)level;
///---------------------------------------------------------------------------------------
/// @name 关卡统计
///---------------------------------------------------------------------------------------
/** 记录玩家进入关卡,通过关卡及失败的情况.
*/
/** 进入关卡.
@param level
@return void
*/
+ (void)startLevel:(NSString *)level;
/** 通过关卡.
@param level ,level == nil
@return void
*/
+ (void)finishLevel:(NSString *)level;
/** 未通过关卡.
@param level ,level == nil
@return void
*/
+ (void)failLevel:(NSString *)level;
#pragma mark -
#pragma mark Pay methods
///---------------------------------------------------------------------------------------
/// @name 支付统计
///---------------------------------------------------------------------------------------
/** 记录玩家交易兑换货币的情况
@param currencyAmount
@param currencyType ISO4217定义的3位字母代码CNY,USD等使使ISO4217中未定义的3位字母组合传入货币类型
@param virtualAmount
@param channel
@param orderId ID
@return void
*/
+ (void)exchange:(NSString *)orderId currencyAmount:(double)currencyAmount currencyType:(NSString *)currencyType virtualCurrencyAmount:(double)virtualAmount paychannel:(int)channel;
/** 玩家支付货币兑换虚拟币.
@param cash
@param source
@param coin
@return void
*/
+ (void)pay:(double)cash source:(int)source coin:(double)coin;
/** 玩家支付货币购买道具.
@param cash
@param source
@param item
@param amount
@param price
@return void
*/
+ (void)pay:(double)cash source:(int)source item:(NSString *)item amount:(int)amount price:(double)price;
#pragma mark -
#pragma mark Buy methods
///---------------------------------------------------------------------------------------
/// @name 虚拟币购买统计
///---------------------------------------------------------------------------------------
/** 记录玩家使用虚拟币的消费情况
*/
/** 玩家使用虚拟币购买道具
@param item
@param amount
@param price
@return void
*/
+ (void)buy:(NSString *)item amount:(int)amount price:(double)price;
#pragma mark -
#pragma mark Use methods
///---------------------------------------------------------------------------------------
/// @name 道具消耗统计
///---------------------------------------------------------------------------------------
/** 记录玩家道具消费情况
*/
/** 玩家使用虚拟币购买道具
@param item
@param amount
@param price
@return void
*/
+ (void)use:(NSString *)item amount:(int)amount price:(double)price;
#pragma mark -
#pragma mark Bonus methods
///---------------------------------------------------------------------------------------
/// @name 虚拟币及道具奖励统计
///---------------------------------------------------------------------------------------
/** 记录玩家获赠虚拟币及道具的情况
*/
/** 玩家获虚拟币奖励
@param coin
@param source
@return void
*/
+ (void)bonus:(double)coin source:(int)source;
/** 玩家获道具奖励
@param item
@param amount
@param price
@param source
@return void
*/
+ (void)bonus:(NSString *)item amount:(int)amount price:(double)price source:(int)source;
#pragma mark DEPRECATED
//已经被新的setUserLevelId:方法替代,请使用新的API。
+ (void)setUserLevel:(NSString *)level;
//已经被新的active user方法替代,请使用新的API。
+ (void)setUserID:(NSString *)userId sex:(int)sex age:(int)age platform:(NSString *)platform;
@end
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
A
@@ -0,0 +1 @@
1.5.2
+1
View File
@@ -0,0 +1 @@
Versions/Current/Headers
+1
View File
@@ -0,0 +1 @@
Versions/Current/UMCommon
@@ -0,0 +1,19 @@
//
// UMCommon.h
// UMCommon
//
// Created by San Zhang on 11/2/16.
// Copyright © 2016 UMeng. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for UMCommon.
FOUNDATION_EXPORT double UMCommonVersionNumber;
//! Project version string for UMCommon.
FOUNDATION_EXPORT const unsigned char UMCommonVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <UMCommon/PublicHeader.h>
#import <UMCommon/UMConfigure.h>
@@ -0,0 +1,38 @@
//
// UMConfigure.h
// UMCommon
//
// Created by San Zhang on 9/6/16.
// Copyright © 2016 UMeng. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface UMConfigure : NSObject
/** 初始化友盟所有组件产品
@param appKey appkey.
@param channel nil表示"App Store".
*/
+ (void)initWithAppkey:(NSString *)appKey channel:(NSString *)channel;
/** 设置是否在console输出sdk的log信息.
@param bFlag NO(log); YES, log信息. NO.
*/
+ (void)setLogEnabled:(BOOL)bFlag;
/** 设置是否对日志信息进行加密, 默认NO(不加密).
@param value YES, umeng SDK
*/
+ (void)setEncryptEnabled:(BOOL)value;
+ (NSString *)umidString;
/**
device_id
*/
+ (NSString*)deviceIDForIntegration;
@end
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
A
@@ -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 :AIDAID
*
* :aidAsync任意时刻都可以调用.
*
* @return AID.
*/
+(void) aidAsync:(NSString *)appName
token:(NSString *)token
aidDelegate:(id<AidProtocolDelegate>)aidDelegate;
@end
#endif
@@ -0,0 +1 @@
A