Skip to content

Commit

Permalink
Auth category (#445)
Browse files Browse the repository at this point in the history
* Auth Category to Staging Branch [Do Not Merge To Master] (#330)

* Initial commit

* Fixes checkstyle

* Raise minSdkVersion to 16 (#327)

Given the vanishingly small number of ICS users according to Google's
Distribution Dashboard and our own log analysis and industry trends
(Google Play Services supports API Level 16+, for example), we are
dropping support for API Level 15.

* Updated dependencies

* Update the plugin key for analytics to match one generated by the cli and update configuration method (#328)

* Updates Javadocs

* Addresses PR feedback

* Added hashCode, toString, and equals methods

* Addresses round 2 of PR comments

Co-authored-by: John Pignata <[email protected]>
Co-authored-by: Roshan Kumar <[email protected]>

* Ddaudeli/auth category (#344)

* Adds readme for user acceptance

* Updates readme

* Sign In and Fetch Session (#368)

* Adds readme for user acceptance

* Updates readme

* Sign In and Fetch Session

* Addresses PR comments

* One more fix

* Adds confirmSignIn (#382)

* Adds forgotPassword/confirmForgotPassword (#383)

* Adds social sign in (#386)

* Update README.md

* Adds getCurrentUser and changePassword (#393)

* Adds social sign in

* Adds getCurrentUser and changePassword

* Initial addressing of PR comments

* Additional PR feedback addressed

* Removes unused variable

* Auth Sign In/Sign Up Options Updates (#417)

* Update options objects to meet design review

* Minor fix to builder constructor

* Addresses PR feedback

* Refactors methods to match design and adds unit tests (#433)

* Refactors methods to design and adds unit tests

* Adds NonNull/Nullable annotation

* Corrects minor spacing

* Addresses PR comment

* Round 2 of PR feedback

* Adds additional JavaDocs to meet new rule

* Updates Javadocs

* Addresses PR feedback
  • Loading branch information
TrekSoft authored May 13, 2020
1 parent b352d8b commit fdb36b4
Show file tree
Hide file tree
Showing 51 changed files with 4,494 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aws-analytics-pinpoint/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POM_ARTIFACT_ID=aws-analytics-pinpoint
POM_NAME=Amplify Framework for Android - Analytics
POM_DESCRIPTION=Amplify Framework for Android - Analytics Plugin for Amazon Pinpoint (Preview)
POM_DESCRIPTION=Amplify Framework for Android - Analytics Plugin for Amazon Pinpoint
POM_PACKAGING=aar
2 changes: 1 addition & 1 deletion aws-api/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POM_ARTIFACT_ID=aws-api
POM_NAME=Amplify Framework for Android - API
POM_DESCRIPTION=Amplify Framework for Android - API Plugin for REST and GraphQL (Preview)
POM_DESCRIPTION=Amplify Framework for Android - API Plugin for REST and GraphQL
POM_PACKAGING=aar
16 changes: 16 additions & 0 deletions aws-auth-cognito/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/build

#amplify
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/mock-data
amplify/backend/amplify-meta.json
amplify/backend/awscloudformation
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
amplifyconfiguration.json
amplify-gradle-config.json
amplifyxc.config
34 changes: 34 additions & 0 deletions aws-auth-cognito/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

apply plugin: 'com.android.library'
apply from: rootProject.file("configuration/publishing.gradle")
apply from: rootProject.file("configuration/checkstyle.gradle")

dependencies {
implementation project(path: ':core')
implementation dependency.androidx.appcompat
implementation dependency.aws.mobileclient
implementation dependency.aws.cognitoauth

testImplementation project(path: ':testutils')
testImplementation dependency.junit
testImplementation dependency.mockito
testImplementation (dependency.robolectric) {
// https://github.com/robolectric/robolectric/issues/5245
exclude group: 'com.google.auto.service', module: 'auto-service'
}
testImplementation dependency.androidx.test.core
}
Empty file.
4 changes: 4 additions & 0 deletions aws-auth-cognito/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
POM_ARTIFACT_ID=aws-auth-cognito
POM_NAME=Amplify Framework for Android - Auth
POM_DESCRIPTION=Amplify Framework for Android - Auth Plugin for Amazon Cognito
POM_PACKAGING=aar
78 changes: 78 additions & 0 deletions aws-auth-cognito/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#
# This ProGuard configuration file illustrates how to process a program
# library, such that it remains usable as a library.
# Usage:
# java -jar proguard.jar @library.pro
#

# Specify the input jars, output jars, and library jars.
# In this case, the input jar is the program library that we want to process.

#-injars in.jar
#-outjars out.jar
#
#-libraryjars <java.home>/lib/rt.jar
#
# Save the obfuscation mapping to a file, so we can de-obfuscate any stack
# traces later on. Keep a fixed source file attribute and all line number
# tables to get line numbers in the stack traces.
# You can comment this out if you're not interested in stack traces.

#-printmapping out.map
-dontobfuscate
-keepparameternames
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod

# Preserve all annotations.

-keepattributes *Annotation*

# Preserve all public classes, and their public and protected fields and
# methods.

-keep public class * {
public protected *;
}

# Preserve all .class method names.

-keepclassmembernames class * {
java.lang.Class class$(java.lang.String);
java.lang.Class class$(java.lang.String, boolean);
}

# Preserve all native method names and the names of their classes.

-keepclasseswithmembernames class * {
native <methods>;
}

# Preserve the special static methods that are required in all enumeration
# classes.

-keepclassmembers class * extends java.lang.Enum {
public static **[] values();
public static ** valueOf(java.lang.String);
}

# Explicitly preserve all serialization members. The Serializable interface
# is only a marker interface, so it wouldn't save them.
# You can comment this out if your library doesn't use serialization.
# If your code contains serializable classes that have to be backward
# compatible, please refer to the manual.

-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}

# Your library may contain more items that need to be preserved;
# typically classes that are dynamically created using Class.forName:

# -keep public class mypackage.MyClass
# -keep public interface mypackage.MyInterface
# -keep public class * implements mypackage.MyInterface
17 changes: 17 additions & 0 deletions aws-auth-cognito/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--
Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License.
A copy of the License is located at
http://aws.amazon.com/apache2.0
or in the "license" file accompanying this file. This file is distributed
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied. See the License for the specific language governing
permissions and limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.amplifyframework.auth.cognito" />
Loading

0 comments on commit fdb36b4

Please sign in to comment.