com.taptap.sdk.update 4.3.0-aplha.13

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.
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <dependencies>
3
+
4
+ <!-- Android maven dependencies -->Ï
5
+ <androidPackages>
6
+ <repositories>
7
+ <repository>https://repo.maven.apache.org/maven2</repository>
8
+ </repositories>
9
+ <androidPackage spec="com.taptap.sdk:tap-update:4.3.0"/>
10
+ </androidPackages>
11
+
12
+ <!-- iOS Cocoapod dependencies can be specified by each iosPod element. -->
13
+
14
+ </dependencies>
15
+
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: ace66fcf51cb49098d87d1794521a640
3
+ timeCreated: 1697443591
@@ -0,0 +1,58 @@
1
+ {
2
+ "Version": 1,
3
+ "Use": true,
4
+ "AndroidGradleContext": [
5
+ {
6
+ "locationType": 1,
7
+ "unityVersionCompatibleType": 1,
8
+ "templateType": 6,
9
+ "processType": 1,
10
+ "locationParam": "ADDITIONAL_PROPERTIES",
11
+ "processContent": [
12
+ "android.useAndroidX=true"
13
+ ]
14
+ },
15
+ {
16
+ "locationType": 2,
17
+ "unityVersionCompatibleType": 0,
18
+ "templateType": 5,
19
+ "processType": 2,
20
+ "locationParam": "classpath 'com.android.tools.build:gradle:3.\\d{1}.\\d{1}'",
21
+ "processContent": [
22
+ "classpath 'com.android.tools.build:gradle:4.0.1'"
23
+ ]
24
+ },
25
+ {
26
+ "locationType": 2,
27
+ "unityVersionCompatibleType": 0,
28
+ "templateType": 5,
29
+ "processType": 2,
30
+ "locationParam": "classpath 'com.android.tools.build:gradle:4.0.0'",
31
+ "processContent": [
32
+ "classpath 'com.android.tools.build:gradle:4.0.1'"
33
+ ]
34
+ },
35
+ {
36
+ "locationType": 2,
37
+ "unityVersionCompatibleType": 0,
38
+ "templateType": 5,
39
+ "processType": 2,
40
+ "locationParam": "classpath 'com.android.tools.build:gradle:3.\\d{1}.\\d{1}'",
41
+ "processContent": [
42
+ "classpath 'com.android.tools.build:gradle:4.0.1'"
43
+ ]
44
+ },
45
+ {
46
+ "locationType": 2,
47
+ "unityVersionCompatibleType": 0,
48
+ "templateType": 5,
49
+ "processType": 2,
50
+ "locationParam": "classpath 'com.android.tools.build:gradle:4.0.0'",
51
+ "processContent": [
52
+ "classpath 'com.android.tools.build:gradle:4.0.1'"
53
+ ]
54
+ }
55
+ ],
56
+ "Priority": 2,
57
+ "ModuleName": "TapTap.Update"
58
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 09fd789792d3d4d4288283472ae863f1
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "TapSDK.Update.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
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: e5a0316139d1641d1b44cddbbf8bd1d0
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,20 @@
1
+ using System;
2
+ using UnityEditor.Build.Reporting;
3
+ using TapSDK.Core.Editor;
4
+
5
+ namespace TapSDK.Update.Mobile.Editor {
6
+ public class TapUpdateMobileProcessBuild : SDKLinkProcessBuild {
7
+ public override int callbackOrder => 0;
8
+
9
+ public override string LinkPath => "TapSDK/Update/link.xml";
10
+
11
+ public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
12
+ // new LinkedAssembly { Fullname = "TapSDK.Update.Runtime" },
13
+ new LinkedAssembly { Fullname = "TapSDK.Update.Mobile.Runtime" }
14
+ };
15
+
16
+ public override Func<BuildReport, bool> IsTargetPlatform => (report) => {
17
+ return BuildTargetUtils.IsSupportMobile(report.summary.platform);
18
+ };
19
+ }
20
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 4822fbf962ab14678917d0ad5c3a9f2b
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: b6c5ed9e03f534535a4e16671bd31bc7
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "TapSDK.Update.Mobile.Runtime",
3
+ "references": [
4
+ "GUID:89a99d04b975e4813bb096587570e125",
5
+ "GUID:7d5ef2062f3704e1ab74aac0e4d5a1a7",
6
+ "GUID:10560023d8780423cb943c7a324b69f2",
7
+ "GUID:70428f3d1346341e18f02c35874af89a"
8
+ ],
9
+ "includePlatforms": [
10
+ "Android",
11
+ "iOS"
12
+ ],
13
+ "excludePlatforms": [],
14
+ "allowUnsafeCode": false,
15
+ "overrideReferences": false,
16
+ "precompiledReferences": [],
17
+ "autoReferenced": true,
18
+ "defineConstraints": [],
19
+ "versionDefines": [],
20
+ "noEngineReferences": false
21
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: c49a2cd7c78814014893ac55d434aa00
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,40 @@
1
+ using System.Collections.Generic;
2
+ using TapSDK.Core;
3
+ using System;
4
+ using TapSDK.Update.Internal;
5
+
6
+ namespace TapSDK.Update.Mobile {
7
+ public class TapUpdateMobile : ITapUpdateBridge {
8
+ public static string TAP_UPDATE_SERVICE = "BridgeUpdateService";
9
+
10
+ public static string TDS_UPDATE_SERVICE_CLZ = "com.taptap.sdk.update.enginebridge.BridgeUpdateService";
11
+
12
+ public static string TDS_UPDATE_SERVICE_IMPL = "com.taptap.sdk.update.enginebridge.BridgeUpdateServiceImpl";
13
+
14
+ public TapUpdateMobile() {
15
+ EngineBridge.GetInstance().Register(TDS_UPDATE_SERVICE_CLZ, TDS_UPDATE_SERVICE_IMPL);
16
+ }
17
+
18
+ public void Init(string clientId, string clientToken) {}
19
+
20
+ public void UpdateGame(Action onCancel) {
21
+ #if UNITY_ANDROID
22
+ var command = new Command.Builder()
23
+ .Service(TAP_UPDATE_SERVICE)
24
+ .Method("updateGame")
25
+ .Callback(true)
26
+ .OnceTime(false)
27
+ .CommandBuilder();
28
+ EngineBridge.GetInstance().CallHandler(command, (result) => {
29
+ UnityEngine.Debug.LogFormat("TapUpdate::UpdateGame result:{0}", result.ToJSON());
30
+ if (result.code == Result.RESULT_SUCCESS && result.content.ToLower().Contains("cancel")) {
31
+ onCancel?.Invoke();
32
+ return;
33
+ }
34
+ });
35
+ #else
36
+ throw new NotImplementedException("TapUpdate::UpdateGame Only Support On Android");
37
+ #endif
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: a2cf04f8bf36b4587a3d9914888b9474
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 158f6156d382c401fba0eaf08270cecb
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
package/Mobile.meta ADDED
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 89a8212d05b9547a09eafef9bf6b5e10
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ using System;
2
+
3
+ namespace TapSDK.Update.Internal {
4
+ public interface ITapUpdateBridge {
5
+ void Init(string clientId, string clientToken);
6
+ void UpdateGame(Action onCancel);
7
+ }
8
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: bf7083c16fcd34b33a70c3bc6a5f7894
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,25 @@
1
+ using TapSDK.Core;
2
+ using TapSDK.Core.Internal.Init;
3
+ using TapSDK.Update;
4
+
5
+ namespace TapSDK.Update.Internal.Init {
6
+ public sealed class TapUpdateInitTask : IInitTask {
7
+ public int Order => 14;
8
+
9
+ public void Init(TapTapSDKCoreOptions coreOption){
10
+ #if !UNITY_EDITOR && UNITY_ANDROID
11
+ TapTapUpdate.Init(coreOption.clientId, coreOption.clientToken);
12
+ #endif
13
+
14
+ }
15
+
16
+ public void Init(TapTapSDKCoreOptions coreOption, TapTapSDKBaseOption[] otherOptions)
17
+ {
18
+ #if !UNITY_EDITOR && UNITY_ANDROID
19
+ TapTapUpdate.Init(coreOption.clientId, coreOption.clientToken);
20
+ #endif
21
+ }
22
+
23
+
24
+ }
25
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 387e96933954b4ded938dcc9de540f01
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 296b6c9bf0482459ab0f8b934773e0bc
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,24 @@
1
+ using TapSDK.Update.Internal;
2
+ using TapSDK.Core.Internal.Utils;
3
+ using TapSDK.Core;
4
+ using System;
5
+
6
+ namespace TapSDK.Update {
7
+ public class TapTapUpdate {
8
+ static readonly ITapUpdateBridge update;
9
+
10
+ static TapTapUpdate() {
11
+ update = BridgeUtils.CreateBridgeImplementation(typeof(ITapUpdateBridge), "TapSDK.Update")
12
+ as ITapUpdateBridge;
13
+ }
14
+
15
+ internal static void Init(string clientId, string clientToken)
16
+ {
17
+ update.Init(clientId, clientToken);
18
+ }
19
+
20
+ public static void UpdateGame(Action onCancel) {
21
+ update.UpdateGame(onCancel);
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: f990550c61603459ea267b4af8b941cc
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 2cef3f829543c4bc78a8dd18286faf3e
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "TapSDK.Update.Runtime",
3
+ "references": [
4
+ "GUID:7d5ef2062f3704e1ab74aac0e4d5a1a7"
5
+ ],
6
+ "includePlatforms": [],
7
+ "excludePlatforms": [],
8
+ "allowUnsafeCode": false,
9
+ "overrideReferences": false,
10
+ "precompiledReferences": [],
11
+ "autoReferenced": true,
12
+ "defineConstraints": [],
13
+ "versionDefines": [],
14
+ "noEngineReferences": false
15
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 70428f3d1346341e18f02c35874af89a
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/Runtime.meta ADDED
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 1414e6505dd9d4be38d2432f96b6360b
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "com.taptap.sdk.update",
3
+ "displayName": "TapTapSDK Update",
4
+ "description": "TapTap Develop Service",
5
+ "version": "4.3.0-aplha.13",
6
+ "unity": "2019.4",
7
+ "license": "MIT",
8
+ "dependencies": {
9
+ "com.taptap.sdk.core": "4.3.0-aplha.13"
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 81dae3181664544f1ad332a88abaad90
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant: