Skip to content

Commit bca6731

Browse files
minbiKarthikeyan
authored andcommitted
Staging release 2.12.5 (#793)
* 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 * Annotate code specific to API Level 23 and above in AWSKeyValueStore * Added API to accept key-value pairs which are appended to the connection username (#765) The connection username is used as user metadata by the service for the purpose of metrics calculation. * build android sdk with android-10 (#782) * Add sign out options * [MobileClient] Cleanup javadocs and remove unnecessary try..catch blocks * [MobileClient] Add developer authenticated identities to federatedSignIn fixes #577 * [MobileClient] Add test for developer authenticated idenities federatedSignIn * [MobileClient] Persist identity id for developer authenticated identities * [MobileClient] Add AWSMobileClient as client usage tracker in user agent * [MobileClient] Add device operations; Add error message to ReturningRunnable * [MobileClient] Add global sign-out functionality * [MobileClient] Add custom role arn to settings in federated sign-in persistence * [MobileClient] Add forgot password test; Fix sign out globally test * [MobileClient] [Userpools] [CognitoAuth] Add HostedUI and OAuth 2.0 code grant flow support [MobileClient] Add HostedUI and OAuth 2.0 code grant flow support [Userpools] Fix threading issues reported in issue #722 [CognitoAuth] Added methods to reset AuthHandler and get session without launching UI Fix erroneous user cancelled when redirecting back to app fixes #328 * [MobileClient] Fix multiple adds of SignInProvider to provider list fixes #766 * [MobileClient] Fix git merge issues * [MobileClient] Fix integration tests for new configuration * [CognitoAuth] Fix NPE when ASF feature turned off * [MobileClient] Finalize APIs before release, add persistence flag to OAuth 2.0 and HostedUI features * [AuthSDKs] Update maven repositories in pom to maven.google.com * [Core] Fix NPE when setting persistence in AWSKeyValueStore after initialization * [MobileClient] Ignore manual tests in automation * [MobileClient] Ignore drop-in UI test due to timeout; Default OAuth 2.0 client to persist * Fix the transition between persistence enabled and disabled in AWSKeyValueStore * Enable core, cognitoidentityprovider and cognitoauth integration tests on CircleCI * Update changelog for 2.12.5; Add mobile client; Remove IoT metrics * Skip reserved keynames (#791) * Skip reserved keynames * Add log when reserved key names are encountered * Bump version 2.12.5 (#792)
1 parent b71e7b8 commit bca6731

File tree

100 files changed

+4470
-599
lines changed

Some content is hidden

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

100 files changed

+4470
-599
lines changed

.circleci/config.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,38 @@ jobs:
188188
key: Libs-{{ .Revision }}
189189
paths:
190190
- lib
191+
build_api10:
192+
working_directory: ~/code
193+
docker:
194+
- image: circleci/android:api-27-alpha
195+
environment:
196+
JVM_OPTS: -Xmx3200m
197+
steps:
198+
- checkout
199+
- generate_gradle_wrapper
200+
- run:
201+
name: download android-10
202+
command:
203+
sudo yes | sdkmanager "platforms;android-10"
204+
- run:
205+
name: install python3-pip
206+
command: |
207+
sudo apt-get update
208+
sudo apt-get -y install python3-pip
209+
- run:
210+
name: install json parser
211+
command: sudo pip3 install demjson
212+
- run:
213+
name: update code for api10
214+
command: |
215+
python3 CircleciScripts/replace_android10.py "$(pwd)"
216+
rm aws-android-sdk-core/src/main/java/com/amazonaws/internal/keyvaluestore/KeyProvider18.java
217+
rm aws-android-sdk-core/src/main/java/com/amazonaws/internal/keyvaluestore/KeyProvider23.java
218+
cat aws-android-sdk-core/src/main/java/com/amazonaws/internal/keyvaluestore/AWSKeyValueStore.java
219+
- run:
220+
name: build the whole project
221+
command: |
222+
bash gradlew :aws-android-sdk-core:build -x test
191223
192224
unittest:
193225
working_directory: ~/code
@@ -640,6 +672,7 @@ workflows:
640672
build_test:
641673
jobs:
642674
- build
675+
- build_api10
643676
- unittest
644677
- pre_integrationtest:
645678
filters:
@@ -921,6 +954,12 @@ workflows:
921954
ignore: /.*/
922955
tags:
923956
only: /^(release|beta)_v[0-9]+.[0-9]+.[0-9]+$/
957+
- build_api10:
958+
filters:
959+
branches:
960+
ignore: /.*/
961+
tags:
962+
only: /^(release|beta)_v[0-9]+.[0-9]+.[0-9]+$/
924963
- unittest:
925964
filters:
926965
branches:
@@ -1134,6 +1173,36 @@ workflows:
11341173
ignore: /.*/
11351174
tags:
11361175
only: /^(release|beta)_v[0-9]+.[0-9]+.[0-9]+$/
1176+
- integrationtest:
1177+
name: CognitoIdentityProvider
1178+
testmodule: aws-android-sdk-cognitoidentityprovider-test
1179+
requires:
1180+
- pre_integrationtest
1181+
filters:
1182+
branches:
1183+
ignore: /.*/
1184+
tags:
1185+
only: /^(release|beta)_v[0-9]+.[0-9]+.[0-9]+$/
1186+
- integrationtest:
1187+
name: Core
1188+
testmodule: aws-android-sdk-core-test
1189+
requires:
1190+
- pre_integrationtest
1191+
filters:
1192+
branches:
1193+
ignore: /.*/
1194+
tags:
1195+
only: /^(release|beta)_v[0-9]+.[0-9]+.[0-9]+$/
1196+
- integrationtest:
1197+
name: CognitoAuth
1198+
testmodule: aws-android-sdk-cognitoauth
1199+
requires:
1200+
- pre_integrationtest
1201+
filters:
1202+
branches:
1203+
ignore: /.*/
1204+
tags:
1205+
only: /^(release|beta)_v[0-9]+.[0-9]+.[0-9]+$/
11371206
# - integrationtest:
11381207
# name: kinesisvideo
11391208
# testmodule: aws-android-sdk-kinesisvideo
@@ -1199,6 +1268,7 @@ workflows:
11991268
requires:
12001269
- unittest
12011270
- post_integrationtest
1271+
- build_api10
12021272
filters:
12031273
branches:
12041274
ignore: /.*/

.idea/modules.xml

Lines changed: 26 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Change Log - AWS SDK for Android
22

3+
## [Release 2.12.5](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.12.5)
4+
5+
### New Features
6+
7+
* **AWS Mobile Client**
8+
* Added support for SAML in `federatedSignIn()`.
9+
* Added support for developer authenticated identities in `federatedSignIn()`. See [issue #577](https://github.com/aws-amplify/aws-sdk-android/issues/577)
10+
* Added support Cognito Hosted UI in `showSignIn()`.
11+
* Added support to use OAuth 2.0 provider like `Auth0` in `showSignIn()`. Federation for AWS credentials requires OpenID support from the provider.
12+
* Added support for global sign out.
13+
* Added support for device features which include `list`, `get`, `updateStatus` and `forget`. These APIs are available through `getDeviceOperations()`.
14+
15+
* **Amazon Cognito Identity Provider**
16+
* Fixed threading issues to ensure callbacks are made from main looper when `xInBackground()` method variants are used. See [issue #722](https://github.com/aws-amplify/aws-sdk-android/issues/722)
17+
18+
* **Amazon Cognito Auth**
19+
* Fixed erroneous user cancelled error when redirecting back to app. See [issue #328](https://github.com/aws-amplify/aws-sdk-android/issues/328)
20+
321
## [Release 2.12.4](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.12.4)
422

523
* **AWS Core**
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
from utils import replacefiles
2+
import demjson
3+
import sys
4+
import re
5+
import os
6+
root = sys.argv[1]
7+
8+
replaces = [
9+
{
10+
"match" : 'android-23',
11+
"replace" : 'android-10',
12+
"files" : [
13+
"aws-android-sdk-core/build.gradle"
14+
]
15+
} ,
16+
{
17+
"match" : 'android-23.jar',
18+
"replace" : 'android-10.jar',
19+
"files" : [
20+
"aws-android-sdk-core/build.gradle"
21+
]
22+
} ,
23+
]
24+
replacefiles(root, replaces)
25+
26+
27+
28+
29+
AWSKeyValueStoreFile = os.path.join(root,"aws-android-sdk-core/src/main/java/com/amazonaws/internal/keyvaluestore/AWSKeyValueStore.java")
30+
newcontent = ""
31+
with open(AWSKeyValueStoreFile, 'r') as myfile:
32+
content = myfile.read()
33+
pattern = r'//@apiLevel23Start[\s\S]*?//@apiLevel23End'
34+
repl = r""
35+
newcontent = re.sub(pattern, repl, content)
36+
37+
38+
pattern = r'//@apiLevel18Start[\s\S]*?//@apiLevel18End'
39+
repl = r""
40+
newcontent = re.sub(pattern, repl, newcontent)
41+
with open(AWSKeyValueStoreFile,"w") as myfile:
42+
myfile.write(newcontent)
43+
44+

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

aws-android-sdk-auth-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
<parent>
2222
<groupId>com.amazonaws</groupId>
2323
<artifactId>aws-android-sdk-pom</artifactId>
24-
<version>2.12.4</version>
24+
<version>2.12.5</version>
2525
</parent>
2626

2727
<dependencies>
2828
<dependency>
2929
<groupId>com.amazonaws</groupId>
3030
<artifactId>aws-android-sdk-core</artifactId>
3131
<optional>false</optional>
32-
<version>2.12.4</version>
32+
<version>2.12.5</version>
3333
</dependency>
3434

3535
<dependency>

aws-android-sdk-auth-facebook/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
<parent>
2222
<groupId>com.amazonaws</groupId>
2323
<artifactId>aws-android-sdk-pom</artifactId>
24-
<version>2.12.4</version>
24+
<version>2.12.5</version>
2525
</parent>
2626

2727
<repositories>
2828
<repository>
29-
<id>android-support</id>
30-
<url>file://${env.ANDROID_HOME}/extras/android/m2repository/</url>
29+
<id>google-maven</id>
30+
<url>https://maven.google.com</url>
3131
</repository>
3232
</repositories>
3333

@@ -36,7 +36,7 @@
3636
<groupId>com.amazonaws</groupId>
3737
<artifactId>aws-android-sdk-auth-core</artifactId>
3838
<optional>false</optional>
39-
<version>2.12.4</version>
39+
<version>2.12.5</version>
4040
<type>aar</type>
4141
</dependency>
4242
<dependency>

aws-android-sdk-auth-google/pom.xml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@
2121
<parent>
2222
<groupId>com.amazonaws</groupId>
2323
<artifactId>aws-android-sdk-pom</artifactId>
24-
<version>2.12.4</version>
24+
<version>2.12.5</version>
2525
</parent>
2626

2727
<repositories>
2828
<repository>
29-
<id>android-support</id>
30-
<url>file://${env.ANDROID_HOME}/extras/android/m2repository/</url>
31-
</repository>
32-
<repository>
33-
<id>google-android-gms</id>
34-
<url>file://${env.ANDROID_HOME}/extras/google/m2repository/</url>
29+
<id>google-maven</id>
30+
<url>https://maven.google.com</url>
3531
</repository>
3632
</repositories>
3733

@@ -40,7 +36,7 @@
4036
<groupId>com.amazonaws</groupId>
4137
<artifactId>aws-android-sdk-auth-core</artifactId>
4238
<optional>false</optional>
43-
<version>2.12.4</version>
39+
<version>2.12.5</version>
4440
<type>aar</type>
4541
</dependency>
4642

0 commit comments

Comments
 (0)