You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This latest release brings a number of updates to the extension particularly around android integration.
10
+
11
+
We have moved to using gradle dependencies within our extensions which will improve dependency resolution, reduce update times and improve compatibility with other extensions.
12
+
This also reduces the amount of work required to manually integrate the extensions, reducing the additions to the manifest (though we still highly recommend using apm for this purpose).
13
+
14
+
There should be no changes required to your code for this update.
15
+
16
+
However we do suggest checking out the manifest additions for the latest version of the extension as you should be able to greatly simplify your application descriptor now.
17
+
18
+
19
+
20
+
## Android Integration
21
+
22
+
### Gradle Dependencies
23
+
24
+
We have moved to using gradle dependencies within our extensions which will improve dependency resolution, reduce update times and improve compatibility with other extensions.
25
+
26
+
This also reduces the amount of work required to manually integrate the extensions, reducing the additions to the manifest in your application descriptor.
27
+
28
+
We highly recommend using the [apm](https://airnativeextensions.com/docs/using-apm) tool to manage the integration of the extensions in your application and to generate your application descriptor:
29
+
30
+
```bash
31
+
apm update
32
+
apm generate app-descriptor
33
+
```
34
+
35
+
However, you can still integrate the manifest additions manually if you prefer. With this update we recommend starting fresh as there have been a lot of entries to be removed.
36
+
37
+
38
+
39
+
### Updating code
40
+
41
+
There should be no changes to your code required for this update.
42
+
43
+
44
+
### Updating the manifest
45
+
46
+
You can simplify the manifest now as well as the gradle implementation will add a significant amount of the required manifest entries for you.
47
+
If you use the `apm` tool to generate your application descriptor you will see the manifest entries are significantly reduced and simply running the commands above will update the manifest for you.
48
+
49
+
If you manually update the manifest then, as mentioned above, we recommend starting fresh as there have been a lot of entries to be removed.
50
+
The minimum manifest additions for Play Games now looks like the following:
Copy file name to clipboardExpand all lines: docs/gameservices/service/huawei/_includes/add-manual.mdx
-17Lines changed: 0 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,23 +65,6 @@ This extension requires the following HMS extensions:
65
65
66
66
You must include the above native extensions in your application along with this extension, and you need to ensure they are packaged with your application.
67
67
68
-
##### Assets
69
-
70
-
Along with the `agconnect-services.json` there are a series of assets that need to be packaged with your application.
71
-
These assets are required by the HMS SDK.
72
-
73
-
Copy all the files in the `assets/android` folder (alongside the extensions in the HMS repository):
These need to be added at the root level of your application and packaged with your application.
85
68
86
69
You can access the Huawei Mobile Services SDK extensions and assets here: [https://github.com/distriqt/ANE-HuaweiMobileServices](https://github.com/distriqt/ANE-HuaweiMobileServices).
0 commit comments