siyao
3 年前
当前提交
7a0e1bab
共有 31 个文件被更改,包括 537 次插入 和 49 次删除
-
9Assets/HuaweiService/Auth/AGCAuthException.cs
-
29Assets/HuaweiService/Auth/AGConnectAuth.cs
-
15Assets/HuaweiService/Auth/AGConnectUser.cs
-
4Assets/HuaweiService/apm/APMS.cs
-
4Assets/HuaweiService/apm/GameAPM.cs
-
4Assets/HuaweiService/apm/GameAttribute.cs
-
7Assets/HuaweiService/app_linking/AGConnectAppLinking.cs
-
80Assets/HuaweiService/app_linking/AppLinking.cs
-
18Assets/HuaweiService/app_linking/ResolvedLinkData.cs
-
16Assets/HuaweiService/cloud_storage/AGCStorageManagement.cs
-
9Assets/HuaweiService/cloud_storage/StorageException.cs
-
9Assets/HuaweiService/crash/AGConnectCrash.cs
-
16Assets/HuaweiServiceDemo/Scripts/test/ads/AdsTest.cs
-
3Assets/HuaweiServiceDemo/Scripts/test/apm/EnableGamePluginButton.cs
-
8Assets/HuaweiServiceDemo/Scripts/test/apm/GameApmTest.cs
-
2Assets/Plugins/Android/baseProjectTemplate.gradle
-
11Assets/Plugins/Android/launcherTemplate.gradle
-
10Assets/Plugins/Android/mainTemplate.gradle
-
6Assets/Plugins/Android/mainTemplate.gradle.2018
-
30Assets/HuaweiService/Auth/AuthApi.cs
-
34Assets/HuaweiService/Auth/AuthLoginListener.cs
-
16Assets/HuaweiService/app_linking/ReferrerProvider.cs
-
26Assets/HuaweiService/base/AGCRoutePolicy.cs
-
34Assets/HuaweiService/base/AGConnectInstance.cs
-
43Assets/HuaweiService/base/AGConnectOptions.cs
-
64Assets/HuaweiService/base/AGConnectOptionsBuilder.cs
-
16Assets/HuaweiService/base/CustomAuthProvider.cs
-
16Assets/HuaweiService/base/CustomCredentialsProvider.cs
-
25Assets/HuaweiService/credential/AGCInstanceID.cs
-
22Assets/HuaweiService/credential/AccessNetworkManager.cs
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService.Auth |
|||
{ |
|||
public class AuthApiData : IHmsBaseListener |
|||
{ |
|||
public string name => "com.huawei.agconnect.auth.api.AuthApi"; |
|||
public string buildName => ""; |
|||
} |
|||
public class AuthApi : HmsListener<AuthApiData> |
|||
{ |
|||
|
|||
public virtual void login(Activity arg0, AGConnectInstance arg1, AuthLoginListener arg2) { |
|||
Call("login", arg0, arg1, arg2); |
|||
} |
|||
|
|||
public void login(AndroidJavaObject arg0, AndroidJavaObject arg1, AndroidJavaObject arg2){ |
|||
login(HmsUtil.GetHmsBase<Activity>(arg0), HmsUtil.GetHmsBase<AGConnectInstance>(arg1), HmsUtil.GetHmsBase<AuthLoginListener>(arg2)); |
|||
} |
|||
|
|||
public virtual void logout() { |
|||
Call("logout"); |
|||
} |
|||
|
|||
public virtual int providerId() { |
|||
return Call<int>("providerId"); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService.Auth |
|||
{ |
|||
public class AuthLoginListenerData : IHmsBaseListener |
|||
{ |
|||
public string name => "com.huawei.agconnect.auth.api.AuthLoginListener"; |
|||
public string buildName => ""; |
|||
} |
|||
public class AuthLoginListener : HmsListener<AuthLoginListenerData> |
|||
{ |
|||
|
|||
public virtual void loginSuccess(AGConnectAuthCredential arg0) { |
|||
Call("loginSuccess", arg0); |
|||
} |
|||
|
|||
public void loginSuccess(AndroidJavaObject arg0){ |
|||
loginSuccess(HmsUtil.GetHmsBase<AGConnectAuthCredential>(arg0)); |
|||
} |
|||
|
|||
public virtual void loginCancel() { |
|||
Call("loginCancel"); |
|||
} |
|||
|
|||
public virtual void loginFailure(Exception arg0) { |
|||
Call("loginFailure", arg0); |
|||
} |
|||
|
|||
public void loginFailure(AndroidJavaObject arg0){ |
|||
loginFailure(HmsUtil.GetHmsBase<Exception>(arg0)); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService.AppLinking |
|||
{ |
|||
public class ReferrerProvider_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.applinking.ReferrerProvider"; |
|||
} |
|||
public class ReferrerProvider :HmsClass<ReferrerProvider_Data> |
|||
{ |
|||
public ReferrerProvider (): base() { } |
|||
public Task getCustomReferrer() { |
|||
return Call<Task>("getCustomReferrer"); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService |
|||
{ |
|||
public class AGCRoutePolicy_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.AGCRoutePolicy"; |
|||
} |
|||
public class AGCRoutePolicy :HmsClass<AGCRoutePolicy_Data> |
|||
{ |
|||
public static AGCRoutePolicy UNKNOWN => HmsUtil.GetStaticValue<AGCRoutePolicy>("UNKNOWN"); |
|||
|
|||
public static AGCRoutePolicy CHINA => HmsUtil.GetStaticValue<AGCRoutePolicy>("CHINA"); |
|||
|
|||
public static AGCRoutePolicy GERMANY => HmsUtil.GetStaticValue<AGCRoutePolicy>("GERMANY"); |
|||
|
|||
public static AGCRoutePolicy RUSSIA => HmsUtil.GetStaticValue<AGCRoutePolicy>("RUSSIA"); |
|||
|
|||
public static AGCRoutePolicy SINGAPORE => HmsUtil.GetStaticValue<AGCRoutePolicy>("SINGAPORE"); |
|||
|
|||
public AGCRoutePolicy (): base() { } |
|||
public string getRouteName() { |
|||
return Call<string>("getRouteName"); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService |
|||
{ |
|||
public class AGConnectInstance_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.AGConnectInstance"; |
|||
} |
|||
public class AGConnectInstance :HmsClass<AGConnectInstance_Data> |
|||
{ |
|||
public AGConnectInstance (): base() { } |
|||
public static void initialize(Context arg0, AGConnectOptionsBuilder arg1) { |
|||
CallStatic("initialize", arg0, arg1); |
|||
} |
|||
public static void initialize(Context arg0) { |
|||
CallStatic("initialize", arg0); |
|||
} |
|||
public static AGConnectInstance buildInstance(AGConnectOptions arg0) { |
|||
return CallStatic<AGConnectInstance>("buildInstance", arg0); |
|||
} |
|||
public static AGConnectInstance getInstance(string arg0) { |
|||
return CallStatic<AGConnectInstance>("getInstance", arg0); |
|||
} |
|||
public static AGConnectInstance getInstance() { |
|||
return CallStatic<AGConnectInstance>("getInstance"); |
|||
} |
|||
public AGConnectOptions getOptions() { |
|||
return Call<AGConnectOptions>("getOptions"); |
|||
} |
|||
public string getIdentifier() { |
|||
return Call<string>("getIdentifier"); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService |
|||
{ |
|||
public class AGConnectOptions_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.AGConnectOptions"; |
|||
} |
|||
public class AGConnectOptions :HmsClass<AGConnectOptions_Data> |
|||
{ |
|||
public AGConnectOptions (): base() { } |
|||
public string getIdentifier() { |
|||
return Call<string>("getIdentifier"); |
|||
} |
|||
public Context getContext() { |
|||
return Call<Context>("getContext"); |
|||
} |
|||
public AGCRoutePolicy getRoutePolicy() { |
|||
return Call<AGCRoutePolicy>("getRoutePolicy"); |
|||
} |
|||
public string getPackageName() { |
|||
return Call<string>("getPackageName"); |
|||
} |
|||
public bool getBoolean(string arg0, bool arg1) { |
|||
return Call<bool>("getBoolean", arg0, arg1); |
|||
} |
|||
public bool getBoolean(string arg0) { |
|||
return Call<bool>("getBoolean", arg0); |
|||
} |
|||
public int getInt(string arg0, int arg1) { |
|||
return Call<int>("getInt", arg0, arg1); |
|||
} |
|||
public int getInt(string arg0) { |
|||
return Call<int>("getInt", arg0); |
|||
} |
|||
public string getString(string arg0, string arg1) { |
|||
return Call<string>("getString", arg0, arg1); |
|||
} |
|||
public string getString(string arg0) { |
|||
return Call<string>("getString", arg0); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService |
|||
{ |
|||
public class AGConnectOptionsBuilder_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.AGConnectOptionsBuilder"; |
|||
} |
|||
public class AGConnectOptionsBuilder :HmsClass<AGConnectOptionsBuilder_Data> |
|||
{ |
|||
public AGConnectOptionsBuilder (): base() { } |
|||
public AGConnectOptionsBuilder setProductId(string arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setProductId", arg0); |
|||
} |
|||
public AGConnectOptionsBuilder setAppId(string arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setAppId", arg0); |
|||
} |
|||
public AGConnectOptionsBuilder setCPId(string arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setCPId", arg0); |
|||
} |
|||
public AGConnectOptionsBuilder setClientId(string arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setClientId", arg0); |
|||
} |
|||
public AGConnectOptionsBuilder setClientSecret(string arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setClientSecret", arg0); |
|||
} |
|||
public AGConnectOptionsBuilder setApiKey(string arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setApiKey", arg0); |
|||
} |
|||
public Map getCustomConfigMap() { |
|||
return Call<Map>("getCustomConfigMap"); |
|||
} |
|||
public AGConnectOptionsBuilder setCustomValue(string arg0, string arg1) { |
|||
return Call<AGConnectOptionsBuilder>("setCustomValue", arg0, arg1); |
|||
} |
|||
public AGConnectOptionsBuilder setCustomCredentialProvider(CustomCredentialsProvider arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setCustomCredentialProvider", arg0); |
|||
} |
|||
public AGConnectOptionsBuilder setCustomAuthProvider(CustomAuthProvider arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setCustomAuthProvider", arg0); |
|||
} |
|||
public AGConnectOptionsBuilder setRoutePolicy(AGCRoutePolicy arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setRoutePolicy", arg0); |
|||
} |
|||
public AGCRoutePolicy getRoutePolicy() { |
|||
return Call<AGCRoutePolicy>("getRoutePolicy"); |
|||
} |
|||
public AGConnectOptionsBuilder setPackageName(string arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setPackageName", arg0); |
|||
} |
|||
public AGConnectOptionsBuilder setInputStream(InputStream arg0) { |
|||
return Call<AGConnectOptionsBuilder>("setInputStream", arg0); |
|||
} |
|||
public InputStream getInputStream() { |
|||
return Call<InputStream>("getInputStream"); |
|||
} |
|||
public AGConnectOptions build(Context arg0, string arg1) { |
|||
return Call<AGConnectOptions>("build", arg0, arg1); |
|||
} |
|||
public AGConnectOptions build(Context arg0) { |
|||
return Call<AGConnectOptions>("build", arg0); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService |
|||
{ |
|||
public class CustomAuthProvider_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.CustomAuthProvider"; |
|||
} |
|||
public class CustomAuthProvider :HmsClass<CustomAuthProvider_Data> |
|||
{ |
|||
public CustomAuthProvider (): base() { } |
|||
public Task getTokens(bool arg0) { |
|||
return Call<Task>("getTokens", arg0); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService |
|||
{ |
|||
public class CustomCredentialsProvider_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.CustomCredentialsProvider"; |
|||
} |
|||
public class CustomCredentialsProvider :HmsClass<CustomCredentialsProvider_Data> |
|||
{ |
|||
public CustomCredentialsProvider (): base() { } |
|||
public Task getTokens(bool arg0) { |
|||
return Call<Task>("getTokens", arg0); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService.credential |
|||
{ |
|||
public class AGCInstanceID_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.common.api.AGCInstanceID"; |
|||
} |
|||
public class AGCInstanceID :HmsClass<AGCInstanceID_Data> |
|||
{ |
|||
public AGCInstanceID (): base() { } |
|||
public static AGCInstanceID getInstance(Context arg0) { |
|||
return CallStatic<AGCInstanceID>("getInstance", arg0); |
|||
} |
|||
public string getId() { |
|||
return Call<string>("getId"); |
|||
} |
|||
public long getCreationTime() { |
|||
return Call<long>("getCreationTime"); |
|||
} |
|||
public void deleteAAID() { |
|||
Call("deleteAAID"); |
|||
} |
|||
} |
|||
} |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService.credential |
|||
{ |
|||
public class AccessNetworkManager_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.common.network.AccessNetworkManager"; |
|||
} |
|||
public class AccessNetworkManager :HmsClass<AccessNetworkManager_Data> |
|||
{ |
|||
public AccessNetworkManager (): base() { } |
|||
public static AccessNetworkManager getInstance() { |
|||
return CallStatic<AccessNetworkManager>("getInstance"); |
|||
} |
|||
public void addCallback(AccessNetworkCallback arg0) { |
|||
Call("addCallback", arg0); |
|||
} |
|||
public void setAccessNetwork(bool arg0) { |
|||
Call("setAccessNetwork", arg0); |
|||
} |
|||
} |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue