com.taptap.sdk.moment 4.8.0-beta.1 → 4.8.1
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.
|
@@ -1,15 +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-moment-unity:4.8.
|
|
7
|
+
<androidPackage spec="com.taptap.sdk:tap-moment-unity:4.8.1-beta.7"/>
|
|
8
8
|
</androidPackages>
|
|
9
9
|
<iosPods>
|
|
10
10
|
<sources>
|
|
11
11
|
<source>https://github.com/CocoaPods/Specs.git</source>
|
|
12
12
|
</sources>
|
|
13
|
-
<iosPod
|
|
13
|
+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapMomentSDK" version="4.8.1-beta.7"/>
|
|
14
14
|
</iosPods>
|
|
15
15
|
</dependencies>
|
|
@@ -6,6 +6,7 @@ using UnityEngine;
|
|
|
6
6
|
using System.Collections.Generic;
|
|
7
7
|
using Newtonsoft.Json;
|
|
8
8
|
using System.Runtime.InteropServices;
|
|
9
|
+
using TapSDK.Core.Internal.Log;
|
|
9
10
|
#if UNITY_IOS
|
|
10
11
|
using UnityEngine.iOS;
|
|
11
12
|
#endif
|
|
@@ -82,7 +83,7 @@ namespace TapSDK.Moment.Mobile
|
|
|
82
83
|
public void Publish(PublishMetaData publishMetaData)
|
|
83
84
|
{
|
|
84
85
|
string json = JsonConvert.SerializeObject(publishMetaData);
|
|
85
|
-
|
|
86
|
+
TapLog.Log("Moment -->> PublishMetaData json = " + json);
|
|
86
87
|
EngineBridge.GetInstance().CallHandler(new Command.Builder()
|
|
87
88
|
.Service(SERVICE_NAME)
|
|
88
89
|
.Method("publish")
|
|
@@ -125,7 +126,7 @@ namespace TapSDK.Moment.Mobile
|
|
|
125
126
|
var code = SafeDictionary.GetValue<int>(dic, "code");
|
|
126
127
|
var msg = SafeDictionary.GetValue<string>(dic, "msg");
|
|
127
128
|
//
|
|
128
|
-
|
|
129
|
+
TapLog.Log("TapSdk4UnityDemo -->> Callback code = " + code + " , msg = " + msg);
|
|
129
130
|
callback(code, msg);
|
|
130
131
|
});
|
|
131
132
|
}
|
|
@@ -4,6 +4,7 @@ using UnityEngine;
|
|
|
4
4
|
using TapSDK.Core;
|
|
5
5
|
using TapSDK.Moment.Internal;
|
|
6
6
|
using TapSDK.Moment;
|
|
7
|
+
using TapSDK.Core.Internal.Log;
|
|
7
8
|
|
|
8
9
|
namespace TapSDK.Moment.Standalone
|
|
9
10
|
{
|
|
@@ -12,48 +13,48 @@ namespace TapSDK.Moment.Standalone
|
|
|
12
13
|
|
|
13
14
|
public void OpenMoment()
|
|
14
15
|
{
|
|
15
|
-
|
|
16
|
+
TapLog.Warning($" Moment {nameof(OpenMoment)} NOT implemented.");
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
public void OpenScene(string sceneId)
|
|
19
20
|
{
|
|
20
|
-
|
|
21
|
+
TapLog.Warning($" Moment {nameof(OpenScene)} NOT implemented.");
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
public void Init(string clientId, TapTapRegionType regionType)
|
|
24
25
|
{
|
|
25
|
-
|
|
26
|
+
TapLog.Warning($" Moment {nameof(Init)} NOT implemented.");
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
public void Close()
|
|
29
30
|
{
|
|
30
|
-
|
|
31
|
+
TapLog.Warning($" Moment {nameof(Close)} NOT implemented.");
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
public void CloseWithConfirmWindow(string title, string content)
|
|
34
35
|
{
|
|
35
|
-
|
|
36
|
+
TapLog.Warning($" Moment {nameof(CloseWithConfirmWindow)} NOT implemented.");
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
public void FetchNotification()
|
|
39
40
|
{
|
|
40
|
-
|
|
41
|
+
TapLog.Warning($" Moment {nameof(FetchNotification)} NOT implemented.");
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
public void Publish(PublishMetaData publishMetaData)
|
|
45
46
|
{
|
|
46
|
-
|
|
47
|
+
TapLog.Warning($" Moment {nameof(Publish)} NOT implemented.");
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
public void SetCallback(Action<int, string> callback)
|
|
50
51
|
{
|
|
51
|
-
|
|
52
|
+
TapLog.Warning($" Moment {nameof(SetCallback)} NOT implemented.");
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
public void SetGameScreenAutoRotate(bool isAutoRotate)
|
|
55
56
|
{
|
|
56
|
-
|
|
57
|
+
TapLog.Warning($" Moment {nameof(SetGameScreenAutoRotate)} NOT implemented.");
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|
package/link.xml.meta
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "com.taptap.sdk.moment",
|
|
3
|
+
"displayName": "TapTapSDK Moment",
|
|
4
|
+
"description": "TapTapSDK Moment",
|
|
5
|
+
"version": "4.8.1",
|
|
6
|
+
"unity": "2019.4",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"com.taptap.sdk.core": "4.8.1",
|
|
10
|
+
"com.taptap.sdk.login": "4.8.1"
|
|
11
|
+
}
|
|
12
12
|
}
|