com.taptap.sdk.login 4.9.1 → 4.9.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,12 +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.9.1"/>
7
+ <androidPackage spec="com.taptap.sdk:tap-login-unity:4.9.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 addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Login" version="4.9.1"/>
13
+ <iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Login" version="4.9.3"/>
14
+ <iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Gid" version="4.9.3"/>
14
15
  </iosPods>
15
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.9.1";
10
+ public static readonly string Version = "4.9.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";
@@ -13,24 +13,23 @@ namespace TapSDK.Login.Internal
13
13
  string codeChallenge, string state, string codeChallengeMethod, string versonCode, string sdkUa, string info)
14
14
  {
15
15
  taskCompletionSource = new TaskCompletionSource<TapLoginResponseByTapClient>();
16
- await Task.Run(() =>
16
+ Task.Run(() =>
17
+ {
18
+ try
17
19
  {
18
- try
19
- {
20
- bool isStartSuccess = TapClientStandalone.StartLoginWithScopes(scopes, responseType, redirectUri, codeChallenge, state, codeChallengeMethod, versonCode, sdkUa, info, LoginDelegate);
21
- if (!isStartSuccess)
22
- {
23
- taskCompletionSource.TrySetResult(new TapLoginResponseByTapClient("发起授权失败,请确认 Tap 客户端是否正常运行"));
24
- taskCompletionSource = null;
25
- }
26
- }
27
- catch (Exception e)
20
+ bool isStartSuccess = TapClientStandalone.StartLoginWithScopes(scopes, responseType, redirectUri, codeChallenge, state, codeChallengeMethod, versonCode, sdkUa, info, LoginDelegate);
21
+ if (!isStartSuccess)
28
22
  {
29
- taskCompletionSource.TrySetResult(new TapLoginResponseByTapClient(false, e.Message));
23
+ taskCompletionSource.TrySetResult(new TapLoginResponseByTapClient("发起授权失败,请确认 Tap 客户端是否正常运行"));
30
24
  taskCompletionSource = null;
31
25
  }
32
26
  }
33
- );
27
+ catch (Exception e)
28
+ {
29
+ taskCompletionSource.TrySetResult(new TapLoginResponseByTapClient(e.Message));
30
+ taskCompletionSource = null;
31
+ }
32
+ });
34
33
  return await taskCompletionSource.Task;
35
34
  }
36
35
 
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.9.1",
5
+ "version": "4.9.3",
6
6
  "unity": "2019.4",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.taptap.sdk.core": "4.9.1"
9
+ "com.taptap.sdk.core": "4.9.3"
10
10
  }
11
11
  }