Skip to content

Commit b1fd18d

Browse files
author
AWS
committed
AWS SDK for Android 2.6.0
1 parent c5067e0 commit b1fd18d

File tree

154 files changed

+9504
-321
lines changed

Some content is hidden

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

154 files changed

+9504
-321
lines changed

CHANGELOG.md

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

3+
## [Release 2.6.0](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.6.0)
4+
5+
### New Features:
6+
7+
- **AWS Auth SDK**
8+
- Added new SDK for configurable User SignIn Screen with Amazon Cognito UserPools, Facebook SignIn and Google SignIn.
9+
10+
- **AWS Core Runtime**
11+
- Added support for a configuration file `awsconfiguration.json` that can be used to construct:
12+
- `CognitoCredentialsProvider`, `CognitoCachingCredentialsProvider`, `CognitoUserPool`, `TransferUtility`, `DynamoDBMapper`, `PinpointConfiguration`, `CognitoSyncManager`, and `LambdaInvokerFactory`.
13+
14+
### Improvements:
15+
16+
- **AWS S3**
17+
- Add builder pattern constructor to `TransferUtility`.
18+
- Add default bucket property in `TransferUtility` builder. The default bucket will be used when no bucket is specified.
19+
20+
- **AWS Lambda**
21+
- Add builder pattern constructor to `LambdaInvokerFactory`.
22+
23+
- **Amazon DynamoDB**
24+
- Add builder pattern constructor to `DynamoDBMapper`.
25+
26+
- **Amazon Pinpoint**
27+
- Add configuration option to post notifications even if the app is in the foreground.
28+
29+
### Bug Fixes:
30+
31+
- **Amazon Pinpoint**
32+
- Fixed bug that caused Pinpoint endpoint profile to incorrectly calculate the number of profile attributes and metrics.
33+
334
## [Release 2.4.7](https://github.com/aws/aws-sdk-android/releases/tag/release_v2.4.7)
435

536
### Improvements:

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

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

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.amazonaws</groupId>
6+
<artifactId>aws-android-sdk-auth-core</artifactId>
7+
<packaging>aar</packaging>
8+
<name>AWS SDK for Android - AWS Authentication Core</name>
9+
<description>The AWS Android SDK for AWS Authentication Core module holds the client classes that are used for enabling communication with Amazon CognitoIdentityProvider, Amazon Cognito UserPools, Facebook and Google SignIn Providers</description>
10+
<url>http://aws.amazon.com/sdkforandroid</url>
11+
12+
<properties>
13+
<project.build.sourceEncoding>
14+
UTF-8
15+
</project.build.sourceEncoding>
16+
<project.reporting.outputEncoding>
17+
UTF-8
18+
</project.reporting.outputEncoding>
19+
</properties>
20+
21+
<parent>
22+
<groupId>com.amazonaws</groupId>
23+
<artifactId>aws-android-sdk-pom</artifactId>
24+
<version>2.6.0</version>
25+
</parent>
26+
27+
<repositories>
28+
<repository>
29+
<id>android-support</id>
30+
<url>file://${env.ANDROID_HOME}/extras/android/m2repository/</url>
31+
</repository>
32+
</repositories>
33+
34+
<dependencies>
35+
<dependency>
36+
<groupId>com.amazonaws</groupId>
37+
<artifactId>aws-android-sdk-core</artifactId>
38+
<optional>false</optional>
39+
<version>2.6.0</version>
40+
</dependency>
41+
42+
<dependency>
43+
<groupId>com.google.android</groupId>
44+
<artifactId>android</artifactId>
45+
<version>4.1.1.4</version>
46+
<scope>provided</scope>
47+
</dependency>
48+
49+
<dependency>
50+
<groupId>com.android.support</groupId>
51+
<artifactId>support-v4</artifactId>
52+
<version>24.2.0</version>
53+
<type>aar</type>
54+
<scope>provided</scope>
55+
</dependency>
56+
</dependencies>
57+
58+
<build>
59+
<plugins>
60+
<plugin>
61+
<groupId>com.simpligility.maven.plugins</groupId>
62+
<artifactId>android-maven-plugin</artifactId>
63+
<version>4.5.0</version>
64+
<extensions>true</extensions>
65+
<configuration>
66+
<sdk>
67+
<platform>11</platform>
68+
<buildTools>19.1.0</buildTools>
69+
</sdk>
70+
</configuration>
71+
</plugin>
72+
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-compiler-plugin</artifactId>
76+
</plugin>
77+
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-javadoc-plugin</artifactId>
81+
</plugin>
82+
</plugins>
83+
</build>
84+
</project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest package="com.amazonaws.mobile.auth.core"
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:versionCode="1"
5+
android:versionName="1.0"
6+
android:name="android.support.multidex.MultiDexApplication">
7+
8+
<application android:allowBackup="true"/>
9+
</manifest>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* Copyright 2013-2017 Amazon.com, Inc. or its affiliates.
3+
* All Rights Reserved.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
package com.amazonaws.mobile.auth.core;
19+
20+
import android.app.Activity;
21+
import android.app.AlertDialog;
22+
import android.content.Context;
23+
import android.util.Log;
24+
import android.widget.Toast;
25+
26+
import com.amazonaws.mobile.auth.core.R;
27+
28+
/**
29+
* A default base class easing the work required for implementing the SignInResultHandler for
30+
* {@link IdentityManager#signInOrSignUp(Context, SignInResultHandler)} by providing default
31+
* behavior in the case that the user cancels signing in or encounters an error. The default for
32+
* canceling is to toast that sign-in was canceled. The default for a sign-in error is to show
33+
* an alert dialog specifying the error message.
34+
*/
35+
public abstract class DefaultSignInResultHandler implements SignInResultHandler {
36+
private static final String LOG_TAG = DefaultSignInResultHandler.class.getSimpleName();
37+
38+
/**
39+
* User cancelled signing in with a provider on the sign-in activity.
40+
* Note: The user is still on the sign-in activity when this call is made.
41+
* @param provider the provider the user canceled with.
42+
*/
43+
public void onIntermediateProviderCancel(Activity callingActivity, IdentityProvider provider) {
44+
Log.d(LOG_TAG, String.format("%s Sign-In flow is canceled", provider.getDisplayName()));
45+
}
46+
47+
/**
48+
* User encountered an error when attempting to sign-in with a provider.
49+
* Note: The user is still on the sign-in activity when this call is made.
50+
* @param provider the provider the user attempted to sign-in with that encountered an error.
51+
* @param ex the exception that occurred.
52+
*/
53+
public void onIntermediateProviderError(Activity callingActivity, IdentityProvider provider, Exception ex) {
54+
final String failureFormatString = callingActivity.getString(R.string.sign_in_failure_message_format);
55+
Log.e(LOG_TAG, String.format(failureFormatString,
56+
provider.getDisplayName(), ex.getMessage()), ex);
57+
}
58+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright 2013-2017 Amazon.com, Inc. or its affiliates.
3+
* All Rights Reserved.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
package com.amazonaws.mobile.auth.core;
19+
20+
/**
21+
* Allows the application to get an asynchronous response with user's
22+
* unique identifier.
23+
*/
24+
public interface IdentityHandler {
25+
/**
26+
* Handles the user's unique identifier.
27+
* @param identityId Amazon Cognito Identity ID which uniquely identifies
28+
* the user.
29+
*/
30+
void onIdentityId(final String identityId);
31+
32+
/**
33+
* Handles any error that might have occurred while getting the user's
34+
* unique identifier from Amazon Cognito.
35+
* @param exception exception
36+
*/
37+
void handleError(final Exception exception);
38+
}

0 commit comments

Comments
 (0)