com.taptap.sdk.relation 4.8.1-beta.1 → 4.8.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 +60 -0
- package/Mobile/Editor/BuidPostProcessor.cs.meta +11 -0
- package/Mobile/Editor/NativeDependencies.xml +8 -2
- package/Mobile/Runtime/TapSDK.Relation.Mobile.Runtime.asmdef +2 -1
- package/Mobile/Runtime/TapTapRelationImpl.cs +0 -17
- package/Runtime/Internal/TapTapRelationManager.cs +0 -5
- package/Runtime/Public/ITapTapRelation.cs +0 -2
- package/Runtime/Public/TapTapRelation.cs +2 -6
- package/package.json +3 -3
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
"TapTapRelationResource",
|
|
33
|
+
"com.taptap.sdk.relation",
|
|
34
|
+
"Relation",
|
|
35
|
+
new[] { "TapTapRelationResource.bundle" },
|
|
36
|
+
target, projPath, proj,
|
|
37
|
+
"TapTapRelationSDK"))
|
|
38
|
+
{
|
|
39
|
+
UnityEngine.Debug.Log("TapRelation add Bundle Success!");
|
|
40
|
+
}
|
|
41
|
+
if (TapSDKCoreCompile.HandlerIOSSetting(path,
|
|
42
|
+
Application.dataPath,
|
|
43
|
+
"TapTapProfileResource",
|
|
44
|
+
"com.taptap.sdk.profile",
|
|
45
|
+
"Profile",
|
|
46
|
+
new[] { "TapTapProfileResource.bundle" },
|
|
47
|
+
target, projPath, proj,
|
|
48
|
+
"TapTapProfileSDK"))
|
|
49
|
+
{
|
|
50
|
+
UnityEngine.Debug.Log("TapProfile add Bundle Success!");
|
|
51
|
+
TapSDKCoreCompile.ExecutePodCommand("pod deintegrate && pod install", path);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
UnityEngine.Debug.LogWarning("TapRelation add Bundle Failed!");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
#endif
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
<?xml version="1.0" ?>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
2
|
<dependencies>
|
|
3
3
|
<androidPackages>
|
|
4
4
|
<repositories>
|
|
5
5
|
<repository>https://repo.maven.apache.org/maven2</repository>
|
|
6
6
|
</repositories>
|
|
7
|
-
<androidPackage spec="com.taptap.sdk:tap-relation-unity:4.8.
|
|
7
|
+
<androidPackage spec="com.taptap.sdk:tap-relation-unity:4.8.2"/>
|
|
8
8
|
</androidPackages>
|
|
9
|
+
<iosPods>
|
|
10
|
+
<sources>
|
|
11
|
+
<source>https://github.com/CocoaPods/Specs.git</source>
|
|
12
|
+
</sources>
|
|
13
|
+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapRelationSDK" version="4.8.2"/>
|
|
14
|
+
</iosPods>
|
|
9
15
|
</dependencies>
|
|
@@ -28,24 +28,7 @@ namespace TapSDK.Relation.Mobile
|
|
|
28
28
|
|
|
29
29
|
public void Init(string clientId, TapTapRegionType regionType, int screenOrientation)
|
|
30
30
|
{
|
|
31
|
-
EngineBridge.GetInstance().CallHandler(new Command.Builder()
|
|
32
|
-
.Service(SERVICE_NAME)
|
|
33
|
-
.Method("setOrientation")
|
|
34
|
-
.Args("orientation", screenOrientation)
|
|
35
|
-
.Callback(false)
|
|
36
|
-
.OnceTime(true)
|
|
37
|
-
.CommandBuilder());
|
|
38
|
-
}
|
|
39
31
|
|
|
40
|
-
public void SetOrientation(int orientation)
|
|
41
|
-
{
|
|
42
|
-
EngineBridge.GetInstance().CallHandler(new Command.Builder()
|
|
43
|
-
.Service(SERVICE_NAME)
|
|
44
|
-
.Method("setOrientation")
|
|
45
|
-
.Args("orientation", orientation)
|
|
46
|
-
.Callback(false)
|
|
47
|
-
.OnceTime(true)
|
|
48
|
-
.CommandBuilder());
|
|
49
32
|
}
|
|
50
33
|
|
|
51
34
|
public void StartMessenger()
|
|
@@ -32,11 +32,6 @@ namespace TapSDK.Relation.Internal
|
|
|
32
32
|
platformWrapper?.Init(clientId, regionType, screenOrientation);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
public void SetOrientation(int orientation)
|
|
36
|
-
{
|
|
37
|
-
platformWrapper?.SetOrientation(orientation);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
35
|
public void StartMessenger()
|
|
41
36
|
{
|
|
42
37
|
platformWrapper?.StartMessenger();
|
|
@@ -20,11 +20,6 @@ namespace TapSDK.Relation
|
|
|
20
20
|
TapTapRelationManager.Instance.Init(clientId, regionType, screenOrientation);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
public static void SetOrientation(int orientation)
|
|
24
|
-
{
|
|
25
|
-
TapTapRelationManager.Instance.SetOrientation(orientation);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
23
|
public static void StartMessenger()
|
|
29
24
|
{
|
|
30
25
|
TapTapRelationManager.Instance.StartMessenger();
|
|
@@ -76,7 +71,8 @@ namespace TapSDK.Relation
|
|
|
76
71
|
}
|
|
77
72
|
|
|
78
73
|
|
|
79
|
-
public static readonly string Version = "4.8.
|
|
74
|
+
public static readonly string Version = "4.8.2";
|
|
75
|
+
|
|
80
76
|
|
|
81
77
|
}
|
|
82
78
|
}
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"name": "com.taptap.sdk.relation",
|
|
3
3
|
"displayName": "TapTapSDK Relation",
|
|
4
4
|
"description": "TapTapSDK Relation",
|
|
5
|
-
"version": "4.8.
|
|
5
|
+
"version": "4.8.2",
|
|
6
6
|
"unity": "2019.4",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"com.taptap.sdk.core": "4.8.
|
|
10
|
-
"com.taptap.sdk.login": "4.8.
|
|
9
|
+
"com.taptap.sdk.core": "4.8.2",
|
|
10
|
+
"com.taptap.sdk.login": "4.8.2"
|
|
11
11
|
}
|
|
12
12
|
}
|