Skip to content

Commit 1bcd658

Browse files
committed
gameservices: v10.0.0
1 parent 7ba90e8 commit 1bcd658

File tree

5 files changed

+69
-55
lines changed

5 files changed

+69
-55
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: Migrating to v10.0
3+
---
4+
5+
import Tabs from '@theme/Tabs'
6+
import TabItem from '@theme/TabItem'
7+
8+
9+
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:
51+
52+
```xml
53+
<manifest android:installLocation="auto">
54+
55+
<uses-sdk android:minSdkVersion="21" />
56+
57+
<application>
58+
59+
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\u003XXXXXXXXXXXX" />
60+
61+
<activity android:name="com.distriqt.core.auth.AuthorisationActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:exported="false" />
62+
63+
</application>
64+
65+
</manifest>
66+
```
67+

docs/gameservices/service/huawei/_includes/add-apm.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Once complete `apm` will have created something like the following file structur
4343

4444
- Add the `ane` directory to your IDE. *See the tutorials located [here](/docs/tutorials/getting-started) on adding an extension to your IDE.*
4545

46-
- You will have an `assets` directory that contains required assets for the installed extensions.
46+
- You may have an `assets` directory that contains required assets for the installed extensions.
4747
You must add the files in the `assets/android` folder to the root of your Android application package.
4848
(It contains the resource files for the Huawei SDK). You do not need to add this to your iOS application package.
4949

docs/gameservices/service/huawei/_includes/add-manual.mdx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,6 @@ This extension requires the following HMS extensions:
6565

6666
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.
6767

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):
74-
75-
- `grs_sdk_global_route_config_apptouchupdatesdk.json`
76-
- `grs_sdk_global_route_config_hmscoreInstallerSDK.json`
77-
- `grs_sdk_global_route_config_opensdkService.json`
78-
- `grs_sdk_global_route_config_updatesdk.json`
79-
- `grs_sdk_server_config.json`
80-
- `grs_sp.bks`
81-
- `hmsincas.bks`
82-
- `hmsrootcas.bks`
83-
84-
These need to be added at the root level of your application and packaged with your application.
8568

8669
You can access the Huawei Mobile Services SDK extensions and assets here: [https://github.com/distriqt/ANE-HuaweiMobileServices](https://github.com/distriqt/ANE-HuaweiMobileServices).
8770

docs/gameservices/service/playgames/_includes/add-manual-appdescriptor.mdx

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -41,52 +41,15 @@ Ensure you replace:
4141

4242
<queries>
4343
<package android:name="com.google.android.play.games" />
44-
<package android:name="com.google.android.gms" />
45-
<package android:name="com.android.vending" />
4644
</queries>
4745

4846
<application>
4947

5048
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\u003XXXXXXXXXXXX"/>
5149

52-
<provider
53-
android:name="com.google.android.gms.games.provider.PlayGamesInitProvider"
54-
android:authorities="APPLICATION_PACKAGE.playgamesinitprovider"
55-
android:exported="false"
56-
android:initOrder="99" />
57-
58-
<activity
59-
android:name="com.google.android.gms.games.internal.v2.resolution.GamesResolutionActivity"
60-
android:exported="false"
61-
android:theme="@style/Theme.Games.Transparent" />
62-
<activity
63-
android:name="com.google.android.gms.games.internal.v2.appshortcuts.PlayGamesAppShortcutsActivity"
64-
android:exported="true"
65-
android:theme="@style/Theme.Games.Transparent" />
66-
67-
<meta-data
68-
android:name="com.google.android.gms.games.version"
69-
android:value="@string/play_games_sdk_version" />
70-
71-
7250
<!-- DISTRIQT CORE -->
7351
<activity android:name="com.distriqt.core.auth.AuthorisationActivity" android:exported="false" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
7452

75-
<!-- ANDROIDX -->
76-
<provider android:name="androidx.startup.InitializationProvider" android:authorities="air.com.airnativeextensions.test.androidx-startup" android:exported="false">
77-
<meta-data android:name="androidx.lifecycle.ProcessLifecycleInitializer" android:value="androidx.startup" />
78-
</provider>
79-
<service android:name="com.google.firebase.components.ComponentDiscoveryService" android:exported="false">
80-
<meta-data android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
81-
</service>
82-
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity" android:exported="false" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
83-
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
84-
<receiver android:name="com.google.android.gms.measurement.AppMeasurementReceiver" android:enabled="true" android:exported="false"/>
85-
<service android:name="com.google.android.gms.measurement.AppMeasurementService" android:enabled="true" android:exported="false"/>
86-
<service android:name="com.google.android.gms.measurement.AppMeasurementJobService" android:enabled="true" android:exported="false" android:permission="android.permission.BIND_JOB_SERVICE"/>
87-
<activity android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" android:excludeFromRecents="true" android:exported="false" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
88-
<service android:name="com.google.android.gms.auth.api.signin.RevocationBoundService" android:exported="true" android:permission="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" android:visibleToInstantApps="true"/>
89-
9053
</application>
9154

9255
</manifest>

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,7 @@ module.exports = {
16921692
{
16931693
Help: [
16941694
"gameservices/troubleshooting",
1695+
"gameservices/migrating-to-v10.0",
16951696
"gameservices/migrating-to-androidx",
16961697
],
16971698
},

0 commit comments

Comments
 (0)