com.taptap.sdk.update 4.5.6 → 4.5.8
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.
|
@@ -36,5 +36,19 @@ namespace TapSDK.Update.Mobile {
|
|
|
36
36
|
throw new NotImplementedException("TapUpdate::UpdateGame Only Support On Android");
|
|
37
37
|
#endif
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
public void CheckForceUpdate() {
|
|
41
|
+
#if UNITY_ANDROID
|
|
42
|
+
var command = new Command.Builder()
|
|
43
|
+
.Service(TAP_UPDATE_SERVICE)
|
|
44
|
+
.Method("checkForceUpdate")
|
|
45
|
+
.Callback(false)
|
|
46
|
+
.OnceTime(true)
|
|
47
|
+
.CommandBuilder();
|
|
48
|
+
EngineBridge.GetInstance().CallHandler(command);
|
|
49
|
+
#else
|
|
50
|
+
throw new NotImplementedException("TapUpdate::CheckUpdate Only Support On Android");
|
|
51
|
+
#endif
|
|
52
|
+
}
|
|
39
53
|
}
|
|
40
54
|
}
|
|
@@ -6,7 +6,7 @@ using System;
|
|
|
6
6
|
namespace TapSDK.Update {
|
|
7
7
|
public class TapTapUpdate {
|
|
8
8
|
|
|
9
|
-
public static readonly string Version = "4.5.
|
|
9
|
+
public static readonly string Version = "4.5.8";
|
|
10
10
|
|
|
11
11
|
static readonly ITapUpdateBridge update;
|
|
12
12
|
|
|
@@ -23,5 +23,9 @@ namespace TapSDK.Update {
|
|
|
23
23
|
public static void UpdateGame(Action onCancel) {
|
|
24
24
|
update.UpdateGame(onCancel);
|
|
25
25
|
}
|
|
26
|
+
|
|
27
|
+
public static void CheckForceUpdate() {
|
|
28
|
+
update.CheckForceUpdate();
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
}
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "com.taptap.sdk.update",
|
|
3
3
|
"displayName": "TapTapSDK Update",
|
|
4
4
|
"description": "TapTapSDK Update",
|
|
5
|
-
"version": "4.5.
|
|
5
|
+
"version": "4.5.8",
|
|
6
6
|
"unity": "2019.4",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"com.taptap.sdk.core": "4.5.
|
|
9
|
+
"com.taptap.sdk.core": "4.5.8"
|
|
10
10
|
}
|
|
11
11
|
}
|
package/link.xml
DELETED