Skip to content

Commit

Permalink
Update kits for only version numbers (#471)
Browse files Browse the repository at this point in the history
* Updates: Push Kit & AuthService

* com.huawei.hms:push: 6.7.0.300 -> 6.11.0.300
* com.huawei.agconnect:agconnect-auth: 1.8.0.300 -> 1.9.1.301
- Added the function to support Twitter account sign-in either in unified sign-in mode or based on the traditional OAuth 2.0 access mode.

* Update: AppLinking & CloudStorage & DriveKit

com.huawei.agconnect:agconnect-applinking: 1.8.0.300 -> 1.9.1.301
com.huawei.agconnect:agconnect-storage: 1.5.0.100 -> 1.9.1.301
com.huawei.hms:drive: 5.0.0.307 -> 5.2.0.300

* Update: DriveKit

com.huawei.hms:drive:5.0.0.307 - > 5.2.0.300

* Update: com.huawei.agconnect:agcp

com.huawei.agconnect:agcp: 1.6.1.300 -> 1.9.1.301
  • Loading branch information
alihan98ersoy committed Mar 6, 2024
1 parent d8151c6 commit 39ca1e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Binary file modified Assets/Huawei/Dlls/HuaweiMobileServices.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Assets/Huawei/Editor/Utils/HMSGradleFixer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using System.Text;
using UnityEditor;
using UnityEditor.Android;
Expand All @@ -12,7 +12,7 @@ public class HMSGradleFixer : IPostGenerateGradleAndroidProject
{
public int callbackOrder => 1;
private const string MINGRADLEVERSION = "3.5.4";
private const string agconnect_agcp = "classpath 'com.huawei.agconnect:agcp:1.6.1.300'";
private const string agconnect_agcp = "classpath 'com.huawei.agconnect:agcp:1.9.1.301'";
private const string build_gradle = "classpath 'com.android.tools.build:gradle:" + MINGRADLEVERSION + "'";

private void GradleVersionFixer(string gradleFileAsString, string path)
Expand Down
14 changes: 7 additions & 7 deletions Assets/Huawei/Editor/Utils/HMSGradleWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ public HMSGradleWorker()
{ CrashToggleEditor.CrashKitEnabled, new [] { "com.huawei.agconnect:agconnect-crash:1.8.0.300" } },
{ GameServiceToggleEditor.GameServiceEnabled, new [] { "com.huawei.hms:game:6.10.0.300" } },
{ IAPToggleEditor.IAPKitEnabled, new [] { "com.huawei.hms:iap:6.4.0.301" } },
{ PushToggleEditor.PushKitEnabled, new [] { "com.huawei.hms:push:6.7.0.300" } },
{ PushToggleEditor.PushKitEnabled, new [] { "com.huawei.hms:push:6.11.0.300" } },
{ RemoteConfigToggleEditor.RemoteConfigEnabled, new [] { "com.huawei.agconnect:agconnect-remoteconfig:1.6.3.300" } },
{ CloudDBToggleEditor.CloudDBEnabled, new [] { "com.huawei.agconnect:agconnect-cloud-database:1.5.5.300" } },
{ AuthToggleEditor.AuthEnabled, new [] { "com.huawei.agconnect:agconnect-auth:1.8.0.300" } },
{ AuthToggleEditor.AuthEnabled, new [] { "com.huawei.agconnect:agconnect-auth:1.9.1.301" } },
{ NearbyServiceToggleEditor.NearbyServiceEnabled, new [] { "com.huawei.hms:nearby:6.2.0.301" } },
{ AppMessagingToggleEditor.AppMessagingEnabled, new [] { "com.huawei.agconnect:agconnect-appmessaging:1.6.3.300" } },
{ HMSLibrariesDrawer.AppCompatEnabled, new []{ "com.android.support:appcompat-v7:21.0.0" } },
{ LocationToggleEditor.LocationEnabled, new [] { "com.huawei.hms:location:6.4.0.300" } },
{ ScanKitToggleEditor.ScanKitEnabled, new [] { "com.huawei.hms:scan:2.6.0.301" } },
{ AppLinkingToggleEditor.AppLinkingEnabled, new [] { "com.huawei.agconnect:agconnect-applinking:1.8.0.300" } },
{ DriveKitToggleEditor.DriveKitEnabled, new [] { "com.huawei.hms:drive:5.0.0.307" } },
{ CloudStorageToggleEditor.CloudStorageEnabled, new [] { "com.huawei.agconnect:agconnect-storage:1.5.0.100" } },
{ AppLinkingToggleEditor.AppLinkingEnabled, new [] { "com.huawei.agconnect:agconnect-applinking:1.9.1.301" } },
{ DriveKitToggleEditor.DriveKitEnabled, new [] { "com.huawei.hms:drive:5.2.0.300" } },
{ CloudStorageToggleEditor.CloudStorageEnabled, new [] { "com.huawei.agconnect:agconnect-storage:1.9.1.301" } },
{ APMToggleEditor.APMEnabled, new [] { "com.huawei.agconnect:agconnect-apms:1.6.1.300" } },
{ Modeling3dKitToggleEditor.Modeling3dkitEnabled,new []
{
Expand Down Expand Up @@ -119,7 +119,7 @@ private void CreateMainGradleFile(string[] gradleConfigs)
#endif
/* TODO:
#elif UNITY_2022_1_OR_NEWER
//Gradle 7+ and classpath 'com.huawei.agconnect:agcp:1.8.0.300'
//Gradle 7+ and classpath 'com.huawei.agconnect:agcp:1.9.1.301'
*/
}

Expand Down Expand Up @@ -169,7 +169,7 @@ private void BaseProjectGradleFile()
sb.AppendLine("\t\tdependencies {");

// Add the classpath dependency for Huawei's AGC
sb.AppendFormat("\t\t\t{0}\n", AddClasspath("com.huawei.agconnect:agcp:1.6.1.300"));
sb.AppendFormat("\t\t\t{0}\n", AddClasspath("com.huawei.agconnect:agcp:1.9.1.301"));

sb.AppendLine("\t\t}"); // End of dependencies
sb.AppendLine("\t}"); // End of buildscript
Expand Down

0 comments on commit 39ca1e3

Please sign in to comment.