Skip to content

Commit f05975b

Browse files
committed
update TapDB to 3.18.0 to support caid
1 parent 64997f3 commit f05975b

File tree

5 files changed

+36
-8
lines changed

5 files changed

+36
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.2.5
4+
5+
### New Feature
6+
7+
* iOS 支持 CAID
8+
39
## 1.2.4
410

511
### BugFix

Plugins/iOS/TapSDK.framework/Headers/TapDB.h

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#import <Foundation/Foundation.h>
2-
32
NS_ASSUME_NONNULL_BEGIN
43

54
typedef struct LoginType{
65
NSString *loginType;
76
}TapDBLoginType;
87

8+
99
/*
1010
自定义登录方式:
1111
TapDBLoginType customLoginType = {@"custom"};
@@ -21,8 +21,17 @@ FOUNDATION_EXPORT TapDBLoginType const TapDBLoginTypeGoogle;
2121
FOUNDATION_EXPORT TapDBLoginType const TapDBLoginTypeTwitter;
2222
FOUNDATION_EXPORT TapDBLoginType const TapDBLoginTypePhoneNumber;
2323

24+
#define TapDBSDK @"TapDB"
25+
#define TapDBSDK_VERSION_NUMBER @"31800001"
26+
#define TapDBSDK_VERSION @"3.18.0"
2427
//版本号
25-
static NSString *const TAPDB_VERSION = @"3.0.5";
28+
static NSString *const TAPDB_VERSION = @"3.0.10";
29+
30+
typedef NS_ENUM(NSInteger, TapDBRegion)
31+
{
32+
TapDBRegionTypeCN ,
33+
TapDBRegionTypeIO
34+
};
2635

2736
@interface TapDB : NSObject
2837
/**
@@ -62,7 +71,8 @@ static NSString *const TAPDB_VERSION = @"3.0.5";
6271
+ (void)onStartWithClientId:(NSString *)clientId channel:(nullable NSString *)channel version:(nullable NSString *)gameVersion;
6372

6473
//sm
65-
+ (void)onStartWithClientId:(NSString *)clientId channel:(nullable NSString *)channel version:(nullable NSString *)gameVersion isCN:(BOOL)isCN;
74+
+ (void)onStartWithClientId:(NSString *)clientId channel:(nullable NSString *)channel version:(nullable NSString *)gameVersion isCN:(BOOL)isCN DEPRECATED_MSG_ATTRIBUTE("use onStartWithClientId:channel:version:region:properties");
75+
6676
/**
6777
* 初始化,尽早调用
6878
* clientId: TapTap登录sdk后台页面 client id
@@ -72,18 +82,28 @@ static NSString *const TAPDB_VERSION = @"3.0.5";
7282
*/
7383
+ (void)onStartWithClientId:(NSString *)clientId channel:(nullable NSString *)channel version:(nullable NSString *)gameVersion properties:(nullable NSDictionary *)properties;
7484

85+
/**
86+
* 初始化,尽早调用
87+
* clientId: TapTap登录sdk后台页面 client id
88+
* channel: 分包渠道名称,可为空
89+
* gameVersion: 游戏版本,可为空,为空时,自动获取游戏安装包的版本(Xcode配置中的Version)
90+
* region: 区域
91+
* properties: 自定义属性
92+
*/
93+
+ (void)onStartWithClientId:(NSString *)clientId channel:(nullable NSString *)channel version:(nullable NSString *)gameVersion region:(TapDBRegion) region properties:(nullable NSDictionary *)properties;
94+
7595
+ (void)setUser:(NSString *)userId;
7696

7797
+ (void)setUser:(NSString *)userId properties:(nullable NSDictionary *)properties;
7898
/// 对外隐藏接口
7999
+ (void)setUser:(NSString *)userId loginType:(TapDBLoginType)loginType;
100+
80101
/// 记录一个用户(不是游戏角色!!!!),需要保证唯一性
81102
/// @param userId 用户ID。不同用户需要保证ID的唯一性
82103
/// @param loginType 登录方式
83104
/// @param properties 自定义属性
84105
+ (void)setUser:(NSString *)userId loginType:(TapDBLoginType)loginType properties:(nullable NSDictionary *)properties;
85106

86-
87107
/**
88108
登出清理用户
89109
*/
@@ -113,16 +133,18 @@ static NSString *const TAPDB_VERSION = @"3.0.5";
113133
/// @param name 必传,长度大于0并小于等于256,用户名
114134
+ (void)setName:(NSString *)name;
115135

136+
+ (void)onChargeSuccess:(nullable NSString *)orderId product:(nullable NSString *)product amount:(NSInteger)amount currencyType:(nullable NSString *)currencyType payment:(nullable NSString *)payment;
137+
116138
/**
117139
* 充值成功时调用
118140
* orderId: 订单ID,可为空
119141
* product: 产品名称,可为空
120142
* amount: 充值金额(单位分,即无论什么币种,都需要乘以100)
121143
* currencyType: 货币类型,可为空,参考:人民币 CNY,美元 USD;欧元 EUR
122144
* payment: 支付方式,可为空,如:支付宝
145+
* properties: 事件属性,需要在控制后台预先进行配置,值为长度大于0并小于等于256的字符串或绝对值小于1E11的浮点数
123146
*/
124-
+ (void)onChargeSuccess:(nullable NSString *)orderId product:(nullable NSString *)product amount:(NSInteger)amount currencyType:(nullable NSString *)currencyType payment:(nullable NSString *)payment;
125-
147+
+ (void)onChargeSuccess:(nullable NSString *)orderId product:(nullable NSString *)product amount:(NSInteger)amount currencyType:(nullable NSString *)currencyType payment:(nullable NSString *)payment properties:(nullable NSDictionary *)properties;
126148
/**
127149
* 自定义事件
128150
* eventName: 事件代码,需要在控制后台预先进行配置

Plugins/iOS/TapSDK.framework/Headers/TapSDK.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FOUNDATION_EXPORT double TapSDKVersionNumber;
1313
//! Project version string for TapSDK.
1414
FOUNDATION_EXPORT const unsigned char TapSDKVersionString[];
1515

16-
#define Tap_SDK_VERSION @"1.2.2"
16+
#define Tap_SDK_VERSION @"1.3.0"
1717

1818

1919
#import <TapSDK/TDSInitializer.h>

Plugins/iOS/TapSDK.framework/TapSDK

364 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.tds.sdk",
33
"displayName": "Tap SDK",
44
"description": "TapTap Develop Service!",
5-
"version": "1.2.4",
5+
"version": "1.2.5",
66
"unity": "2020.1",
77
"license": "MIT"
88
}

0 commit comments

Comments
 (0)