Skip to content

Commit 5da19b8

Browse files
author
AWS
committed
AWS SDK for Android 2.6.10
1 parent f4a736d commit 5da19b8

File tree

290 files changed

+31787
-2380
lines changed

Some content is hidden

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

290 files changed

+31787
-2380
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Change Log - AWS SDK for Android
22

3+
## [Release 2.6.10](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.6.10)
4+
5+
### New Features
6+
7+
* **Amazon Rekognition**
8+
* **Breaking API Change**
9+
* The `GenderType` enum entries have changed from `MALE` `FEMALE` to `Male` `Female`.
10+
* The `LandmarkType` enum entries have changed to camelcase. i.e. `EYE_LEFT` `LEFT_EYEBROW_LEFT` to `EyeLeft` `LeftEyebrowLeft`
11+
* Update the enum value of LandmarkType and GenderType to be consistent with service response.
12+
* Update to add face and text detection.
13+
* Update to Amazon Rekognition in general to latest API specifications.
14+
15+
### Bug Fixes:
16+
17+
- **Amazon Pinpoint**
18+
- Improve error handling during event submission to ensure DB event corruption is handled gracefully (without crashing the app due to an uncaught exception).
19+
20+
- **Amazon Kinesis Video Streams**
21+
- **Breaking API Change** `KinesisVideoAndroidServiceClient.getAwsAcuityClient()` is renamed to `KinesisVideoAndroidServiceClient.getAwsKinesisVideoClient()` for consistency.
22+
323
## [Release 2.6.9](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.6.9)
424

525
### Bug Fixes:

aws-android-sdk-apigateway-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
<parent>
1313
<groupId>com.amazonaws</groupId>
1414
<artifactId>aws-android-sdk-pom</artifactId>
15-
<version>2.6.9</version>
15+
<version>2.6.10</version>
1616
</parent>
1717

1818
<dependencies>
1919
<dependency>
2020
<groupId>com.amazonaws</groupId>
2121
<artifactId>aws-android-sdk-core</artifactId>
2222
<optional>false</optional>
23-
<version>2.6.9</version>
23+
<version>2.6.10</version>
2424
</dependency>
2525
</dependencies>
2626

aws-android-sdk-auth-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
<parent>
2222
<groupId>com.amazonaws</groupId>
2323
<artifactId>aws-android-sdk-pom</artifactId>
24-
<version>2.6.9</version>
24+
<version>2.6.10</version>
2525
</parent>
2626

2727
<dependencies>
2828
<dependency>
2929
<groupId>com.amazonaws</groupId>
3030
<artifactId>aws-android-sdk-core</artifactId>
3131
<optional>false</optional>
32-
<version>2.6.9</version>
32+
<version>2.6.10</version>
3333
</dependency>
3434

3535
<dependency>

aws-android-sdk-auth-core/src/main/java/com/amazonaws/mobile/auth/core/IdentityManager.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@
6161
/**
6262
* The identity manager keeps track of the current sign-in provider and is responsible
6363
* for caching credentials.
64+
*
65+
* <pre>
66+
* // Create IdentityManager and set it as the default instance.
67+
* IdentityManager idm = new IdentityManager(getApplicationContext(),
68+
* new AWSConfiguration(getApplicationContext()));
69+
* IdentityManager.setDefaultIdentityManager(idm);
70+
* </pre>
6471
*/
6572
public class IdentityManager {
6673

@@ -173,6 +180,8 @@ public String refresh() {
173180
}
174181

175182
/**
183+
* Constructor that takes in the application context.
184+
*
176185
* @param context the application context.
177186
*/
178187
public IdentityManager(final Context context) {

aws-android-sdk-auth-core/src/main/java/com/amazonaws/mobile/auth/core/package-info.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
/**
19+
* AWS Authentication Core caches the credentials and
20+
* handles the user sign-in flow.
21+
*/
1822
package com.amazonaws.mobile.auth.core;

aws-android-sdk-auth-facebook/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>com.amazonaws</groupId>
2323
<artifactId>aws-android-sdk-pom</artifactId>
24-
<version>2.6.9</version>
24+
<version>2.6.10</version>
2525
</parent>
2626

2727
<repositories>
@@ -36,7 +36,7 @@
3636
<groupId>com.amazonaws</groupId>
3737
<artifactId>aws-android-sdk-auth-core</artifactId>
3838
<optional>false</optional>
39-
<version>2.6.9</version>
39+
<version>2.6.10</version>
4040
<type>aar</type>
4141
</dependency>
4242
<dependency>

aws-android-sdk-auth-facebook/src/main/java/com/amazonaws/mobile/auth/facebook/FacebookSignInProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ public void initialize(@NonNull final Context context,
101101
.split(",")
102102
);
103103
} catch (final Exception exception) {
104-
Log.e(LOG_TAG, "Failed to register the permissions with FacebookSignInProvider.", exception);
104+
Log.e(LOG_TAG, "Failed to register the permissions with FacebookSignInProvider. "
105+
+ "Use FacebookSignInProvider.setPermissions() to register the permissions. "
106+
+ "Check if FacebookSignIn is present in `awsconfiguration.json`.");
105107
}
106108
}
107109

@@ -206,9 +208,7 @@ public static void setPermissions(final String... userPermissions) {
206208
synchronized (FacebookSignInProvider.permissions) {
207209
FacebookSignInProvider.permissions.clear();
208210
for (String permission : userPermissions) {
209-
if (!FacebookSignInProvider.permissions.contains(permissions)) {
210-
FacebookSignInProvider.permissions.add(permission);
211-
}
211+
FacebookSignInProvider.permissions.add(permission);
212212
}
213213
}
214214
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates.
3+
* All Rights Reserved.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/**
19+
* AWS Auth SDK - Facebook SignIn contains high-level
20+
* wrapper over the Facebook Android SDK with a SignIn button
21+
* and SignInProvider that orchestrates Facebook SignIn flow.
22+
*/
23+
package com.amazonaws.mobile.auth.facebook;

aws-android-sdk-auth-google/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>com.amazonaws</groupId>
2323
<artifactId>aws-android-sdk-pom</artifactId>
24-
<version>2.6.9</version>
24+
<version>2.6.10</version>
2525
</parent>
2626

2727
<repositories>
@@ -40,7 +40,7 @@
4040
<groupId>com.amazonaws</groupId>
4141
<artifactId>aws-android-sdk-auth-core</artifactId>
4242
<optional>false</optional>
43-
<version>2.6.9</version>
43+
<version>2.6.10</version>
4444
<type>aar</type>
4545
</dependency>
4646

aws-android-sdk-auth-google/src/main/java/com/amazonaws/mobile/auth/google/GoogleSignInProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ public void initialize(@NonNull final Context activityContext,
128128
.split(",")
129129
);
130130
} catch (final Exception exception) {
131-
Log.e(LOG_TAG, "Failed to register the permissions with GoogleSignInProvider.", exception);
131+
Log.e(LOG_TAG, "Failed to register the permissions with GoogleSignInProvider. "
132+
+ "Use GoogleSignInProvider.setPermissions() to register the permissions. "
133+
+ "Check if GoogleSignIn is present in `awsconfiguration.json`.");
132134
}
133135

134136
GoogleSignInOptions.Builder builder = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN);
@@ -201,9 +203,7 @@ public static void setPermissions(final String... loginScopes) {
201203
synchronized (GoogleSignInProvider.loginScopeList) {
202204
GoogleSignInProvider.loginScopeList.clear();
203205
for (String scope : loginScopes) {
204-
if (!GoogleSignInProvider.loginScopeList.contains(scope)) {
205-
GoogleSignInProvider.loginScopeList.add(scope);
206-
}
206+
GoogleSignInProvider.loginScopeList.add(scope);
207207
}
208208
}
209209
}

0 commit comments

Comments
 (0)