com.taptap.sdk.login 4.5.2 → 4.5.3
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,14 +4,13 @@
|
|
|
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.3"/>
|
|
8
8
|
</androidPackages>
|
|
9
9
|
<iosPods>
|
|
10
10
|
<sources>
|
|
11
11
|
<source>https://github.com/CocoaPods/Specs.git</source>
|
|
12
12
|
</sources>
|
|
13
|
-
<iosPod name="
|
|
14
|
-
<iosPod name="
|
|
15
|
-
<iosPod name="TapTapGidSDK" version="~> 4.5.2" bitcodeEnabled="false" addToAllTargets="false"/>
|
|
13
|
+
<iosPod name="TapTapLoginSDK" version="~> 4.5.3" bitcodeEnabled="false" addToAllTargets="false"/>
|
|
14
|
+
<iosPod name="TapTapGidSDK" version="~> 4.5.3" bitcodeEnabled="false" addToAllTargets="false"/>
|
|
16
15
|
</iosPods>
|
|
17
16
|
</dependencies>
|
|
@@ -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.3";
|
|
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";
|
|
@@ -85,21 +85,27 @@ namespace TapSDK.Login.Internal
|
|
|
85
85
|
macAlgorithm = tokenData.MacAlgorithm,
|
|
86
86
|
scopeSet = tokenData.Scopes
|
|
87
87
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
try{
|
|
89
|
+
ProfileData profileData = await LoginService.GetProfile(TapTapSdk.ClientId, refreshToken);
|
|
90
|
+
if (profileData != null)
|
|
91
|
+
{
|
|
92
|
+
TapLoginTracker.Instance.TrackSuccess("loginWithScopes", sessionId, loginType);
|
|
93
|
+
AccountManager.Instance.Account = new TapTapAccount(
|
|
94
|
+
refreshToken, profileData.OpenId, profileData.UnionId, profileData.Name, profileData.Avatar,
|
|
95
|
+
profileData.Email);
|
|
96
|
+
IsLogging = false;
|
|
97
|
+
tcs.TrySetResult(AccountManager.Instance.Account);
|
|
98
|
+
}
|
|
99
|
+
else
|
|
100
|
+
{
|
|
101
|
+
TapLoginTracker.Instance.TrackFailure("loginWithScopes", sessionId, loginType, (int) TapErrorCode.ERROR_CODE_UNDEFINED, "UnKnow Error");
|
|
102
|
+
IsLogging = false;
|
|
103
|
+
tcs.TrySetException(new TapException((int) TapErrorCode.ERROR_CODE_UNDEFINED, "UnKnow Error"));
|
|
104
|
+
}
|
|
105
|
+
} catch(Exception e) {
|
|
100
106
|
TapLoginTracker.Instance.TrackFailure("loginWithScopes", sessionId, loginType, (int) TapErrorCode.ERROR_CODE_UNDEFINED, "UnKnow Error");
|
|
101
107
|
IsLogging = false;
|
|
102
|
-
tcs.TrySetException(new TapException((int) TapErrorCode.ERROR_CODE_UNDEFINED, "UnKnow Error"));
|
|
108
|
+
tcs.TrySetException(new TapException((int) TapErrorCode.ERROR_CODE_UNDEFINED, "UnKnow Error " + e.Message));
|
|
103
109
|
}
|
|
104
110
|
}
|
|
105
111
|
},
|
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.3",
|
|
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.3"
|
|
10
10
|
}
|
|
11
11
|
}
|