Skip to content

Commit a212803

Browse files
author
AWS
committed
AWS SDK for Android 2.4.2
1 parent d4e77c5 commit a212803

File tree

140 files changed

+6288
-2560
lines changed

Some content is hidden

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

140 files changed

+6288
-2560
lines changed

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
# Change Log - AWS SDK for Android
2+
3+
## [Release 2.4.2](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.4.2)
4+
5+
### Improvements:
6+
- **Amazon Lex**
7+
- Amazon Lex is now Generally Available.
8+
- Added support for input transcripts.
9+
10+
- **Amazon Polly**
11+
- Added support for multiple Lexicons in presigned request.
12+
- Added support for speech marks.
13+
14+
- **Amazon Rekognition**
15+
- Added support for content moderation and age range estimation. See [issue #281](https://github.com/aws/aws-sdk-android/issues/281)
16+
17+
### Bug Fixes:
18+
- **Amazon DynamoDB**
19+
- Fixed bug which did not use credentials provider when available in method `getClient(Region)`.
20+
- **Amazon S3**
21+
- Fixed bug which caused gradle build error on commons-io. See [issue #282](https://github.com/aws/aws-sdk-android/issues/282)
22+
223
## [Release 2.4.1](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.4.1)
324

425
### New Features:
@@ -373,4 +394,4 @@ Two new exceptions added for getSession API. These exceptions have been added to
373394

374395
### Bug Fixes
375396
- **Amazon S3**: Fixed an issue that occurs when required headers are not properly signed. This issue affects S3 in two regions: Frankfurt (eu-central-1) and China (cn-north-1). [#42](https://github.com/aws/aws-sdk-android/issues/42)
376-
- **AWS Core Runtime Library**: Fixed an issue in Maven distribution where an incorrect version string is set in "User-Agent".
397+
- **AWS Core Runtime Library**: Fixed an issue in Maven distribution where an incorrect version string is set in "User-Agent".

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,29 +64,29 @@ private class S3Example extends AsyncTask<Void,Void,Void>{
6464
@Override
6565
protected Void doInBackground(Void... params) {
6666
67-
// Initialize the Amazon Cognito credentials provider
68-
CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
67+
// Initialize the Amazon Cognito credentials provider
68+
CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
6969
MY-ACTIVITY.getApplicationContext(), // Application Context
7070
"MY-IDENTITY-POOL-ID", // Identity Pool ID
7171
Regions.SELECT_YOUR_REGION // Region enum
7272
);
7373
74-
AmazonS3Client s3Client = new AmazonS3Client(credentialsProvider);
75-
File fileToUpload = YOUR_FILE;
76-
//(Replace "MY-BUCKET" with your S3 bucket name, and "MY-OBJECT-KEY" with whatever you would like to name the file in S3)
77-
PutObjectRequest putRequest = new PutObjectRequest("MY-BUCKET", "MY-OBJECT-KEY",
74+
AmazonS3Client s3Client = new AmazonS3Client(credentialsProvider);
75+
File fileToUpload = YOUR_FILE;
76+
//(Replace "MY-BUCKET" with your S3 bucket name, and "MY-OBJECT-KEY" with whatever you would like to name the file in S3)
77+
PutObjectRequest putRequest = new PutObjectRequest("MY-BUCKET", "MY-OBJECT-KEY",
7878
fileToUpload);
79-
PutObjectResult putResponse = s3Client.putObject(putRequest);
79+
PutObjectResult putResponse = s3Client.putObject(putRequest);
8080
81-
GetObjectRequest getRequest = new GetObjectRequest("MY-BUCKET", "MY-OBJECT-KEY");
82-
S3Object getResponse = s3Client.getObject(getRequest);
83-
InputStream myObjectBytes = getResponse.getObjectContent();
81+
GetObjectRequest getRequest = new GetObjectRequest("MY-BUCKET", "MY-OBJECT-KEY");
82+
S3Object getResponse = s3Client.getObject(getRequest);
83+
InputStream myObjectBytes = getResponse.getObjectContent();
8484
85-
// Do what you want with the object
86-
87-
myObjectBytes.close();
85+
// Do what you want with the object
86+
87+
myObjectBytes.close();
8888
89-
return null;
89+
return null;
9090
}
9191
}
9292
@@ -175,10 +175,10 @@ Amazon Cognito Identity allows you to authenticate users to access your AWS reso
175175

176176
To create a Identity Pool
177177

178-
1. Log into the [Cognito Console](https://console.aws.amazon.com/cognito/home) and click the Get Started button (or the New Identity Pool button if your account already has an identity pool).
179-
2. Give your Identity Pool a unique name and either enable access to unauthenticated identities or follow the guides presented in the console to setup an authentication provider (Such as Amazon, Facebook, Google, Twitter, or be your own authentication provider). Then click create pool.
180-
3. You will need to create a role associated with your Identity Pool. This role specifies the actions that users in the identity pool are allowed to make. By default the console provides you with a role that allows the synchronization of user data from Cognito Sync and recording user events using Amazon Mobile Analytics. For some example ways to allow other services, or to revoke the permission for these default services see the [Getting Started Guide](http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/getting-started-android.html) and navigate to the service you are interested in to see an example of how to create an appropriate role.
181-
4. The Cognito console will then present you with a code snippet for getting AWS Credentials to your application. Keep this open as you may find it useful once you are ready to start coding with the SDK.
178+
1. Log into the [Cognito Console](https://console.aws.amazon.com/cognito/home) and click the Get Started button (or the New Identity Pool button if your account already has an identity pool).
179+
2. Give your Identity Pool a unique name and either enable access to unauthenticated identities or follow the guides presented in the console to setup an authentication provider (Such as Amazon, Facebook, Google, Twitter, or be your own authentication provider). Then click create pool.
180+
3. You will need to create a role associated with your Identity Pool. This role specifies the actions that users in the identity pool are allowed to make. By default the console provides you with a role that allows the synchronization of user data from Cognito Sync and recording user events using Amazon Mobile Analytics. For some example ways to allow other services, or to revoke the permission for these default services see the [Getting Started Guide](http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/getting-started-android.html) and navigate to the service you are interested in to see an example of how to create an appropriate role.
181+
4. The Cognito console will then present you with a code snippet for getting AWS Credentials to your application. Keep this open as you may find it useful once you are ready to start coding with the SDK.
182182

183183
### Depend on the AWS SDK for Android in your application
184184

@@ -278,4 +278,4 @@ If you are using a Mac, you may run into issues when trying to compile, because
278278

279279
## To learn more about Android Development
280280

281-
For more information on Andorid development, see the Android developer site at: [developer.android.com](http://developer.android.com/index.html)
281+
For more information on Andorid development, see the Android developer site at: [developer.android.com](http://developer.android.com/index.html)

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

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.4.1</version>
15+
<version>2.4.2</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.4.1</version>
23+
<version>2.4.2</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.4.1</version>
15+
<version>2.4.2</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.4.1</version>
23+
<version>2.4.2</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.4.1</version>
9+
<version>2.4.2</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.4.1</version>
16+
<version>2.4.2</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.4.1</version>
32+
<version>2.4.2</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.4.1
2+
fabric-version=2.4.2
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.4.1</version>
9+
<version>2.4.2</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.4.1</version>
16+
<version>2.4.2</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.4.1</version>
32+
<version>2.4.2</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.4.1</version>
15+
<version>2.4.2</version>
1616
</parent>
1717

1818
<dependencies>

aws-android-sdk-core/src/main/java/com/amazonaws/internal/config/InternalConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ private static Map<String, SignerConfig> getDefaultServiceSigners() {
151151
ret.put("s3", new SignerConfig("S3SignerType"));
152152
ret.put("sdb", new SignerConfig("QueryStringSignerType"));
153153
ret.put("runtime.lex", new SignerConfig("AmazonLexV4Signer"));
154+
ret.put("polly", new SignerConfig("AmazonPollyCustomPresigner"));
154155
return ret;
155156
}
156157

0 commit comments

Comments
 (0)