add 友盟统计
This commit is contained in:
@@ -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>"; };
|
||||
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>"; };
|
||||
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>"; };
|
||||
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>"; };
|
||||
@@ -488,6 +489,7 @@
|
||||
8361B40021215CD800238FEB /* GIGA.h */,
|
||||
8361B42C2121812000238FEB /* GiGaServerConfig.h */,
|
||||
8361B42D2121812000238FEB /* GiGaServerConfig.m */,
|
||||
8314D2122133F44600B458BF /* MobClickList.h */,
|
||||
);
|
||||
path = Config;
|
||||
sourceTree = "<group>";
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
#import "AppDelegate.h"
|
||||
#import <UserNotifications/UserNotifications.h>
|
||||
@interface AppDelegate (GiGaConfig)<UNUserNotificationCenterDelegate>
|
||||
|
||||
@interface AppDelegate (GiGaConfig)<UNUserNotificationCenterDelegate>
|
||||
|
||||
/**
|
||||
v1.0 后使用
|
||||
|
||||
@@ -70,16 +70,12 @@
|
||||
item2.image = [[UIImage imageNamed:@""] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
-(void)configEnvironment{
|
||||
|
||||
[GiGaServerConfig setServerType:GIGA_ENVIRONMENT];
|
||||
|
||||
}
|
||||
|
||||
|
||||
- (void)setupRootVC{
|
||||
|
||||
GiGaMaskTaskViewController *maskeVC = [[GiGaMaskTaskViewController alloc] init];
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
#import "AppDelegate+ThirdParty.h"
|
||||
#define PUSH_APPKEY @"1f8122badd24c2adb8b3f231"
|
||||
#import "WXApi.h"
|
||||
#import <Bugly/Bugly.h>
|
||||
#import <UMCommon/UMCommon.h>
|
||||
#import <UMAnalytics/MobClick.h>
|
||||
#define UMAPP_Key @"5b83a929b27b0a1b9e000036"
|
||||
|
||||
@implementation AppDelegate (ThirdParty)
|
||||
|
||||
@@ -39,6 +43,15 @@
|
||||
|
||||
//微信
|
||||
[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
@@ -28,14 +28,10 @@
|
||||
//[NSThread sleepForTimeInterval:1];//延迟启动
|
||||
|
||||
_isMasking = NO;
|
||||
|
||||
[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
|
||||
[self registLocalNotification];
|
||||
|
||||
[self configThridPartyWithOptions:launchOptions];
|
||||
|
||||
[self configEnvironment];
|
||||
|
||||
[self setupRootVC];
|
||||
//广告页
|
||||
[self creatAdView];
|
||||
@@ -44,23 +40,16 @@
|
||||
}
|
||||
|
||||
- (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 {
|
||||
|
||||
// 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.
|
||||
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
||||
|
||||
|
||||
// 当 开启面膜时间 长期保持后台模式
|
||||
// 当 开启面膜时间 app长期保持后台模式
|
||||
if (_isMasking) {
|
||||
[self creatBackGoundTask];
|
||||
}
|
||||
//[self creatBackGoundTask];
|
||||
|
||||
}
|
||||
|
||||
@@ -93,8 +82,6 @@
|
||||
- (void)applicationWillEnterForeground:(UIApplication *)application {
|
||||
application.applicationIconBadgeNumber = 0;
|
||||
[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 {
|
||||
@@ -105,7 +92,6 @@
|
||||
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
||||
|
||||
//app 挂起 面膜时间未结束 将发送本地通知提醒
|
||||
|
||||
if (_isMasking) {
|
||||
|
||||
// [[GiGaLocalNotificationManager localNotifiationCenter] sendLocalNotification:@"闹钟提醒!" fireTimeInterval:2 alertAction:@"面膜时间已添加闹钟提醒!" withIdentifier:kLOCALNotifiID_APPTERMINAL];
|
||||
@@ -117,7 +103,6 @@
|
||||
{
|
||||
if (event.type == UIEventTypeRemoteControl ) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 */
|
||||
@@ -16,6 +16,9 @@
|
||||
#import "UIView+Toast.h"
|
||||
#import "JXTAlertManagerHeader.h"
|
||||
#import "Masonry.h"
|
||||
#import <UMCommon/UMCommon.h>
|
||||
#import <UMAnalytics/MobClick.h>
|
||||
#import "MobClickList.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#define GILog(fmt,...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
|
||||
|
||||
@@ -2,6 +2,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>BuglyAppIDString</key>
|
||||
<string>8f49773330</string>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
<array>
|
||||
<string>weixin</string>
|
||||
|
||||
@@ -42,18 +42,15 @@
|
||||
//链接正常状态文本属性NSTextCheckingTypeLink;
|
||||
NSString *text = @"已阅读并同意《用户服务协议》";
|
||||
[self.useragreementLabel setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:^NSMutableAttributedString *(NSMutableAttributedString *mutableAttributedString) {
|
||||
|
||||
NSRange fontRange = [[mutableAttributedString string] rangeOfString:@"用户服务协议" options:NSCaseInsensitiveSearch];
|
||||
UIFont* sysFont = [UIFont systemFontOfSize:15];
|
||||
CTFontRef font = CTFontCreateWithName((__bridge CFStringRef)sysFont.fontName, sysFont.pointSize, NULL);
|
||||
|
||||
if (font) {
|
||||
|
||||
[mutableAttributedString addAttribute:(NSString *)kCTFontAttributeName value:(__bridge id)font range:fontRange];
|
||||
|
||||
[mutableAttributedString addAttribute:(NSString *)kCTForegroundColorAttributeName value:(__bridge id)[[UIColor greenColor] CGColor] range:fontRange];
|
||||
}
|
||||
|
||||
return mutableAttributedString;
|
||||
|
||||
}];
|
||||
@@ -89,14 +86,4 @@
|
||||
// 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
|
||||
|
||||
@@ -89,10 +89,10 @@
|
||||
self.weiXinLoginBtn.layer.cornerRadius = self.weiXinLoginBtn.frame.size.height / 2;
|
||||
|
||||
}
|
||||
|
||||
-(void)rightBtnAction{
|
||||
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
}
|
||||
|
||||
-(void)viewWillAppear:(BOOL)animated{
|
||||
@@ -111,7 +111,6 @@
|
||||
PassWordResetVC *passVC= [[PassWordResetVC alloc] init];
|
||||
[self.navigationController pushViewController:passVC animated:YES];
|
||||
|
||||
|
||||
}
|
||||
|
||||
#pragma mark - 去注册
|
||||
@@ -120,11 +119,12 @@
|
||||
GiGaRegistViewController *registVC = [[GiGaRegistViewController alloc] init];
|
||||
[self.navigationController pushViewController:registVC animated:YES];
|
||||
|
||||
|
||||
}
|
||||
|
||||
#pragma mark - 登录
|
||||
-(void)loginBtnAction:(UIButton *)btn{
|
||||
//埋点
|
||||
[MobClick endEvent:MobClick_UserLogin];
|
||||
[GiGaUserDefault saveUserId:@"123"];
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
@@ -138,7 +138,6 @@
|
||||
req.scope = @"snsapi_userinfo";
|
||||
req.state = @"wx_oauth2_authorization_state";
|
||||
[WXApi sendReq:req];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,7 +160,6 @@
|
||||
GILog(@"access_token err-->%@",err.localizedDescription);
|
||||
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
//获取微信用户信息
|
||||
@@ -181,6 +179,7 @@
|
||||
|
||||
GILog(@"weixin_userinfoApi err-->%@",err.localizedDescription);
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -21,5 +21,9 @@ target 'GIGA' do
|
||||
pod 'IQKeyboardManager'
|
||||
pod 'TTTAttributedLabel'
|
||||
pod 'NJKWebViewProgress'
|
||||
pod 'Bugly'
|
||||
pod 'UMCCommon'
|
||||
pod 'UMCAnalytics'
|
||||
pod 'UMCSecurityPlugins'
|
||||
|
||||
end
|
||||
|
||||
+18
-1
@@ -14,6 +14,7 @@ PODS:
|
||||
- AFNetworking/Serialization (3.2.1)
|
||||
- AFNetworking/UIKit (3.2.1):
|
||||
- AFNetworking/NSURLSession
|
||||
- Bugly (2.5.0)
|
||||
- FMDB (2.7.2):
|
||||
- FMDB/standard (= 2.7.2)
|
||||
- FMDB/standard (2.7.2)
|
||||
@@ -41,12 +42,17 @@ PODS:
|
||||
- Toast (4.0.0)
|
||||
- TTTAttributedLabel (2.0.0)
|
||||
- "UITableView+FDTemplateLayoutCell (1.6)"
|
||||
- UMCAnalytics (5.5.0):
|
||||
- UMCCommon
|
||||
- UMCCommon (1.5.2)
|
||||
- UMCSecurityPlugins (1.0.6)
|
||||
- WechatOpenSDK (1.8.2)
|
||||
- YTKKeyValueStore (0.1.2):
|
||||
- FMDB (~> 2.0)
|
||||
|
||||
DEPENDENCIES:
|
||||
- AFNetworking (~> 3.0)
|
||||
- Bugly
|
||||
- FMDB
|
||||
- IQKeyboardManager
|
||||
- JPush
|
||||
@@ -61,12 +67,16 @@ DEPENDENCIES:
|
||||
- Toast (~> 4.0.0)
|
||||
- TTTAttributedLabel
|
||||
- "UITableView+FDTemplateLayoutCell"
|
||||
- UMCAnalytics
|
||||
- UMCCommon
|
||||
- UMCSecurityPlugins
|
||||
- WechatOpenSDK
|
||||
- YTKKeyValueStore
|
||||
|
||||
SPEC REPOS:
|
||||
https://github.com/CocoaPods/Specs.git:
|
||||
- AFNetworking
|
||||
- Bugly
|
||||
- FMDB
|
||||
- IQKeyboardManager
|
||||
- JCore
|
||||
@@ -82,11 +92,15 @@ SPEC REPOS:
|
||||
- Toast
|
||||
- TTTAttributedLabel
|
||||
- "UITableView+FDTemplateLayoutCell"
|
||||
- UMCAnalytics
|
||||
- UMCCommon
|
||||
- UMCSecurityPlugins
|
||||
- WechatOpenSDK
|
||||
- YTKKeyValueStore
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057
|
||||
Bugly: 3ca9f255c01025582df26f9222893b383c7e4b4e
|
||||
FMDB: 6198a90e7b6900cfc046e6bc0ef6ebb7be9236aa
|
||||
IQKeyboardManager: 79c57795f5c2408d259d37b9da2ed07efcbb5225
|
||||
JCore: 467b5b56bd367c548f88ee1b5794d94ee07ab319
|
||||
@@ -102,9 +116,12 @@ SPEC CHECKSUMS:
|
||||
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
|
||||
TTTAttributedLabel: 8cffe8e127e4e82ff3af1e5386d4cd0ad000b656
|
||||
"UITableView+FDTemplateLayoutCell": 5c949b4a5059c404b442926c0e80f81d10a2d66f
|
||||
UMCAnalytics: 4667788559a72f2fa5077117d1b8802a3b6eb6bb
|
||||
UMCCommon: 4392868ac47ff1b101663106bb114ba616fabbad
|
||||
UMCSecurityPlugins: 0831a08f3988f3cea9f1d3a7626cd9bee4fef150
|
||||
WechatOpenSDK: 676feec516a11173eafd1fe64b10d27babf28701
|
||||
YTKKeyValueStore: 4d002941540dd5108fa23009b71e0f2f937f7a0f
|
||||
|
||||
PODFILE CHECKSUM: dab9f56b1ec7688e11809754299b1b531ddcca86
|
||||
PODFILE CHECKSUM: c276e618d4015acab13b2a705a6f1fac52a99dfd
|
||||
|
||||
COCOAPODS: 1.5.0
|
||||
|
||||
Generated
BIN
Binary file not shown.
+144
@@ -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
@@ -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,即关闭日志记录功能。
|
||||
* 如果设置为BuglyLogLevelWarn,则在崩溃时会上报Warn、Error接口打印的日志
|
||||
*/
|
||||
@property (nonatomic, assign) BuglyLogLevel reportLogLevel;
|
||||
|
||||
/**
|
||||
* 崩溃数据过滤器,如果崩溃堆栈的模块名包含过滤器中设置的关键字,则崩溃数据不会进行上报
|
||||
* 例如,过滤崩溃堆栈中包含搜狗输入法的数据,可以添加过滤器关键字SogouInputIPhone.dylib等
|
||||
*/
|
||||
@property (nonatomic, copy) NSArray *excludeModuleFilter;
|
||||
|
||||
/**
|
||||
* 控制台日志上报开关,默认开启
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL consolelogEnable;
|
||||
|
||||
/**
|
||||
* 崩溃退出超时,如果监听到崩溃后,App一直没有退出,则到达超时时间后会自动abort进程退出
|
||||
* 默认值 5s, 单位 秒
|
||||
* 当赋值为0时,则不会自动abort进程退出
|
||||
*/
|
||||
@property (nonatomic, assign) NSUInteger crashAbortTimeout;
|
||||
|
||||
@end
|
||||
BLY_END_NONNULL
|
||||
+78
@@ -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 日志内容 总日志大小限制为:字符串长度30k,条数200
|
||||
*/
|
||||
+ (void)log:(NSString *)format, ... NS_FORMAT_FUNCTION(1, 2);
|
||||
|
||||
/**
|
||||
* @brief 打印日志
|
||||
*
|
||||
* @param level 日志级别
|
||||
* @param message 日志内容 总日志大小限制为:字符串长度30k,条数200
|
||||
*/
|
||||
+ (void)level:(BuglyLogLevel) level logs:(NSString *)message;
|
||||
|
||||
/**
|
||||
* @brief 打印日志
|
||||
*
|
||||
* @param level 日志级别
|
||||
* @param format 日志内容 总日志大小限制为:字符串长度30k,条数200
|
||||
*/
|
||||
+ (void)level:(BuglyLogLevel) level log:(NSString *)format, ... NS_FORMAT_FUNCTION(2, 3);
|
||||
|
||||
/**
|
||||
* @brief 打印日志
|
||||
*
|
||||
* @param level 日志级别
|
||||
* @param tag 日志模块分类
|
||||
* @param format 日志内容 总日志大小限制为:字符串长度30k,条数200
|
||||
*/
|
||||
+ (void)level:(BuglyLogLevel) level tag:(NSString *) tag log:(NSString *)format, ... NS_FORMAT_FUNCTION(3, 4);
|
||||
|
||||
@end
|
||||
+12
@@ -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"
|
||||
}
|
||||
Generated
+18
-1
@@ -14,6 +14,7 @@ PODS:
|
||||
- AFNetworking/Serialization (3.2.1)
|
||||
- AFNetworking/UIKit (3.2.1):
|
||||
- AFNetworking/NSURLSession
|
||||
- Bugly (2.5.0)
|
||||
- FMDB (2.7.2):
|
||||
- FMDB/standard (= 2.7.2)
|
||||
- FMDB/standard (2.7.2)
|
||||
@@ -41,12 +42,17 @@ PODS:
|
||||
- Toast (4.0.0)
|
||||
- TTTAttributedLabel (2.0.0)
|
||||
- "UITableView+FDTemplateLayoutCell (1.6)"
|
||||
- UMCAnalytics (5.5.0):
|
||||
- UMCCommon
|
||||
- UMCCommon (1.5.2)
|
||||
- UMCSecurityPlugins (1.0.6)
|
||||
- WechatOpenSDK (1.8.2)
|
||||
- YTKKeyValueStore (0.1.2):
|
||||
- FMDB (~> 2.0)
|
||||
|
||||
DEPENDENCIES:
|
||||
- AFNetworking (~> 3.0)
|
||||
- Bugly
|
||||
- FMDB
|
||||
- IQKeyboardManager
|
||||
- JPush
|
||||
@@ -61,12 +67,16 @@ DEPENDENCIES:
|
||||
- Toast (~> 4.0.0)
|
||||
- TTTAttributedLabel
|
||||
- "UITableView+FDTemplateLayoutCell"
|
||||
- UMCAnalytics
|
||||
- UMCCommon
|
||||
- UMCSecurityPlugins
|
||||
- WechatOpenSDK
|
||||
- YTKKeyValueStore
|
||||
|
||||
SPEC REPOS:
|
||||
https://github.com/CocoaPods/Specs.git:
|
||||
- AFNetworking
|
||||
- Bugly
|
||||
- FMDB
|
||||
- IQKeyboardManager
|
||||
- JCore
|
||||
@@ -82,11 +92,15 @@ SPEC REPOS:
|
||||
- Toast
|
||||
- TTTAttributedLabel
|
||||
- "UITableView+FDTemplateLayoutCell"
|
||||
- UMCAnalytics
|
||||
- UMCCommon
|
||||
- UMCSecurityPlugins
|
||||
- WechatOpenSDK
|
||||
- YTKKeyValueStore
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057
|
||||
Bugly: 3ca9f255c01025582df26f9222893b383c7e4b4e
|
||||
FMDB: 6198a90e7b6900cfc046e6bc0ef6ebb7be9236aa
|
||||
IQKeyboardManager: 79c57795f5c2408d259d37b9da2ed07efcbb5225
|
||||
JCore: 467b5b56bd367c548f88ee1b5794d94ee07ab319
|
||||
@@ -102,9 +116,12 @@ SPEC CHECKSUMS:
|
||||
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
|
||||
TTTAttributedLabel: 8cffe8e127e4e82ff3af1e5386d4cd0ad000b656
|
||||
"UITableView+FDTemplateLayoutCell": 5c949b4a5059c404b442926c0e80f81d10a2d66f
|
||||
UMCAnalytics: 4667788559a72f2fa5077117d1b8802a3b6eb6bb
|
||||
UMCCommon: 4392868ac47ff1b101663106bb114ba616fabbad
|
||||
UMCSecurityPlugins: 0831a08f3988f3cea9f1d3a7626cd9bee4fef150
|
||||
WechatOpenSDK: 676feec516a11173eafd1fe64b10d27babf28701
|
||||
YTKKeyValueStore: 4d002941540dd5108fa23009b71e0f2f937f7a0f
|
||||
|
||||
PODFILE CHECKSUM: dab9f56b1ec7688e11809754299b1b531ddcca86
|
||||
PODFILE CHECKSUM: c276e618d4015acab13b2a705a6f1fac52a99dfd
|
||||
|
||||
COCOAPODS: 1.5.0
|
||||
|
||||
Generated
+1347
-1269
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.
|
||||
|
||||
|
||||
## Bugly
|
||||
|
||||
Copyright (C) 2017 Tencent Bugly, Inc. All rights reserved.
|
||||
|
||||
|
||||
## FMDB
|
||||
|
||||
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
|
||||
|
||||
Copyright 2018 tencent.com. All rights reserved.
|
||||
|
||||
@@ -41,6 +41,17 @@ THE SOFTWARE.
|
||||
<key>Type</key>
|
||||
<string>PSGroupSpecifier</string>
|
||||
</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>
|
||||
<key>FooterText</key>
|
||||
<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>
|
||||
<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>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>
|
||||
<key>FooterText</key>
|
||||
<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
|
||||
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'
|
||||
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_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_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
|
||||
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
|
||||
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'
|
||||
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_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_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
|
||||
PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
5.5.0
|
||||
+1
@@ -0,0 +1 @@
|
||||
Versions/Current/Headers
|
||||
+1
@@ -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-value,并将key-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)();
|
||||
|
||||
/**
|
||||
统计的场景类别,默认为普通统计;若使用游戏统计API,则需选择游戏场景类别,如E_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管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID
|
||||
|
||||
@param eventId 网站上注册的事件Id.
|
||||
@param label 分类标签。不同的标签会分别进行统计,方便同一事件的不同标签的对比,为nil或空字符串时后台会生成和eventId同名的标签.
|
||||
@param accumulation 累加值。为减少网络交互,可以自行对某一事件ID的某一分类标签进行累加,再传入次数作为参数。
|
||||
@return void.
|
||||
*/
|
||||
+ (void)event:(NSString *)eventId; //等同于 event:eventId label:eventId;
|
||||
/** 自定义事件,数量统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID
|
||||
*/
|
||||
+ (void)event:(NSString *)eventId label:(NSString *)label; // label为nil或@""时,等同于 event:eventId label:eventId;
|
||||
|
||||
/** 自定义事件,数量统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID
|
||||
*/
|
||||
+ (void)event:(NSString *)eventId attributes:(NSDictionary *)attributes;
|
||||
|
||||
+ (void)event:(NSString *)eventId attributes:(NSDictionary *)attributes counter:(int)number;
|
||||
|
||||
/** 自定义事件,时长统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID.
|
||||
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个
|
||||
eventId、attributes中key和value都不能使用空格和特殊字符,必须是NSString,且长度不能超过255个字符(否则将截取前255个字符)
|
||||
id, ts, du是保留字段,不能作为eventId及key的名称
|
||||
*/
|
||||
+ (void)beginEvent:(NSString *)eventId;
|
||||
|
||||
/** 自定义事件,时长统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID.
|
||||
*/
|
||||
|
||||
+ (void)endEvent:(NSString *)eventId;
|
||||
/** 自定义事件,时长统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID.
|
||||
*/
|
||||
|
||||
+ (void)beginEvent:(NSString *)eventId label:(NSString *)label;
|
||||
/** 自定义事件,时长统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID.
|
||||
*/
|
||||
|
||||
+ (void)endEvent:(NSString *)eventId label:(NSString *)label;
|
||||
/** 自定义事件,时长统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID.
|
||||
*/
|
||||
|
||||
+ (void)beginEvent:(NSString *)eventId primarykey :(NSString *)keyName attributes:(NSDictionary *)attributes;
|
||||
/** 自定义事件,时长统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID.
|
||||
*/
|
||||
|
||||
+ (void)endEvent:(NSString *)eventId primarykey:(NSString *)keyName;
|
||||
/** 自定义事件,时长统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID.
|
||||
*/
|
||||
|
||||
+ (void)event:(NSString *)eventId durations:(int)millisecond;
|
||||
/** 自定义事件,时长统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID.
|
||||
*/
|
||||
|
||||
+ (void)event:(NSString *)eventId label:(NSString *)label durations:(int)millisecond;
|
||||
/** 自定义事件,时长统计.
|
||||
使用前,请先到友盟App管理后台的设置->编辑自定义事件 中添加相应的事件ID,然后在工程中传入相应的事件ID.
|
||||
*/
|
||||
+ (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
|
||||
+184
@@ -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
@@ -0,0 +1 @@
|
||||
A
|
||||
@@ -0,0 +1 @@
|
||||
1.5.2
|
||||
+1
@@ -0,0 +1 @@
|
||||
Versions/Current/Headers
|
||||
+1
@@ -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
@@ -0,0 +1 @@
|
||||
A
|
||||
+15
@@ -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 */
|
||||
Generated
+21
@@ -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 */
|
||||
+27
@@ -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>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
framework module SecurityEnvSDK {
|
||||
umbrella header "SecurityEnvSDK.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
BIN
Binary file not shown.
Generated
+1
@@ -0,0 +1 @@
|
||||
Versions/Current/Headers
|
||||
+1
@@ -0,0 +1 @@
|
||||
Versions/Current/Resources
|
||||
+1
@@ -0,0 +1 @@
|
||||
Versions/Current/UTDID
|
||||
+23
@@ -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
|
||||
+56
@@ -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
|
||||
BIN
Binary file not shown.
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
A
|
||||
Reference in New Issue
Block a user