com.taptap.sdk.update 4.5.7 → 4.5.9

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.
@@ -4,6 +4,6 @@
4
4
  <repositories>
5
5
  <repository>https://repo.maven.apache.org/maven2</repository>
6
6
  </repositories>
7
- <androidPackage spec="com.taptap.sdk:tap-update:4.5.7"/>
7
+ <androidPackage spec="com.taptap.sdk:tap-update:4.5.9"/>
8
8
  </androidPackages>
9
9
  </dependencies>
@@ -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
  }
@@ -4,5 +4,6 @@ namespace TapSDK.Update.Internal {
4
4
  public interface ITapUpdateBridge {
5
5
  void Init(string clientId, string clientToken);
6
6
  void UpdateGame(Action onCancel);
7
+ void CheckForceUpdate();
7
8
  }
8
9
  }
@@ -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.7";
9
+ public static readonly string Version = "4.5.9";
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/link.xml.meta CHANGED
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: c49caa552d1904b6db1b4688c02f5b09
2
+ guid: acb36513c96884f179876b4656dde55c
3
3
  TextScriptImporter:
4
4
  externalObjects: {}
5
5
  userData:
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.7",
5
+ "version": "4.5.9",
6
6
  "unity": "2019.4",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.taptap.sdk.core": "4.5.7"
9
+ "com.taptap.sdk.core": "4.5.9"
10
10
  }
11
11
  }