com.taptap.sdk.login 4.5.0 → 4.5.1
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.
- package/Mobile/Editor/NativeDependencies.xml +3 -2
- package/Mobile/Runtime/TapTapLoginImpl.cs +7 -5
- package/Plugins/iOS/TapTapSDKLoginAppDelegate.mm +2 -1
- package/Runtime/Internal/Region.cs +1 -1
- package/Runtime/Public/TapTapAccount.cs +5 -5
- package/Runtime/Public/TapTapLogin.cs +1 -1
- package/Runtime/Public/TapTapSdk.cs +0 -2
- package/link.xml +4 -0
- package/link.xml.meta +7 -0
- package/package.json +2 -2
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
<repositories>
|
|
5
5
|
<repository>https://repo.maven.apache.org/maven2</repository>
|
|
6
6
|
</repositories>
|
|
7
|
-
<androidPackage spec="com.taptap.sdk:tap-login-unity:4.5.
|
|
7
|
+
<androidPackage spec="com.taptap.sdk:tap-login-unity:4.5.1"/>
|
|
8
8
|
</androidPackages>
|
|
9
9
|
<iosPods>
|
|
10
10
|
<sources>
|
|
11
11
|
<source>https://github.com/CocoaPods/Specs.git</source>
|
|
12
12
|
</sources>
|
|
13
13
|
<iosPod name="Kingfisher" version="~> 6.0" bitcodeEnabled="false" addToAllTargets="false"/>
|
|
14
|
-
<iosPod name="TapTapLoginSDK" version="~> 4.5.
|
|
14
|
+
<iosPod name="TapTapLoginSDK" version="~> 4.5.1" bitcodeEnabled="false" addToAllTargets="false"/>
|
|
15
|
+
<iosPod name="TapTapGidSDK" version="~> 4.5.1" bitcodeEnabled="false" addToAllTargets="false"/>
|
|
15
16
|
</iosPods>
|
|
16
17
|
</dependencies>
|
|
@@ -17,16 +17,18 @@ namespace TapSDK.Login.Mobile
|
|
|
17
17
|
|
|
18
18
|
private const string SERVICE_NAME = "BridgeLoginService";
|
|
19
19
|
|
|
20
|
+
public TapTapLoginImpl(){
|
|
21
|
+
EngineBridge.GetInstance().Register(
|
|
22
|
+
"com.taptap.sdk.login.unity.BridgeLoginService",
|
|
23
|
+
"com.taptap.sdk.login.unity.BridgeLoginServiceImpl");
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
public void Init(string clientId, TapTapRegionType regionType)
|
|
21
27
|
{
|
|
22
28
|
|
|
23
29
|
#if UNITY_IOS
|
|
24
30
|
RegisterTapTapSDKLoginAppDelegateListener();
|
|
25
|
-
#endif
|
|
26
|
-
|
|
27
|
-
EngineBridge.GetInstance().Register(
|
|
28
|
-
"com.taptap.sdk.login.unity.BridgeLoginService",
|
|
29
|
-
"com.taptap.sdk.login.unity.BridgeLoginServiceImpl");
|
|
31
|
+
#endif
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
public Task<TapTapAccount> Login(string[] scopes)
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
#import <UIKit/UIKit.h>
|
|
3
|
+
#import <Foundation/Foundation.h>
|
|
4
|
+
#import <TapTapBasicToolsSDK/TapTapSDKVerifyProtocol.h>
|
|
3
5
|
#import <TapTapLoginSDK/TapTapLoginSDK-Swift.h>
|
|
4
6
|
#import "UnityAppController.h"
|
|
5
|
-
#import <Foundation/Foundation.h>
|
|
6
7
|
#import <UIKit/UIKit.h>
|
|
7
8
|
#import "AppDelegateListener.h"
|
|
8
9
|
|
|
@@ -65,7 +65,7 @@ namespace TapSDK.Login.Internal
|
|
|
65
65
|
{
|
|
66
66
|
private static string webHost = "https://accounts.tapapis.com";
|
|
67
67
|
private static string apiHost = "https://open.tapapis.com";
|
|
68
|
-
private static string accountHost = "https://
|
|
68
|
+
private static string accountHost = "https://www.taptapauth.com";
|
|
69
69
|
|
|
70
70
|
public override string WebHost()
|
|
71
71
|
{
|
|
@@ -16,7 +16,7 @@ namespace TapSDK.Login
|
|
|
16
16
|
public string openId { get; }
|
|
17
17
|
|
|
18
18
|
[JsonProperty("unionid")]
|
|
19
|
-
public string
|
|
19
|
+
public string unionId { get; }
|
|
20
20
|
|
|
21
21
|
[JsonProperty("name")]
|
|
22
22
|
[CanBeNull] public string name { get; }
|
|
@@ -31,17 +31,17 @@ namespace TapSDK.Login
|
|
|
31
31
|
{
|
|
32
32
|
accessToken = new AccessToken(SafeDictionary.GetValue<Dictionary<string, object>>(dict, "access_token"));
|
|
33
33
|
openId = SafeDictionary.GetValue<string>(dict, "openid");
|
|
34
|
-
|
|
34
|
+
unionId = SafeDictionary.GetValue<string>(dict, "unionid");
|
|
35
35
|
name = SafeDictionary.GetValue<string>(dict, "name");
|
|
36
36
|
avatar = SafeDictionary.GetValue<string>(dict, "avatar");
|
|
37
37
|
email = SafeDictionary.GetValue<string>(dict, "email");
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
public TapTapAccount(AccessToken accessToken, string openId, string
|
|
40
|
+
public TapTapAccount(AccessToken accessToken, string openId, string unionId, string name, string avatar, string email)
|
|
41
41
|
{
|
|
42
42
|
this.accessToken = accessToken;
|
|
43
43
|
this.openId = openId;
|
|
44
|
-
this.
|
|
44
|
+
this.unionId = unionId;
|
|
45
45
|
this.name = name;
|
|
46
46
|
this.avatar = avatar;
|
|
47
47
|
this.email = email;
|
|
@@ -53,7 +53,7 @@ namespace TapSDK.Login
|
|
|
53
53
|
{
|
|
54
54
|
["access_token"] = accessToken.ToDict(),
|
|
55
55
|
["openid"] = openId,
|
|
56
|
-
["unionid"] =
|
|
56
|
+
["unionid"] = unionId,
|
|
57
57
|
["name"] = name,
|
|
58
58
|
["avatar"] = avatar,
|
|
59
59
|
["email"] = email
|
|
@@ -7,7 +7,7 @@ namespace TapSDK.Login
|
|
|
7
7
|
public class TapTapLogin
|
|
8
8
|
{
|
|
9
9
|
|
|
10
|
-
public static readonly string Version = "4.5.
|
|
10
|
+
public static readonly string Version = "4.5.1";
|
|
11
11
|
|
|
12
12
|
public const string TAP_LOGIN_SCOPE_BASIC_INFO = "basic_info";
|
|
13
13
|
public const string TAP_LOGIN_SCOPE_PUBLIC_PROFILE = "public_profile";
|
|
@@ -13,8 +13,6 @@ namespace TapSDK.Login.Internal
|
|
|
13
13
|
public static Region CurrentRegion { get; private set; }
|
|
14
14
|
|
|
15
15
|
public static void SDKInitialize(string clientId, bool isCn) {
|
|
16
|
-
if (string.IsNullOrEmpty(clientId))
|
|
17
|
-
throw new ArgumentException("[TapSDK] clientId is null or empty!");
|
|
18
16
|
ClientId = clientId;
|
|
19
17
|
CurrentRegion = isCn ? (Region)new RegionCN() : new RegionIO();
|
|
20
18
|
TapLocalizeManager.SetCurrentRegion(isCn);
|
package/link.xml
ADDED
package/link.xml.meta
ADDED
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "com.taptap.sdk.login",
|
|
3
3
|
"displayName": "TapTapSDK Login",
|
|
4
4
|
"description": "TapTapSDK Login",
|
|
5
|
-
"version": "4.5.
|
|
5
|
+
"version": "4.5.1",
|
|
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.1"
|
|
10
10
|
}
|
|
11
11
|
}
|