Skip to content

Commit 32e4d3d

Browse files
author
TapTap SDK Publisher[bot]
committed
🚀 Release TapTap SDK v4.9.6-beta.1
1 parent e67225e commit 32e4d3d

File tree

29 files changed

+91
-79
lines changed

29 files changed

+91
-79
lines changed

‎Achievement/Mobile/Editor/NativeDependencies.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<repositories>
55
<repository>https://repo.maven.apache.org/maven2</repository>
66
</repositories>
7-
<androidPackage spec="com.taptap.sdk:tap-achievement-unity:4.9.5" />
7+
<androidPackage spec="com.taptap.sdk:tap-achievement-unity:4.9.6-beta.1" />
88
</androidPackages>
99
<iosPods>
1010
<sources>
1111
<source>https://github.com/CocoaPods/Specs.git</source>
1212
</sources>
13-
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Achievement" version="4.9.5" />
13+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Achievement" version="4.9.6-beta.1" />
1414
</iosPods>
1515
</dependencies>

‎Achievement/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "com.taptap.sdk.achievement",
33
"displayName": "TapTapSDK Achievement ",
44
"description": "TapTapSDK Achievement",
5-
"version": "4.9.5",
5+
"version": "4.9.6-beta.1",
66
"unity": "2019.4",
77
"license": "MIT",
88
"dependencies": {
9-
"com.taptap.sdk.core": "4.9.5",
10-
"com.taptap.sdk.login": "4.9.5"
9+
"com.taptap.sdk.core": "4.9.6-beta.1",
10+
"com.taptap.sdk.login": "4.9.6-beta.1"
1111
}
1212
}

‎CloudSave/Mobile/Editor/NativeDependencies.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<repositories>
55
<repository>https://repo.maven.apache.org/maven2</repository>
66
</repositories>
7-
<androidPackage spec="com.taptap.sdk:tap-cloudsave-unity:4.9.5" />
7+
<androidPackage spec="com.taptap.sdk:tap-cloudsave-unity:4.9.6-beta.1" />
88
</androidPackages>
99
<iosPods>
1010
<sources>
1111
<source>https://github.com/CocoaPods/Specs.git</source>
1212
</sources>
13-
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/CloudSave" version="4.9.5" />
13+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/CloudSave" version="4.9.6-beta.1" />
1414
</iosPods>
1515
</dependencies>

‎CloudSave/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "com.taptap.sdk.cloudsave",
33
"displayName": "TapTapSDK CloudSave",
44
"description": "TapTapSDK CloudSave",
5-
"version": "4.9.5",
5+
"version": "4.9.6-beta.1",
66
"unity": "2019.4",
77
"license": "MIT",
88
"dependencies": {
9-
"com.taptap.sdk.core": "4.9.5",
10-
"com.taptap.sdk.login": "4.9.5"
9+
"com.taptap.sdk.core": "4.9.6-beta.1",
10+
"com.taptap.sdk.login": "4.9.6-beta.1"
1111
}
1212
}

‎Compliance/Mobile/Editor/NativeDependencies.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<repositories>
55
<repository>https://repo.maven.apache.org/maven2</repository>
66
</repositories>
7-
<androidPackage spec="com.taptap.sdk:tap-compliance:4.9.5" />
7+
<androidPackage spec="com.taptap.sdk:tap-compliance:4.9.6-beta.1" />
88
</androidPackages>
99
<iosPods>
1010
<sources>
1111
<source>https://github.com/CocoaPods/Specs.git</source>
1212
</sources>
13-
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Compliance" version="4.9.5" />
13+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Compliance" version="4.9.6-beta.1" />
1414
</iosPods>
1515
</dependencies>

‎Compliance/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "com.taptap.sdk.compliance",
33
"displayName": "TapTapSDK Compliance",
44
"description": "TapTapSDK Compliance",
5-
"version": "4.9.5",
5+
"version": "4.9.6-beta.1",
66
"unity": "2019.4",
77
"license": "MIT",
88
"dependencies": {
9-
"com.taptap.sdk.core": "4.9.5",
10-
"com.taptap.sdk.login": "4.9.5"
9+
"com.taptap.sdk.core": "4.9.6-beta.1",
10+
"com.taptap.sdk.login": "4.9.6-beta.1"
1111
}
1212
}

‎Core/Mobile/Editor/NativeDependencies.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<repositories>
55
<repository>https://repo.maven.apache.org/maven2</repository>
66
</repositories>
7-
<androidPackage spec="com.taptap.sdk:tap-core-unity:4.9.5" />
7+
<androidPackage spec="com.taptap.sdk:tap-core-unity:4.9.6-beta.1" />
88
</androidPackages>
99
<iosPods>
1010
<sources>
1111
<source>https://github.com/CocoaPods/Specs.git</source>
1212
</sources>
13-
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Core" version="4.9.5" />
13+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Core" version="4.9.6-beta.1" />
1414
</iosPods>
1515
</dependencies>

‎Core/Standalone/Runtime/Public/TapEventStandalone.cs‎

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,8 @@ public void AddCommonProperty(string key, string value)
205205
{
206206
return;
207207
}
208-
if (!checkLength(key))
208+
if (!checkKeyValueLength(key, value))
209209
{
210-
TapLog.Error(key + " Property key length should be less than or equal to 256 characters.");
211-
return;
212-
}
213-
if (!checkLength(value))
214-
{
215-
TapLog.Error(value + " Property value length should be less than or equal to 256 characters.");
216210
return;
217211
}
218212
Tracker.AddCommonProperty(key, value);
@@ -351,9 +345,8 @@ public Dictionary<string, object> GetDynamicProperties()
351345
}
352346
}
353347

354-
private bool checkLength(string value)
348+
private bool checkLength(string value, int maxLength = 256)
355349
{
356-
var maxLength = 256;
357350
if (value.Length <= 0 || value.Length > maxLength)
358351
{
359352
return false;
@@ -400,20 +393,39 @@ private Dictionary<string, object> filterProperties(Dictionary<string, object> p
400393
{
401394
foreach (var property in properties)
402395
{
403-
if (property.Key.Length <= 0 || property.Key.Length > 256)
404-
{
405-
TapLog.Log(property.Key + " Property key length should be more then 0 and less than or equal to 256 characters.");
406-
continue;
407-
}
408-
if (property.Value.ToString().Length > 256)
396+
if (!checkKeyValueLength(property.Key, property.Value))
409397
{
410-
TapLog.Log(property.Value + " Property value length should be less than or equal to 256 characters.");
411398
continue;
412399
}
413400
filteredProperties.Add(property.Key, property.Value);
414401
}
415402
}
416403
return filteredProperties;
417404
}
405+
406+
private bool checkKeyValueLength(string key, object value)
407+
{
408+
409+
if (key == null || key.Length <= 0 || key.Length > 256)
410+
{
411+
TapLog.Log(key + " Property key length should be more then 0 and less than or equal to 256 characters.");
412+
return false;
413+
}
414+
var maxLength = 4096;
415+
if (key.Equals("device_id") || key.Equals("user_id"))
416+
{
417+
maxLength = 256;
418+
}
419+
if (value is string stringValue)
420+
{
421+
if (stringValue.Length > maxLength)
422+
{
423+
TapLog.Log(key + " Property value length should be less than or equal to " + maxLength + " characters.");
424+
return false;
425+
}
426+
}
427+
return true;
428+
}
429+
418430
}
419431
}

‎Core/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.taptap.sdk.core",
33
"displayName": "TapTapSDK Core",
44
"description": "TapTapSDK Core",
5-
"version": "4.9.5",
5+
"version": "4.9.6-beta.1",
66
"unity": "2019.4",
77
"license": "MIT"
88
}

‎IAP/Mobile/Editor/NativeDependencies.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<repositories>
55
<repository>https://repo.maven.apache.org/maven2</repository>
66
</repositories>
7-
<androidPackage spec="com.taptap.android.payment:unity:4.9.5" />
8-
<androidPackage spec="com.taptap.android.payment:stripe:4.9.5" />
9-
<androidPackage spec="com.taptap.android.payment:alipay:4.9.5" />
10-
<androidPackage spec="com.taptap.android.payment:braintree:4.9.5" />
11-
<androidPackage spec="com.taptap.android.payment:alipaycn:4.9.5" />
12-
<androidPackage spec="com.taptap.android.payment:wechat:4.9.5" />
7+
<androidPackage spec="com.taptap.android.payment:unity:4.9.6-beta.1" />
8+
<androidPackage spec="com.taptap.android.payment:stripe:4.9.6-beta.1" />
9+
<androidPackage spec="com.taptap.android.payment:alipay:4.9.6-beta.1" />
10+
<androidPackage spec="com.taptap.android.payment:braintree:4.9.6-beta.1" />
11+
<androidPackage spec="com.taptap.android.payment:alipaycn:4.9.6-beta.1" />
12+
<androidPackage spec="com.taptap.android.payment:wechat:4.9.6-beta.1" />
1313
</androidPackages>
1414
<iosPods>
1515
<sources>

0 commit comments

Comments
 (0)