com.taptap.sdk.relation 4.8.1-beta.1 → 4.8.2

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,60 @@
1
+ using UnityEngine;
2
+ using UnityEditor;
3
+ using UnityEditor.Callbacks;
4
+ # if UNITY_IOS
5
+ using UnityEditor.iOS.Xcode;
6
+ #endif
7
+ using System.IO;
8
+ using System.Collections.Generic;
9
+ using System.Linq;
10
+ using TapSDK.Core.Editor;
11
+ using System.Diagnostics;
12
+
13
+ #if UNITY_IOS
14
+ public class BuildPostProcessor
15
+ {
16
+ [PostProcessBuild(999)]
17
+ public static void OnPostProcessBuild(BuildTarget buildTarget, string path)
18
+ {
19
+ if (buildTarget == BuildTarget.iOS)
20
+ {
21
+ var projPath = TapSDKCoreCompile.GetProjPath(path);
22
+ var proj = TapSDKCoreCompile.ParseProjPath(projPath);
23
+ var target = TapSDKCoreCompile.GetUnityTarget(proj);
24
+
25
+ if (TapSDKCoreCompile.CheckTarget(target))
26
+ {
27
+ UnityEngine.Debug.LogError("Unity-iPhone is NUll");
28
+ return;
29
+ }
30
+ if (TapSDKCoreCompile.HandlerIOSSetting(path,
31
+ Application.dataPath,
32
+ "TapTapRelationResource",
33
+ "com.taptap.sdk.relation",
34
+ "Relation",
35
+ new[] { "TapTapRelationResource.bundle" },
36
+ target, projPath, proj,
37
+ "TapTapRelationSDK"))
38
+ {
39
+ UnityEngine.Debug.Log("TapRelation add Bundle Success!");
40
+ }
41
+ if (TapSDKCoreCompile.HandlerIOSSetting(path,
42
+ Application.dataPath,
43
+ "TapTapProfileResource",
44
+ "com.taptap.sdk.profile",
45
+ "Profile",
46
+ new[] { "TapTapProfileResource.bundle" },
47
+ target, projPath, proj,
48
+ "TapTapProfileSDK"))
49
+ {
50
+ UnityEngine.Debug.Log("TapProfile add Bundle Success!");
51
+ TapSDKCoreCompile.ExecutePodCommand("pod deintegrate && pod install", path);
52
+ return;
53
+ }
54
+
55
+ UnityEngine.Debug.LogWarning("TapRelation add Bundle Failed!");
56
+ }
57
+ }
58
+
59
+ }
60
+ #endif
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 1284e1e45a0b345e1addad236f8b6759
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,9 +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-relation-unity:4.8.1-beta.1"/>
7
+ <androidPackage spec="com.taptap.sdk:tap-relation-unity:4.8.2"/>
8
8
  </androidPackages>
9
+ <iosPods>
10
+ <sources>
11
+ <source>https://github.com/CocoaPods/Specs.git</source>
12
+ </sources>
13
+ <iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapRelationSDK" version="4.8.2"/>
14
+ </iosPods>
9
15
  </dependencies>
@@ -6,7 +6,8 @@
6
6
  "GUID:6f33d8db82c9445088544f91d41e65a2"
7
7
  ],
8
8
  "includePlatforms": [
9
- "Android"
9
+ "Android",
10
+ "iOS"
10
11
  ],
11
12
  "excludePlatforms": [],
12
13
  "allowUnsafeCode": false,
@@ -28,24 +28,7 @@ namespace TapSDK.Relation.Mobile
28
28
 
29
29
  public void Init(string clientId, TapTapRegionType regionType, int screenOrientation)
30
30
  {
31
- EngineBridge.GetInstance().CallHandler(new Command.Builder()
32
- .Service(SERVICE_NAME)
33
- .Method("setOrientation")
34
- .Args("orientation", screenOrientation)
35
- .Callback(false)
36
- .OnceTime(true)
37
- .CommandBuilder());
38
- }
39
31
 
40
- public void SetOrientation(int orientation)
41
- {
42
- EngineBridge.GetInstance().CallHandler(new Command.Builder()
43
- .Service(SERVICE_NAME)
44
- .Method("setOrientation")
45
- .Args("orientation", orientation)
46
- .Callback(false)
47
- .OnceTime(true)
48
- .CommandBuilder());
49
32
  }
50
33
 
51
34
  public void StartMessenger()
@@ -32,11 +32,6 @@ namespace TapSDK.Relation.Internal
32
32
  platformWrapper?.Init(clientId, regionType, screenOrientation);
33
33
  }
34
34
 
35
- public void SetOrientation(int orientation)
36
- {
37
- platformWrapper?.SetOrientation(orientation);
38
- }
39
-
40
35
  public void StartMessenger()
41
36
  {
42
37
  platformWrapper?.StartMessenger();
@@ -7,8 +7,6 @@ namespace TapSDK.Relation
7
7
  {
8
8
  void Init(string clientId, TapTapRegionType regionType, int orientation);
9
9
 
10
- void SetOrientation(int orientation);
11
-
12
10
  void StartMessenger();
13
11
 
14
12
  void Prepare();
@@ -20,11 +20,6 @@ namespace TapSDK.Relation
20
20
  TapTapRelationManager.Instance.Init(clientId, regionType, screenOrientation);
21
21
  }
22
22
 
23
- public static void SetOrientation(int orientation)
24
- {
25
- TapTapRelationManager.Instance.SetOrientation(orientation);
26
- }
27
-
28
23
  public static void StartMessenger()
29
24
  {
30
25
  TapTapRelationManager.Instance.StartMessenger();
@@ -76,7 +71,8 @@ namespace TapSDK.Relation
76
71
  }
77
72
 
78
73
 
79
- public static readonly string Version = "4.8.1-beta.1";
74
+ public static readonly string Version = "4.8.2";
75
+
80
76
 
81
77
  }
82
78
  }
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.8.1-beta.1",
5
+ "version": "4.8.2",
6
6
  "unity": "2019.4",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.taptap.sdk.core": "4.8.1-beta.1",
10
- "com.taptap.sdk.login": "4.8.1-beta.1"
9
+ "com.taptap.sdk.core": "4.8.2",
10
+ "com.taptap.sdk.login": "4.8.2"
11
11
  }
12
12
  }