Skip to content

Commit a1939db

Browse files
committed
googleidentity v7.1.1
1 parent b7e06a0 commit a1939db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+362
-241
lines changed

docs/googleidentity/_includes/add-apm-appdescriptor.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,35 @@ You should backup your application descriptor before running this command to ens
1818
If you need to insert custom data into these sections see the guides for [Android](https://github.com/airsdk/apm/wiki/Usage-Generate#android) and [iOS](https://github.com/airsdk/apm/wiki/Usage-Generate#ios)
1919
:::
2020

21+
22+
### Android Gradle Version
23+
24+
We have updated the required gradle version used to build your application to be higher than the default AIR currently uses (April 2025).
25+
26+
To specify a higher version add the following to your android node in your application descriptor:
27+
28+
```xml
29+
<android>
30+
<gradleVersion>8.9</gradleVersion>
31+
<androidGradlePluginVersion>8.7.3</androidGradlePluginVersion>
32+
33+
...
34+
</android>
35+
```
36+
37+
If you don't do this you will see the following error when building your application:
38+
39+
```
40+
Unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed:
41+
FAILURE: Build failed with an exception.
42+
43+
...
44+
45+
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65
46+
```
47+
48+
:::note
49+
June 2025: This is not currently automatically handled by `apm` so you will need to add this manually to your application descriptor.
50+
51+
We are working on an update to handle this.
52+
:::

docs/googleidentity/_includes/add-manual-appdescriptor.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,38 @@ Making requests and accessing the Google Identity functionality requires the som
4141
</manifest>
4242
```
4343

44+
#### Android Gradle Version
45+
46+
We have updated the required gradle version used to build your application to be higher than the default AIR currently uses (April 2025).
47+
48+
To specify a higher version add the following to your android node in your application descriptor:
49+
50+
```xml
51+
<android>
52+
<gradleVersion>8.9</gradleVersion>
53+
<androidGradlePluginVersion>8.7.3</androidGradlePluginVersion>
54+
55+
...
56+
</android>
57+
```
58+
59+
If you don't do this you will see the following error when building your application:
60+
61+
```
62+
Unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed:
63+
FAILURE: Build failed with an exception.
64+
65+
...
66+
67+
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65
68+
```
69+
70+
:::note
71+
June 2025: This is not currently automatically handled by `apm` so you will need to add this manually to your application descriptor.
72+
73+
We are working on an update to handle this.
74+
:::
75+
4476

4577
### iOS
4678

docs/googleidentity/changelog.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
### 2025.07.02 [v7.1.1]
2+
3+
```
4+
## Setup Change
5+
6+
There has been a slight change to the setup call, it will now perform a check if the user has previously
7+
signed in successfully and start a silent sign in process. This ensures the `isSignedIn` flag is correct
8+
after setup.
9+
10+
Notes:
11+
- this makes the setup process asynchronous if you want to ensure the `isSignedIn` flag is correct
12+
- may present a UI ("signing you in") on Android if the user has signed in previously
13+
- can disable this new functionality by setting `options.attemptSilentSignIn = false;`
14+
15+
### Updates
16+
17+
feat(android): add ability to automatically perform silent sign in at setup if previously signed in
18+
feat(ios): clean up sign in process at setup
19+
feat: add attemptSilentSignIn parameter to options to control auto sign in attempt at setup
20+
feat(android): update androidx credentials sdk to v1.5.0
21+
```
22+
123
### 2025.01.20 [v7.0.1]
224

325
```
15.9 KB
Loading

docs/googleidentity/setup.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Setup
66

77
## Setup the extension
88

9-
Next you need to setup the platform using your Google API client ID and specify any additional
9+
You need to setup the platform using your Google API client ID and specify any additional
1010
options such as scopes you require:
1111

1212
At a minimum you will need to specify the iOS and Android client IDs:
@@ -25,7 +25,50 @@ The options here specify the permissions and scopes that you require from your u
2525

2626
For more information on these options see the [Google Identity Options](google-identity-options.md) section.
2727

28-
After setup you may wish to attempt to [sign in silently](signing-in.md#sign-in-silently).
28+
29+
This call will be asynchronous, certain situations require checks that perform asynchronous operations.
30+
You should await the `GoogleIdentityEvent.SETUP_COMPLETE` event before continuing with any other functionality of the extension:
31+
32+
```actionscript
33+
GoogleIdentity.service.addEventListener( GoogleIdentityEvent.SETUP_COMPLETE, setupCompleteHandler );
34+
35+
function setupCompleteHandler( event:GoogleIdentityEvent ):void
36+
{
37+
// Setup has completed
38+
}
39+
```
40+
41+
42+
### Automatic silent sign in
43+
44+
The setup process will perform an automatic silent sign in if the user has previously signed in successfully.
45+
This process is needed to ensure the `isSignedIn` flag is correct after setup.
46+
47+
The means your user may be presented a view showing something like "signing you in" as part of the `setup()` call.
48+
49+
![](images/silent-sign-in-ui.png)
50+
51+
52+
:::note
53+
You can disable this functionality by changing the `attemptSilentSignIn` value in the options:
54+
55+
```actionscript
56+
var options:GoogleIdentityOptions = new GoogleIdentityOptionsBuilder()
57+
58+
...
59+
60+
.setAttemptSilentSignIn( false )
61+
.build();
62+
```
63+
64+
This will mean you can manage this process yourself, storing a flag for when users have successfully signed in and then performing a silent sign in when it suits your application.
65+
66+
**If you disable this process the `isSignedIn` flag may be incorrect after `setup()`**
67+
68+
More information on how to [sign in silently](signing-in.md#sign-in-silently).
69+
:::
70+
71+
2972

3073

3174

static/asdocs/googleidentity/all-classes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- saved from url=(0014)about:internet --><html>
22
<head>
33
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4-
<title>All Classes - distriqt // GoogleIdentity</title>
4+
<title>All Classes - GoogleIdentity</title>
55
<base target="classFrame">
66
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
77
<link rel="stylesheet" href="print.css" type="text/css" media="print">
@@ -34,4 +34,4 @@ <h3><a href="class-summary.html" target="classFrame" style="color:black">All Cla
3434
</table>
3535
</body>
3636
</html>
37-
<!--Copyright distriqt 2016<br/>Mon Jan 20 2025, 11:08 AM +10:00 -->
37+
<!--Copyright Michael Archbold 2025<br/>Wed Jul 2 2025, 09:27 PM +10:00 -->

static/asdocs/googleidentity/all-index-A.html

Lines changed: 7 additions & 4 deletions
Large diffs are not rendered by default.

static/asdocs/googleidentity/all-index-B.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)