Skip to content

Commit

Permalink
AWS SDK for Android 2.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed Oct 26, 2017
1 parent 8c77793 commit 948f71e
Show file tree
Hide file tree
Showing 53 changed files with 613 additions and 339 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log - AWS SDK for Android

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

### Bug Fixes:

- **Amazon Pinpoint**
- Fix locale issue for endpoint profile updates. See [issue #355](https://github.com/aws/aws-sdk-android/issues/355) and see [issue #354](https://github.com/aws/aws-sdk-android/issues/354)

- **Amazon S3**
- Fixed a bug in the download progress reporting for large files where the last status update could be a jump of 75% or more. The default for notification used to be 8K bytes chunks, it has been changed to 1024K bytes. The value can be changed using the `setNotificationThreshold` method of AmazonS3Client instead of being a constant. See [issue #333](https://github.com/aws/aws-sdk-android/issues/333)

- **AWS IoT**
- Fix validation for endpoint in China that ends with ".cn". See [issue #337](https://github.com/aws/aws-sdk-android/issues/337)

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

### Enhancements:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ There are only a few fundamentals that are helpful to know when developing again

### Basic Service API Calls

The SDK provides access to many AWS Services. At the most basic level the SDK provides a request/response model for many of the various service methods. At this level, for a given service, you will have a client that accepts request objects and will pass back a response object, or throw an error. This basic model is shown in the above example. Looking at the [Javadoc](http://docs.aws.amazon.com/AWSAndroidSDK/latest/javadoc/) you will notice that services typically have a com.amazonaws.services.*servicename* packageand com.amazonaws.services.*servicename*.model package . This *servicename* package contains the client that you will pass request/response objects to in order to make service calls. The *servicename*.model package contains classes that model the request and response parameters of calls to and from AWS services.
The SDK provides access to many AWS Services. At the most basic level the SDK provides a request/response model for many of the various service methods. At this level, for a given service, you will have a client that accepts request objects and will pass back a response object, or throw an error. This basic model is shown in the above example. Looking at the [Javadoc](http://docs.aws.amazon.com/AWSAndroidSDK/latest/javadoc/) you will notice that services typically have a com.amazonaws.services.*servicename* package and com.amazonaws.services.*servicename*.model package . This *servicename* package contains the client that you will pass request/response objects to in order to make service calls. The *servicename*.model package contains classes that model the request and response parameters of calls to and from AWS services.


### Mobile Connectors
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 Android 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.6.5</version>
<version>2.6.6</version>
</parent>

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

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

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

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-auth-facebook/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.6.5</version>
<version>2.6.6</version>
</parent>

<repositories>
Expand All @@ -36,7 +36,7 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-core</artifactId>
<optional>false</optional>
<version>2.6.5</version>
<version>2.6.6</version>
<type>aar</type>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-auth-google/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.6.5</version>
<version>2.6.6</version>
</parent>

<repositories>
Expand All @@ -40,7 +40,7 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-core</artifactId>
<optional>false</optional>
<version>2.6.5</version>
<version>2.6.6</version>
<type>aar</type>
</dependency>

Expand Down
10 changes: 5 additions & 5 deletions aws-android-sdk-auth-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.6.5</version>
<version>2.6.6</version>
</parent>

<repositories>
Expand All @@ -36,28 +36,28 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-core</artifactId>
<optional>false</optional>
<version>2.6.5</version>
<version>2.6.6</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-google</artifactId>
<optional>true</optional>
<version>2.6.5</version>
<version>2.6.6</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-facebook</artifactId>
<optional>true</optional>
<version>2.6.5</version>
<version>2.6.6</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-userpools</artifactId>
<optional>true</optional>
<version>2.6.5</version>
<version>2.6.6</version>
<type>aar</type>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class SignInView extends LinearLayout {
private static final int IMAGE_LAYOUT_MARGINS = dp(10);

/** String that represents the SDK Version. */
private static final String SDK_VERSION = "2.6.5";
private static final String SDK_VERSION = "2.6.6";

/** Common Prefix of the namespaces of different SignIn providers. */
private static final String NAMESPACE_COMMON_PREFIX = "com.amazonaws.mobile.auth";
Expand Down
6 changes: 3 additions & 3 deletions aws-android-sdk-auth-userpools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.6.5</version>
<version>2.6.6</version>
</parent>

<repositories>
Expand All @@ -36,14 +36,14 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-cognitoidentityprovider</artifactId>
<optional>false</optional>
<version>2.6.5</version>
<version>2.6.6</version>
</dependency>

<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-core</artifactId>
<optional>false</optional>
<version>2.6.5</version>
<version>2.6.6</version>
<type>aar</type>
</dependency>

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.6.5</version>
<version>2.6.6</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.6.5</version>
<version>2.6.6</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.6.5</version>
<version>2.6.6</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.6.5</version>
<version>2.6.6</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.6.5</version>
<version>2.6.6</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.6.5</version>
<version>2.6.6</version>
</parent>

<licenses>
Expand All @@ -29,7 +29,7 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.6.5</version>
<version>2.6.6</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.6.5
fabric-version=2.6.6
fabric-build-type=binary
4 changes: 2 additions & 2 deletions aws-android-sdk-cognitoauth/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<artifactId>aws-android-sdk-cognitoauth</artifactId>
<packaging>aar</packaging>
<name>AWS SDK for Android - Amazon Cognito Auth</name>
<version>2.6.5</version>
<version>2.6.6</version>
<description>The AWS Android SDK with app integration for Amazon Cognito Your User Pools Service</description>
<url>http://aws.amazon.com/sdkforandroid</url>

<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.6.5</version>
<version>2.6.6</version>
</parent>

<repositories>
Expand Down
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.6.5</version>
<version>2.6.6</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.6.5</version>
<version>2.6.6</version>
</parent>

<licenses>
Expand All @@ -29,7 +29,7 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.6.5</version>
<version>2.6.6</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.6.5</version>
<version>2.6.6</version>
</parent>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@
*/
public class ProgressReportingInputStream extends SdkFilterInputStream {

/** Constant to represent 1KB. */
private static final int BYTES_IN_KB = 1024;

/** Constant to represent the Notification Threshold in KB. */
private static final int THRESHOLD_IN_KB = 8;

/** The threshold of bytes between notifications. */
private static final int NOTIFICATION_THRESHOLD = 8 * 1024;
private int notificationThreshold = THRESHOLD_IN_KB * BYTES_IN_KB;

/** The listener callback executor */
private final ProgressListenerCallbackExecutor listenerCallbackExecutor;
Expand Down Expand Up @@ -66,6 +72,17 @@ public ProgressReportingInputStream(final InputStream in,
this.listenerCallbackExecutor = listenerCallbackExecutor;
}

/**
* Sets the number of Kbytes that need to be written before updates to the
* listener occur.
*
* @param threshold Number of Kbytes that needs to be written before
* write update notification occurs.
*/
public void setNotificationThreshold(final int threshold) {
this.notificationThreshold = threshold * BYTES_IN_KB;
}

/**
* Sets whether this input stream should fire an event with code
* {@link ProgressEvent#COMPLETED_EVENT_CODE} when this stream runs out of
Expand Down Expand Up @@ -141,7 +158,8 @@ private void notifyCompleted() {

private void notify(int bytesRead) {
unnotifiedByteCount += bytesRead;
if (unnotifiedByteCount >= NOTIFICATION_THRESHOLD) {

if (unnotifiedByteCount >= this.notificationThreshold) {
listenerCallbackExecutor.progressChanged(new ProgressEvent(unnotifiedByteCount));
unnotifiedByteCount = 0;
}
Expand Down
Loading

0 comments on commit 948f71e

Please sign in to comment.