Skip to content

Commit be47f21

Browse files
author
AWS
committed
AWS SDK for Android 2.4.0
1 parent 2254582 commit be47f21

File tree

390 files changed

+27428
-4917
lines changed

Some content is hidden

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

390 files changed

+27428
-4917
lines changed

CHANGELOG.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
11
# Change Log - AWS SDK for Android
2+
## [Release 2.4.0] (https://github.com/aws/aws-sdk-android/releases/tag/release_v2.4.0) (03/21/2017)
3+
4+
### Improvements:
5+
- **Amazon Lex**:`LexVoiceButton` will now show an image of a bot when audio response from lex is being played.
6+
7+
### Bug Fixes:
8+
9+
- **Amazon API Gateway**: Allow marshalling alternative date formats in API Gateway.
10+
- **Amazon Cognito Identity Provider**: Bug fix for missing required attribute Exception
11+
- **Amazon IoT**: fix typo's with variable names in `AWSIoTMQTTManager`. See [issue #220](https://github.com/aws/aws-sdk-android/pull/220).
12+
- **Amazon Lex**: Fix a bug which caused `readyToFulfill` to not file in `InteractionListener`.
13+
- **Amazon Pinpoint**:Fix cursor leakage in Pinpoint.
14+
- **Amazon Pinpoint**:Bug fixes for campaign open rate.
15+
- **Amazon Pinpoint**:`PinpointEndpointClient` to retain instance of endpoint.
16+
- **Amazon Pinpoint**:corrected the implemented for `optout` for profile.
17+
- **Amazon Pinpoint**:Deprecated formatted price in `MonetizationEventBuilder`.
18+
- **Amazon S3**: Bug Fixes with encryption client.
19+
- **Amazon S3**: SigV4 signing is now default for S3. See [issue 234](https://github.com/aws/aws-sdk-android/issues/234) & [issue #108](https://github.com/awslabs/aws-sdk-android-samples/issues/108).
20+
- **Amazon S3**: Added feature to specify listener in `TransferUtility.upload()`. See [issue #210](https://github.com/aws/aws-sdk-android/issues/210).
21+
- **Amazon S3**: Fixed a bug where when using `setAccelerateModeEnabled` caused uploads to fail. See [issue #264](https://github.com/aws/aws-sdk-android/issues/264).
22+
- **General** : Fixed a bug which caused incompatibility between maven releases and releases on [marketing page](https://aws.amazon.com/mobile/sdk).
23+
224
## [Release 2.3.9] (https://github.com/aws/aws-sdk-android/releases/tag/release_v2.3.9) (02/02/2017)
325

426
### Improvements:
527

6-
- **Amazon Kinesis Firehose & Amazon Kinesis Streams**: Allow setting a static partition key in the KenesisRecorderConfig. See [issue #228](https://github.com/aws/aws-sdk-android/pull/228).
28+
- **Amazon Kinesis Firehose & Amazon Kinesis Streams**: Allow setting a static partition key in the KinesisRecorderConfig. See [issue #228](https://github.com/aws/aws-sdk-android/pull/228).
729
- **AWS KMS**: Updated service to latest spec.
830

931
### Bug Fixes:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build Status](https://travis-ci.org/aws/aws-sdk-android.png?branch=master)](https://travis-ci.org/aws/aws-sdk-android)
44
[![GitHub release](https://img.shields.io/github/release/aws/aws-sdk-android.svg)]()
55
[![Maven Central](https://img.shields.io/maven-central/v/com.amazonaws/aws-android-sdk-pom.svg)]()
6-
[![Twitter Follow](https://img.shields.io/twitter/follow/awsformobile.svg?style=social&label=Follow)](https://twitter.com/AWSforMobile)
6+
[![Twitter Follow](https://img.shields.io/twitter/follow/awsformobile.svg?style=social&label=Follow)]()
77

88
The [AWS SDK for Android](http://aws.amazon.com/sdkforandroid) provides a library and documentation for developers to build connected mobile applications using AWS.
99

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.3.9</version>
15+
<version>2.4.0</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.3.9</version>
23+
<version>2.4.0</version>
2424
</dependency>
2525
</dependencies>
2626

aws-android-sdk-apigateway-core/src/main/java/com/amazonaws/mobileconnectors/apigateway/ApiClientHandler.java

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@
2929
import com.amazonaws.http.UrlHttpClient;
3030
import com.amazonaws.mobileconnectors.apigateway.annotation.Operation;
3131
import com.amazonaws.mobileconnectors.apigateway.annotation.Parameter;
32+
import com.amazonaws.util.DateUtils;
3233
import com.amazonaws.util.IOUtils;
3334
import com.amazonaws.util.StringUtils;
35+
import com.amazonaws.util.json.DateDeserializer;
3436
import com.google.gson.Gson;
37+
import com.google.gson.GsonBuilder;
3538

3639
import java.io.ByteArrayInputStream;
3740
import java.io.InputStream;
@@ -43,14 +46,21 @@
4346
import java.lang.reflect.Type;
4447
import java.net.URI;
4548
import java.util.Collection;
49+
import java.util.Date;
4650
import java.util.Map;
4751

4852
/**
4953
* Invocation handler responsible for serializing a request and deserializing a
5054
* response.
5155
*/
5256
class ApiClientHandler implements InvocationHandler {
53-
private static final Gson gson = new Gson();
57+
58+
59+
private static final Gson gson = new GsonBuilder()
60+
.registerTypeAdapter(Date.class, new DateDeserializer(new String[] {
61+
DateUtils.ISO8601_DATE_PATTERN, DateUtils.ALTERNATE_ISO8601_DATE_PATTERN,
62+
DateUtils.COMPRESSED_DATE_PATTERN, DateUtils.RFC822_DATE_PATTERN
63+
})).create();
5464

5565
private final String endpoint;
5666
private final String apiName;
@@ -62,12 +72,13 @@ class ApiClientHandler implements InvocationHandler {
6272
// 'x-api-key' header.
6373
private final String apiKey;
6474

65-
private final HttpClient client;
75+
private HttpClient client;
6676
private final HttpRequestFactory requestFactory;
6777
private final ClientConfiguration clientConfiguration;
6878

6979
ApiClientHandler(String endpoint, String apiName,
70-
Signer signer, AWSCredentialsProvider provider, String apiKey, ClientConfiguration clientConfiguration) {
80+
Signer signer, AWSCredentialsProvider provider, String apiKey,
81+
ClientConfiguration clientConfiguration) {
7182
this.endpoint = endpoint;
7283
this.apiName = apiName;
7384
this.signer = signer;
@@ -197,9 +208,9 @@ Request<?> buildRequest(Method method, Object[] args) {
197208
void processParameter(Request<?> request, Parameter p, Object arg) {
198209
final String name = p.name();
199210
final String location = p.location();
200-
211+
201212
if (arg == null) {
202-
return;
213+
return;
203214
}
204215

205216
if ("header".equals(location)) {
@@ -211,8 +222,7 @@ void processParameter(Request<?> request, Parameter p, Object arg) {
211222
} else if ("query".equals(location)) {
212223
if (Map.class.isAssignableFrom(arg.getClass())) {
213224
@SuppressWarnings("unchecked")
214-
final
215-
Map<String, Object> map = (Map<String, Object>) arg;
225+
final Map<String, Object> map = (Map<String, Object>) arg;
216226
for (final Map.Entry<String, Object> entry : map.entrySet()) {
217227
request.addParameter(entry.getKey(), String.valueOf(entry.getValue()));
218228
}
@@ -341,4 +351,8 @@ private String joinList(Collection<?> objects) {
341351
}
342352
return sb.toString();
343353
}
354+
355+
void setClient(HttpClient client) {
356+
this.client = client;
357+
}
344358
}

aws-android-sdk-autoscaling/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.3.9</version>
15+
<version>2.4.0</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.3.9</version>
23+
<version>2.4.0</version>
2424
</dependency>
2525
</dependencies>
2626

aws-android-sdk-cloudwatch/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.3.9</version>
15+
<version>2.4.0</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.3.9</version>
23+
<version>2.4.0</version>
2424
</dependency>
2525
</dependencies>
2626

aws-android-sdk-cognito/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<artifactId>aws-android-sdk-cognito</artifactId>
77
<packaging>jar</packaging>
88
<name>AWS SDK for Android - Amazon Cognito Sync</name>
9-
<version>2.3.9</version>
9+
<version>2.4.0</version>
1010
<description>The AWS Android SDK for Amazon Cognito Sync module holds the client classes that are used for communicating with Amazon Cognito Sync Service</description>
1111
<url>http://aws.amazon.com/sdkforandroid</url>
1212

1313
<parent>
1414
<groupId>com.amazonaws</groupId>
1515
<artifactId>aws-android-sdk-pom</artifactId>
16-
<version>2.3.9</version>
16+
<version>2.4.0</version>
1717
</parent>
1818

1919
<licenses>
@@ -29,7 +29,7 @@
2929
<groupId>com.amazonaws</groupId>
3030
<artifactId>aws-android-sdk-core</artifactId>
3131
<optional>false</optional>
32-
<version>2.3.9</version>
32+
<version>2.4.0</version>
3333
</dependency>
3434
<dependency>
3535
<groupId>com.google.android</groupId>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fabric-identifier=com.amazonaws.aws-android-sdk-cognito
2-
fabric-version=2.3.9
2+
fabric-version=2.4.0
33
fabric-build-type=binary

aws-android-sdk-cognitoidentityprovider/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<artifactId>aws-android-sdk-cognitoidentityprovider</artifactId>
77
<packaging>jar</packaging>
88
<name>AWS SDK for Android - Amazon Cognito Identity Provider</name>
9-
<version>2.3.9</version>
9+
<version>2.4.0</version>
1010
<description>The AWS Android SDK for Amazon Cognito Identity Provider module holds the client classes that are used for communicating with Amazon Cognito Identity Provider Service</description>
1111
<url>http://aws.amazon.com/sdkforandroid</url>
1212

1313
<parent>
1414
<groupId>com.amazonaws</groupId>
1515
<artifactId>aws-android-sdk-pom</artifactId>
16-
<version>2.3.9</version>
16+
<version>2.4.0</version>
1717
</parent>
1818

1919
<licenses>
@@ -29,7 +29,7 @@
2929
<groupId>com.amazonaws</groupId>
3030
<artifactId>aws-android-sdk-core</artifactId>
3131
<optional>false</optional>
32-
<version>2.3.9</version>
32+
<version>2.4.0</version>
3333
</dependency>
3434
<dependency>
3535
<groupId>com.google.android</groupId>

aws-android-sdk-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>com.amazonaws</groupId>
1414
<artifactId>aws-android-sdk-pom</artifactId>
15-
<version>2.3.9</version>
15+
<version>2.4.0</version>
1616
</parent>
1717

1818
<dependencies>

0 commit comments

Comments
 (0)