com.taptap.sdk.relation 4.6.0-beta.1 → 4.6.1-beta.10

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-relation-unity:4.6.0-beta.1"/>
7
+ <androidPackage spec="com.taptap.sdk:tap-relation-unity:4.6.1-beta.10"/>
8
8
  </androidPackages>
9
9
  </dependencies>
@@ -1,20 +1,24 @@
1
- using System;
2
- using UnityEditor.Build.Reporting;
3
- using TapSDK.Core.Editor;
4
-
5
- namespace TapTap.Relation.Mobile.Editor {
6
- public class TapRelationMobileProcessBuild : SDKLinkProcessBuild {
7
- public override int callbackOrder => 0;
8
-
9
- public override string LinkPath => "TapSDK/Relation/link.xml";
10
-
11
- public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
12
- new LinkedAssembly { Fullname = "TapTap.Relation.Runtime" },
13
- new LinkedAssembly { Fullname = "TapTap.Relation.Mobile.Runtime" }
14
- };
15
-
16
- public override Func<BuildReport, bool> IsTargetPlatform => (report) => {
17
- return BuildTargetUtils.IsSupportMobile(report.summary.platform);
18
- };
19
- }
20
- }
1
+ using System;
2
+ using UnityEditor.Build.Reporting;
3
+ using TapSDK.Core.Editor;
4
+
5
+ namespace TapSDK.Relation.Mobile.Editor {
6
+ /// <summary>
7
+ /// 处理 TapSDK Relation 模块在移动平台的构建过程
8
+ /// 确保正确的程序集被包含在构建中
9
+ /// </summary>
10
+ public class TapRelationMobileProcessBuild : SDKLinkProcessBuild {
11
+ public override int callbackOrder => 0;
12
+
13
+ public override string LinkPath => "TapSDK/Relation/link.xml";
14
+
15
+ public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
16
+ new LinkedAssembly { Fullname = "TapSDK.Relation.Runtime" },
17
+ new LinkedAssembly { Fullname = "TapSDK.Relation.Mobile.Runtime" }
18
+ };
19
+
20
+ public override Func<BuildReport, bool> IsTargetPlatform => (report) => {
21
+ return BuildTargetUtils.IsSupportMobile(report.summary.platform);
22
+ };
23
+ }
24
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "TapTap.Relation.Mobile.Editor",
2
+ "name": "TapSDK.Relation.Mobile.Editor",
3
3
  "references": [
4
4
  "GUID:56f3da7a178484843974054bafe77e73"
5
5
  ],
@@ -1,6 +1,5 @@
1
1
  using TapSDK.Core;
2
2
  using TapSDK.Core.Internal.Init;
3
- using UnityEngine;
4
3
 
5
4
  namespace TapSDK.Relation.Internal.Init {
6
5
  public class RelationInitTask : IInitTask {
@@ -8,7 +7,6 @@ namespace TapSDK.Relation.Internal.Init {
8
7
 
9
8
  public void Init(TapTapSdkOptions coreOption, TapTapSdkBaseOptions[] otherOptions)
10
9
  {
11
- Debug.LogWarningFormat("[TapSDK-init]Relation task init: " + "clientId=" + coreOption.clientId + ", region=" + coreOption.region + ", screenOrientation=" + coreOption.screenOrientation);
12
10
  TapTapRelationManager.Instance.Init(coreOption.clientId, coreOption.region, coreOption.screenOrientation);
13
11
  }
14
12
 
@@ -1,7 +1,6 @@
1
1
  using System;
2
2
  using TapSDK.Core;
3
3
  using TapSDK.Core.Internal.Utils;
4
- using UnityEngine;
5
4
 
6
5
  namespace TapSDK.Relation.Internal
7
6
  {
@@ -12,10 +11,9 @@ namespace TapSDK.Relation.Internal
12
11
 
13
12
  private TapTapRelationManager()
14
13
  {
15
- Debug.LogWarningFormat("[TapSDK-init]create TapTapRelationManager");
14
+
16
15
  platformWrapper = BridgeUtils.CreateBridgeImplementation(typeof(ITapTapRelation),
17
16
  "TapSDK.Relation") as ITapTapRelation;
18
- Debug.LogWarningFormat("[TapSDK-init]created TapTapRelationManager: " + platformWrapper);
19
17
  }
20
18
 
21
19
  public static TapTapRelationManager Instance
@@ -30,18 +28,7 @@ namespace TapSDK.Relation.Internal
30
28
  }
31
29
  }
32
30
 
33
- public void Init(string clientId, TapTapRegionType regionType, int screenOrientation)
34
- {
35
- if (platformWrapper == null)
36
- {
37
- Debug.LogErrorFormat("[TapSDK-init]relation platformWrapper is null");
38
- }
39
- else
40
- {
41
- Debug.LogErrorFormat("[TapSDK-init]relation platformWrapper is not null");
42
- }
43
- platformWrapper.Init(clientId, regionType, screenOrientation);
44
- }
31
+ public void Init(string clientId, TapTapRegionType regionType, int screenOrientation) => platformWrapper.Init(clientId, regionType, screenOrientation);
45
32
 
46
33
  public void SetOrientation(int orientation)
47
34
  {
@@ -76,7 +76,7 @@ namespace TapSDK.Relation
76
76
  }
77
77
 
78
78
 
79
- public static readonly string Version = "4.6.0-beta.1";
79
+ public static readonly string Version = "4.6.1-beta.10";
80
80
 
81
81
 
82
82
  }
package/link.xml ADDED
@@ -0,0 +1,4 @@
1
+ <linker>
2
+ <assembly fullname="TapSDK.Relation.Runtime" preserve="all" />
3
+ <assembly fullname="TapSDK.Relation.Mobile.Runtime" preserve="all" />
4
+ </linker>
package/link.xml.meta ADDED
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 547ca9b4414534e74a91094f970b7507
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
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.6.0-beta.1",
5
+ "version": "4.6.1-beta.10",
6
6
  "unity": "2019.4",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.taptap.sdk.core": "4.6.0-beta.1",
10
- "com.taptap.sdk.login": "4.6.0-beta.1"
9
+ "com.taptap.sdk.core": "4.6.1-beta.10",
10
+ "com.taptap.sdk.login": "4.6.1-beta.10"
11
11
  }
12
12
  }