Skip to content

Commit

Permalink
Update changelog and bump version for 2.12.4 (#783)
Browse files Browse the repository at this point in the history
* Secure information stored in SharedPreferences

* Lower aws-android-sdk-core-test compile and target sdk version to 27

* Add a symlink to android-23.jar for core

* Add a gradle task that creates a symlink to android-23.jar for AWS Core

* Fix the gradle task that creates symbolic link to android-23.jar

* Change config.yml to setup android-23

* Enable core, cognitoidentityprovider and cognitoauth integration tests on CircleCI

* Enable core, cognitoidentityprovider and cognitoauth integration tests on CircleCI

* Fix pom.xml

* Improve exception handling in AWSKeyValueStore

* [2.12.3] Bump the patch version of 2.12.z

* Update 2.12.3 CHANGELOG

* Add the missing bucket prefixes to CleanupBucketIntegrationTests

* Fix a bug where migrating expirationDate in CognitoCachingCredentialsProvider crashes

* [2.12.4] Update changelog and bump version
  • Loading branch information
Karthikeyan authored Mar 11, 2019
1 parent 6af4dec commit a7a13b5
Show file tree
Hide file tree
Showing 46 changed files with 113 additions and 101 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log - AWS SDK for Android

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

* **AWS Core**
* Fixed a crash in initializing `CognitoCachingCredentialsProvider` while migrating the data stored under `expirationDate`.

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

### Enhancements
Expand Down
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.12.3</version>
<version>2.12.4</version>
</parent>

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

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.12.3</version>
<version>2.12.4</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.12.3</version>
<version>2.12.4</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.12.3</version>
<version>2.12.4</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.12.3</version>
<version>2.12.4</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.12.3</version>
<version>2.12.4</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.12.3</version>
<version>2.12.4</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.12.3</version>
<version>2.12.4</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-google</artifactId>
<optional>true</optional>
<version>2.12.3</version>
<version>2.12.4</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-facebook</artifactId>
<optional>true</optional>
<version>2.12.3</version>
<version>2.12.4</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-userpools</artifactId>
<optional>true</optional>
<version>2.12.3</version>
<version>2.12.4</version>
<type>aar</type>
</dependency>
<dependency>
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.12.3</version>
<version>2.12.4</version>
</parent>

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

<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-auth-core</artifactId>
<optional>false</optional>
<version>2.12.3</version>
<version>2.12.4</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.12.3</version>
<version>2.12.4</version>
</parent>

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

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

<licenses>
Expand All @@ -29,7 +29,7 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.12.3</version>
<version>2.12.4</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.12.3
fabric-version=2.12.4
fabric-build-type=binary
6 changes: 3 additions & 3 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.12.3</version>
<version>2.12.4</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.12.3</version>
<version>2.12.4</version>
</parent>

<repositories>
Expand Down Expand Up @@ -53,7 +53,7 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.12.3</version>
<version>2.12.4</version>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
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.12.3</version>
<version>2.12.4</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.12.3</version>
<version>2.12.4</version>
</parent>

<licenses>
Expand All @@ -29,7 +29,7 @@
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.12.3</version>
<version>2.12.4</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
Expand Down
4 changes: 2 additions & 2 deletions aws-android-sdk-comprehend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.12.3</version>
<version>2.12.4</version>
</parent>
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.12.3</version>
<version>2.12.4</version>
</dependency>
</dependencies>
<build>
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.12.3</version>
<version>2.12.4</version>
</parent>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,26 @@ public AWSKeyValueStore(final Context context,
Context.MODE_PRIVATE);

logger.info("Detected Android API Level = " + apiLevel);

if (apiLevel >= ANDROID_API_LEVEL_23) {
//@apiLevel23Start
this.keyAlias = sharedPreferencesName + KEY_STORE_ALIAS_FOR_AES_SUFFIX;
logger.info("Using keyAlias = " + keyAlias);
keyProvider = new KeyProvider23();
encryptionKey = keyProvider.getKey(sharedPreferencesForEncryptionKey, keyAlias, context);
//@apiLevel23End
} else if (apiLevel >= ANDROID_API_LEVEL_18) {
//@apiLevel18Start
this.keyAlias = sharedPreferencesName + KEY_STORE_ALIAS_FOR_RSA_SUFFIX;
logger.info("Using keyAlias = " + keyAlias);
keyProvider = new KeyProvider18();
encryptionKey = keyProvider.getKey(sharedPreferencesForEncryptionKey, keyAlias, context);
//@apiLevel18End
} else if (apiLevel >= ANDROID_API_LEVEL_10) {
//@apiLevel10Start
keyProvider = new KeyProvider10();
encryptionKey = keyProvider.getKey(sharedPreferencesForEncryptionKey, null, context);
//@apiLevel10End
} else {
logger.error("API Level " +
String.valueOf(Build.VERSION.SDK_INT) +
Expand Down Expand Up @@ -280,8 +287,8 @@ private void onMigrateFromNoEncryption() {
Map<String, ?> map = sharedPreferences.getAll();
for (String spKey : map.keySet()) {
if (!spKey.endsWith(SHARED_PREFERENCES_DATA_IDENTIFIER_SUFFIX) &&
!spKey.endsWith(SHARED_PREFERENCES_IV_SUFFIX) &&
!spKey.endsWith(SHARED_PREFERENCES_STORE_VERSION_SUFFIX)) {
!spKey.endsWith(SHARED_PREFERENCES_IV_SUFFIX) &&
!spKey.endsWith(SHARED_PREFERENCES_STORE_VERSION_SUFFIX)) {

// Check if its an instance of the dataType.
if (map.get(spKey) instanceof Long) {
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.12.3";
private static volatile String version = "2.12.4";
// 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.12.3
fabric-version=2.12.4
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.12.3", VersionInfoUtils.getVersion());
assertEquals("2.12.4", VersionInfoUtils.getVersion());
}

@Test
Expand Down
6 changes: 3 additions & 3 deletions aws-android-sdk-ddb-document/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-pom</artifactId>
<version>2.12.3</version>
<version>2.12.4</version>
</parent>

<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-core</artifactId>
<optional>false</optional>
<version>2.12.3</version>
<version>2.12.4</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-android-sdk-ddb</artifactId>
<optional>false</optional>
<version>2.12.3</version>
<version>2.12.4</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
Expand Down
Loading

0 comments on commit a7a13b5

Please sign in to comment.