com.taptap.sdk.leaderboard 4.10.1 → 4.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Mobile/Editor/BuidPostProcessor.cs +58 -58
- package/Mobile/Editor/BuidPostProcessor.cs.meta +11 -11
- package/Mobile/Editor/NativeDependencies.xml +14 -14
- package/Mobile/Editor/NativeDependencies.xml.meta +7 -7
- package/Mobile/Editor/TapLeaderboardMobileProcessBuild.cs +24 -24
- package/Mobile/Editor/TapLeaderboardMobileProcessBuild.cs.meta +11 -11
- package/Mobile/Editor/TapSDK.Leaderboard.Mobile.Editor.asmdef +16 -16
- package/Mobile/Editor/TapSDK.Leaderboard.Mobile.Editor.asmdef.meta +7 -7
- package/Mobile/Editor.meta +8 -8
- package/Mobile/Runtime/TapSDK.Leaderboard.Mobile.Runtime.asmdef +19 -19
- package/Mobile/Runtime/TapSDK.Leaderboard.Mobile.Runtime.asmdef.meta +7 -7
- package/Mobile/Runtime/TapTapLeaderboardImpl.cs +426 -426
- package/Mobile/Runtime/TapTapLeaderboardImpl.cs.meta +11 -11
- package/Mobile/Runtime.meta +8 -8
- package/Mobile.meta +8 -8
- package/Runtime/Internal/TapTapLeaderboardManager.cs +68 -68
- package/Runtime/Internal/TapTapLeaderboardManager.cs.meta +11 -11
- package/Runtime/Internal.meta +8 -8
- package/Runtime/Public/ILeaderboardPlatform.cs +87 -87
- package/Runtime/Public/ILeaderboardPlatform.cs.meta +11 -11
- package/Runtime/Public/ITapTapLeaderboard.cs +68 -68
- package/Runtime/Public/ITapTapLeaderboard.cs.meta +11 -11
- package/Runtime/Public/ITapTapLeaderboardResponseCallback.cs +34 -34
- package/Runtime/Public/ITapTapLeaderboardResponseCallback.cs.meta +2 -2
- package/Runtime/Public/Image.cs +71 -71
- package/Runtime/Public/Image.cs.meta +2 -2
- package/Runtime/Public/Leaderboard.cs +66 -66
- package/Runtime/Public/Leaderboard.cs.meta +11 -11
- package/Runtime/Public/LeaderboardCallback.cs +24 -24
- package/Runtime/Public/LeaderboardCallback.cs.meta +7 -7
- package/Runtime/Public/LeaderboardShareCallback.cs +35 -35
- package/Runtime/Public/LeaderboardShareCallback.cs.meta +7 -7
- package/Runtime/Public/Score.cs +77 -77
- package/Runtime/Public/Score.cs.meta +2 -2
- package/Runtime/Public/TapLeaderboardModels.cs +147 -147
- package/Runtime/Public/TapLeaderboardModels.cs.meta +11 -11
- package/Runtime/Public/TapTapLeaderboard.cs +137 -137
- package/Runtime/Public/TapTapLeaderboard.cs.meta +11 -11
- package/Runtime/Public.meta +8 -8
- package/Runtime/TapSDK.Leaderboard.Runtime.asmdef +14 -14
- package/Runtime/TapSDK.Leaderboard.Runtime.asmdef.meta +7 -7
- package/Runtime.meta +8 -8
- package/link.xml +3 -3
- package/link.xml.meta +7 -7
- package/package.json +11 -11
- package/package.json.meta +7 -7
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
using UnityEngine;
|
|
2
|
-
using UnityEditor;
|
|
3
|
-
using UnityEditor.Callbacks;
|
|
4
|
-
# if UNITY_IOS
|
|
5
|
-
using UnityEditor.iOS.Xcode;
|
|
6
|
-
#endif
|
|
7
|
-
using System.IO;
|
|
8
|
-
using System.Collections.Generic;
|
|
9
|
-
using System.Linq;
|
|
10
|
-
using TapSDK.Core.Editor;
|
|
11
|
-
using System.Diagnostics;
|
|
12
|
-
|
|
13
|
-
#if UNITY_IOS
|
|
14
|
-
public class BuildPostProcessor
|
|
15
|
-
{
|
|
16
|
-
[PostProcessBuild(999)]
|
|
17
|
-
public static void OnPostProcessBuild(BuildTarget buildTarget, string path)
|
|
18
|
-
{
|
|
19
|
-
if (buildTarget == BuildTarget.iOS)
|
|
20
|
-
{
|
|
21
|
-
var projPath = TapSDKCoreCompile.GetProjPath(path);
|
|
22
|
-
var proj = TapSDKCoreCompile.ParseProjPath(projPath);
|
|
23
|
-
var target = TapSDKCoreCompile.GetUnityTarget(proj);
|
|
24
|
-
|
|
25
|
-
if (TapSDKCoreCompile.CheckTarget(target))
|
|
26
|
-
{
|
|
27
|
-
UnityEngine.Debug.LogError("Unity-iPhone is NUll");
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (TapSDKCoreCompile.HandlerIOSSetting(path,
|
|
31
|
-
Application.dataPath,
|
|
32
|
-
"TapTapLeaderboardResource",
|
|
33
|
-
"com.taptap.sdk.leaderboard",
|
|
34
|
-
"Leaderboard",
|
|
35
|
-
new[] { "TapTapLeaderboardResource.bundle" },
|
|
36
|
-
target, projPath, proj))
|
|
37
|
-
{
|
|
38
|
-
UnityEngine.Debug.Log("TapLeaderboard add Bundle Success!");
|
|
39
|
-
}
|
|
40
|
-
if (TapSDKCoreCompile.HandlerIOSSetting(path,
|
|
41
|
-
Application.dataPath,
|
|
42
|
-
"TapTapProfileResource",
|
|
43
|
-
"com.taptap.sdk.profile",
|
|
44
|
-
"Profile",
|
|
45
|
-
new[] { "TapTapProfileResource.bundle" },
|
|
46
|
-
target, projPath, proj))
|
|
47
|
-
{
|
|
48
|
-
UnityEngine.Debug.Log("TapProfile add Bundle Success!");
|
|
49
|
-
TapSDKCoreCompile.ExecutePodCommand("pod deintegrate && pod install", path);
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
UnityEngine.Debug.LogWarning("TapLeaderboard add Bundle Failed!");
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
#endif
|
|
1
|
+
using UnityEngine;
|
|
2
|
+
using UnityEditor;
|
|
3
|
+
using UnityEditor.Callbacks;
|
|
4
|
+
# if UNITY_IOS
|
|
5
|
+
using UnityEditor.iOS.Xcode;
|
|
6
|
+
#endif
|
|
7
|
+
using System.IO;
|
|
8
|
+
using System.Collections.Generic;
|
|
9
|
+
using System.Linq;
|
|
10
|
+
using TapSDK.Core.Editor;
|
|
11
|
+
using System.Diagnostics;
|
|
12
|
+
|
|
13
|
+
#if UNITY_IOS
|
|
14
|
+
public class BuildPostProcessor
|
|
15
|
+
{
|
|
16
|
+
[PostProcessBuild(999)]
|
|
17
|
+
public static void OnPostProcessBuild(BuildTarget buildTarget, string path)
|
|
18
|
+
{
|
|
19
|
+
if (buildTarget == BuildTarget.iOS)
|
|
20
|
+
{
|
|
21
|
+
var projPath = TapSDKCoreCompile.GetProjPath(path);
|
|
22
|
+
var proj = TapSDKCoreCompile.ParseProjPath(projPath);
|
|
23
|
+
var target = TapSDKCoreCompile.GetUnityTarget(proj);
|
|
24
|
+
|
|
25
|
+
if (TapSDKCoreCompile.CheckTarget(target))
|
|
26
|
+
{
|
|
27
|
+
UnityEngine.Debug.LogError("Unity-iPhone is NUll");
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (TapSDKCoreCompile.HandlerIOSSetting(path,
|
|
31
|
+
Application.dataPath,
|
|
32
|
+
"TapTapLeaderboardResource",
|
|
33
|
+
"com.taptap.sdk.leaderboard",
|
|
34
|
+
"Leaderboard",
|
|
35
|
+
new[] { "TapTapLeaderboardResource.bundle" },
|
|
36
|
+
target, projPath, proj))
|
|
37
|
+
{
|
|
38
|
+
UnityEngine.Debug.Log("TapLeaderboard add Bundle Success!");
|
|
39
|
+
}
|
|
40
|
+
if (TapSDKCoreCompile.HandlerIOSSetting(path,
|
|
41
|
+
Application.dataPath,
|
|
42
|
+
"TapTapProfileResource",
|
|
43
|
+
"com.taptap.sdk.profile",
|
|
44
|
+
"Profile",
|
|
45
|
+
new[] { "TapTapProfileResource.bundle" },
|
|
46
|
+
target, projPath, proj))
|
|
47
|
+
{
|
|
48
|
+
UnityEngine.Debug.Log("TapProfile add Bundle Success!");
|
|
49
|
+
TapSDKCoreCompile.ExecutePodCommand("pod deintegrate && pod install", path);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
UnityEngine.Debug.LogWarning("TapLeaderboard add Bundle Failed!");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 5cd017ff87e60410db626f4d21dbf87d
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 5cd017ff87e60410db626f4d21dbf87d
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
|
2
|
-
<dependencies>
|
|
3
|
-
<androidPackages>
|
|
4
|
-
<repositories>
|
|
5
|
-
<repository>https://repo.maven.apache.org/maven2</repository>
|
|
6
|
-
</repositories>
|
|
7
|
-
<androidPackage spec="com.taptap.sdk:tap-leaderboard-unity:4.10.
|
|
8
|
-
</androidPackages>
|
|
9
|
-
<iosPods>
|
|
10
|
-
<sources>
|
|
11
|
-
<source>https://github.com/CocoaPods/Specs.git</source>
|
|
12
|
-
</sources>
|
|
13
|
-
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Leaderboard" version="4.10.
|
|
14
|
-
</iosPods>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
|
2
|
+
<dependencies>
|
|
3
|
+
<androidPackages>
|
|
4
|
+
<repositories>
|
|
5
|
+
<repository>https://repo.maven.apache.org/maven2</repository>
|
|
6
|
+
</repositories>
|
|
7
|
+
<androidPackage spec="com.taptap.sdk:tap-leaderboard-unity:4.10.2" />
|
|
8
|
+
</androidPackages>
|
|
9
|
+
<iosPods>
|
|
10
|
+
<sources>
|
|
11
|
+
<source>https://github.com/CocoaPods/Specs.git</source>
|
|
12
|
+
</sources>
|
|
13
|
+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Leaderboard" version="4.10.2" />
|
|
14
|
+
</iosPods>
|
|
15
15
|
</dependencies>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 675a09bf0e004475dbdb80ddb42f9e27
|
|
3
|
-
TextScriptImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 675a09bf0e004475dbdb80ddb42f9e27
|
|
3
|
+
TextScriptImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
using System;
|
|
2
|
-
using UnityEditor.Build.Reporting;
|
|
3
|
-
using TapSDK.Core.Editor;
|
|
4
|
-
|
|
5
|
-
namespace TapSDK.Leaderboard.Mobile.Editor {
|
|
6
|
-
/// <summary>
|
|
7
|
-
/// 处理 TapSDK Leaderboard 模块在移动平台的构建过程
|
|
8
|
-
/// 确保正确的程序集被包含在构建中
|
|
9
|
-
/// </summary>
|
|
10
|
-
public class TapLeaderboardMobileProcessBuild : SDKLinkProcessBuild {
|
|
11
|
-
public override int callbackOrder => 0;
|
|
12
|
-
|
|
13
|
-
public override string LinkPath => "TapSDK/Leaderboard/link.xml";
|
|
14
|
-
|
|
15
|
-
public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
|
|
16
|
-
new LinkedAssembly { Fullname = "TapSDK.Leaderboard.Runtime" },
|
|
17
|
-
new LinkedAssembly { Fullname = "TapSDK.Leaderboard.Mobile.Runtime" }
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
public override Func<BuildReport, bool> IsTargetPlatform => (report) => {
|
|
21
|
-
return BuildTargetUtils.IsSupportMobile(report.summary.platform);
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
using System;
|
|
2
|
+
using UnityEditor.Build.Reporting;
|
|
3
|
+
using TapSDK.Core.Editor;
|
|
4
|
+
|
|
5
|
+
namespace TapSDK.Leaderboard.Mobile.Editor {
|
|
6
|
+
/// <summary>
|
|
7
|
+
/// 处理 TapSDK Leaderboard 模块在移动平台的构建过程
|
|
8
|
+
/// 确保正确的程序集被包含在构建中
|
|
9
|
+
/// </summary>
|
|
10
|
+
public class TapLeaderboardMobileProcessBuild : SDKLinkProcessBuild {
|
|
11
|
+
public override int callbackOrder => 0;
|
|
12
|
+
|
|
13
|
+
public override string LinkPath => "TapSDK/Leaderboard/link.xml";
|
|
14
|
+
|
|
15
|
+
public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
|
|
16
|
+
new LinkedAssembly { Fullname = "TapSDK.Leaderboard.Runtime" },
|
|
17
|
+
new LinkedAssembly { Fullname = "TapSDK.Leaderboard.Mobile.Runtime" }
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
public override Func<BuildReport, bool> IsTargetPlatform => (report) => {
|
|
21
|
+
return BuildTargetUtils.IsSupportMobile(report.summary.platform);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 535c34242993f468ba02527701c804c5
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 535c34242993f468ba02527701c804c5
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "TapSDK.Leaderboard.Mobile.Editor",
|
|
3
|
-
"references": [
|
|
4
|
-
"GUID:56f3da7a178484843974054bafe77e73"
|
|
5
|
-
],
|
|
6
|
-
"includePlatforms": [
|
|
7
|
-
"Editor"
|
|
8
|
-
],
|
|
9
|
-
"excludePlatforms": [],
|
|
10
|
-
"allowUnsafeCode": false,
|
|
11
|
-
"overrideReferences": false,
|
|
12
|
-
"precompiledReferences": [],
|
|
13
|
-
"autoReferenced": true,
|
|
14
|
-
"defineConstraints": [],
|
|
15
|
-
"versionDefines": [],
|
|
16
|
-
"noEngineReferences": false
|
|
1
|
+
{
|
|
2
|
+
"name": "TapSDK.Leaderboard.Mobile.Editor",
|
|
3
|
+
"references": [
|
|
4
|
+
"GUID:56f3da7a178484843974054bafe77e73"
|
|
5
|
+
],
|
|
6
|
+
"includePlatforms": [
|
|
7
|
+
"Editor"
|
|
8
|
+
],
|
|
9
|
+
"excludePlatforms": [],
|
|
10
|
+
"allowUnsafeCode": false,
|
|
11
|
+
"overrideReferences": false,
|
|
12
|
+
"precompiledReferences": [],
|
|
13
|
+
"autoReferenced": true,
|
|
14
|
+
"defineConstraints": [],
|
|
15
|
+
"versionDefines": [],
|
|
16
|
+
"noEngineReferences": false
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: e17e5817c1ad94170b21e48c2d407874
|
|
3
|
-
AssemblyDefinitionImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: e17e5817c1ad94170b21e48c2d407874
|
|
3
|
+
AssemblyDefinitionImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|
package/Mobile/Editor.meta
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 6a37a6c340a8e496b8a14f6d2878c272
|
|
3
|
-
folderAsset: yes
|
|
4
|
-
DefaultImporter:
|
|
5
|
-
externalObjects: {}
|
|
6
|
-
userData:
|
|
7
|
-
assetBundleName:
|
|
8
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 6a37a6c340a8e496b8a14f6d2878c272
|
|
3
|
+
folderAsset: yes
|
|
4
|
+
DefaultImporter:
|
|
5
|
+
externalObjects: {}
|
|
6
|
+
userData:
|
|
7
|
+
assetBundleName:
|
|
8
|
+
assetBundleVariant:
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "TapSDK.Leaderboard.Mobile.Runtime",
|
|
3
|
-
"references": [
|
|
4
|
-
"GUID:7d5ef2062f3704e1ab74aac0e4d5a1a7",
|
|
5
|
-
"GUID:5d5e0e6899b474358a025b56eeef905d",
|
|
6
|
-
"GUID:10560023d8780423cb943c7a324b69f2"
|
|
7
|
-
],
|
|
8
|
-
"includePlatforms": [
|
|
9
|
-
"Android",
|
|
10
|
-
"iOS"
|
|
11
|
-
],
|
|
12
|
-
"excludePlatforms": [],
|
|
13
|
-
"allowUnsafeCode": false,
|
|
14
|
-
"overrideReferences": false,
|
|
15
|
-
"precompiledReferences": [],
|
|
16
|
-
"autoReferenced": true,
|
|
17
|
-
"defineConstraints": [],
|
|
18
|
-
"versionDefines": [],
|
|
19
|
-
"noEngineReferences": false
|
|
1
|
+
{
|
|
2
|
+
"name": "TapSDK.Leaderboard.Mobile.Runtime",
|
|
3
|
+
"references": [
|
|
4
|
+
"GUID:7d5ef2062f3704e1ab74aac0e4d5a1a7",
|
|
5
|
+
"GUID:5d5e0e6899b474358a025b56eeef905d",
|
|
6
|
+
"GUID:10560023d8780423cb943c7a324b69f2"
|
|
7
|
+
],
|
|
8
|
+
"includePlatforms": [
|
|
9
|
+
"Android",
|
|
10
|
+
"iOS"
|
|
11
|
+
],
|
|
12
|
+
"excludePlatforms": [],
|
|
13
|
+
"allowUnsafeCode": false,
|
|
14
|
+
"overrideReferences": false,
|
|
15
|
+
"precompiledReferences": [],
|
|
16
|
+
"autoReferenced": true,
|
|
17
|
+
"defineConstraints": [],
|
|
18
|
+
"versionDefines": [],
|
|
19
|
+
"noEngineReferences": false
|
|
20
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 5b48e4e8b06d849a9883b3f1fb88e36d
|
|
3
|
-
AssemblyDefinitionImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 5b48e4e8b06d849a9883b3f1fb88e36d
|
|
3
|
+
AssemblyDefinitionImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|