Skip to content

Commit

Permalink
AWS SDK for Android 2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed Apr 19, 2017
1 parent d4e77c5 commit a212803
Show file tree
Hide file tree
Showing 140 changed files with 6,288 additions and 2,560 deletions.
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
# Change Log - AWS SDK for Android

## [Release 2.4.2](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.4.2)

### Improvements:
- **Amazon Lex**
- Amazon Lex is now Generally Available.
- Added support for input transcripts.

- **Amazon Polly**
- Added support for multiple Lexicons in presigned request.
- Added support for speech marks.

- **Amazon Rekognition**
- Added support for content moderation and age range estimation. See [issue #281](https://github.com/aws/aws-sdk-android/issues/281)

### Bug Fixes:
- **Amazon DynamoDB**
- Fixed bug which did not use credentials provider when available in method `getClient(Region)`.
- **Amazon S3**
- Fixed bug which caused gradle build error on commons-io. See [issue #282](https://github.com/aws/aws-sdk-android/issues/282)

## [Release 2.4.1](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.4.1)

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

### Bug Fixes
- **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)
- **AWS Core Runtime Library**: Fixed an issue in Maven distribution where an incorrect version string is set in "User-Agent".
- **AWS Core Runtime Library**: Fixed an issue in Maven distribution where an incorrect version string is set in "User-Agent".
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,29 @@ private class S3Example extends AsyncTask<Void,Void,Void>{
@Override
protected Void doInBackground(Void... params) {
// Initialize the Amazon Cognito credentials provider
CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
// Initialize the Amazon Cognito credentials provider
CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
MY-ACTIVITY.getApplicationContext(), // Application Context
"MY-IDENTITY-POOL-ID", // Identity Pool ID
Regions.SELECT_YOUR_REGION // Region enum
);
AmazonS3Client s3Client = new AmazonS3Client(credentialsProvider);
File fileToUpload = YOUR_FILE;
//(Replace "MY-BUCKET" with your S3 bucket name, and "MY-OBJECT-KEY" with whatever you would like to name the file in S3)
PutObjectRequest putRequest = new PutObjectRequest("MY-BUCKET", "MY-OBJECT-KEY",
AmazonS3Client s3Client = new AmazonS3Client(credentialsProvider);
File fileToUpload = YOUR_FILE;
//(Replace "MY-BUCKET" with your S3 bucket name, and "MY-OBJECT-KEY" with whatever you would like to name the file in S3)
PutObjectRequest putRequest = new PutObjectRequest("MY-BUCKET", "MY-OBJECT-KEY",
fileToUpload);
PutObjectResult putResponse = s3Client.putObject(putRequest);
PutObjectResult putResponse = s3Client.putObject(putRequest);
GetObjectRequest getRequest = new GetObjectRequest("MY-BUCKET", "MY-OBJECT-KEY");
S3Object getResponse = s3Client.getObject(getRequest);
InputStream myObjectBytes = getResponse.getObjectContent();
GetObjectRequest getRequest = new GetObjectRequest("MY-BUCKET", "MY-OBJECT-KEY");
S3Object getResponse = s3Client.getObject(getRequest);
InputStream myObjectBytes = getResponse.getObjectContent();
// Do what you want with the object
myObjectBytes.close();
// Do what you want with the object
myObjectBytes.close();
return null;
return null;
}
}
Expand Down Expand Up @@ -175,10 +175,10 @@ Amazon Cognito Identity allows you to authenticate users to access your AWS reso

To create a Identity Pool

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).
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.
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.
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.
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).
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.
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.
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.

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

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

## To learn more about Android Development

For more information on Andorid development, see the Android developer site at: [developer.android.com](http://developer.android.com/index.html)
For more information on Andorid development, see the Android developer site at: [developer.android.com](http://developer.android.com/index.html)
4 changes: 2 additions & 2 deletions aws-android-sdk-apigateway-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-autoscaling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-cloudwatch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
</dependencies>

Expand Down
6 changes: 3 additions & 3 deletions aws-android-sdk-cognito/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<artifactId>aws-android-sdk-cognito</artifactId>
<packaging>jar</packaging>
<name>AWS SDK for Android - Amazon Cognito Sync</name>
<version>2.4.1</version>
<version>2.4.2</version>
<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>
<url>http://aws.amazon.com/sdkforandroid</url>

<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<licenses>
Expand All @@ -29,7 +29,7 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fabric-identifier=com.amazonaws.aws-android-sdk-cognito
fabric-version=2.4.1
fabric-version=2.4.2
fabric-build-type=binary
6 changes: 3 additions & 3 deletions aws-android-sdk-cognitoidentityprovider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<artifactId>aws-android-sdk-cognitoidentityprovider</artifactId>
<packaging>jar</packaging>
<name>AWS SDK for Android - Amazon Cognito Identity Provider</name>
<version>2.4.1</version>
<version>2.4.2</version>
<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>
<url>http://aws.amazon.com/sdkforandroid</url>

<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<licenses>
Expand All @@ -29,7 +29,7 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
Expand Down
2 changes: 1 addition & 1 deletion aws-android-sdk-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private static Map<String, SignerConfig> getDefaultServiceSigners() {
ret.put("s3", new SignerConfig("S3SignerType"));
ret.put("sdb", new SignerConfig("QueryStringSignerType"));
ret.put("runtime.lex", new SignerConfig("AmazonLexV4Signer"));
ret.put("polly", new SignerConfig("AmazonPollyCustomPresigner"));
return ret;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class VersionInfoUtils {
private static final int DEFAULT_STRING_LENGTH = 128;

/** SDK version info */
private static volatile String version = "2.4.1";
private static volatile String version = "2.4.2";
// changed build
// logic

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fabric-identifier=com.amazonaws.aws-android-sdk-core
fabric-version=2.4.1
fabric-version=2.4.2
fabric-build-type=binary
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class VersionInfoUtilsTest {

@Test
public void getVersion() {
assertEquals("2.4.1", VersionInfoUtils.getVersion());
assertEquals("2.4.2", VersionInfoUtils.getVersion());
}

@Test
Expand Down
8 changes: 4 additions & 4 deletions aws-android-sdk-ddb-mapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-ddb</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-s3</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ public DynamoDBMapper(
this.db = dynamoDB;
this.config = config;
this.transformer = transformer;

if (s3CredentialsProvider == null) {
this.s3cc = null;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public AmazonS3Client getClient(Region s3region) {
if (client != null) {
return client;
}
if (credentialProvider == null) {
if (credentialProvider != null) {
client = new AmazonS3Client(credentialProvider);
} else {
client = new AmazonS3Client(credentials);
Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-ddb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-ec2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-elb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-iot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>org.eclipse.paho</groupId>
Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-kinesis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.4.1</version>
<version>2.4.2</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.4.1</version>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
Loading

0 comments on commit a212803

Please sign in to comment.