Skip to content

Commit bc08560

Browse files
div5yesheeatonawsmikepschneiderlawmichamikschn-aws
authored
chore: merge main to push-notifications (#123)
* fix(core): remove unused dynamic nav dependency (#2132) * fix(datastore): remove typename from ModelMetadata (#2122) * fix(datastore): remove typename from ModelMetadata * Test a potential fix * Test a potential fix * fix: callbacks not invoked when attached using getTransfer api (#2111) * fix: listener not invoked when attached using getTransfer api * address PR comments * default state to unknown * add comment * add comment * override getRequest in storage operation & make SocketExcpetion retryable * add nullable annotation * address nullable request Co-authored-by: Tyler Roach <[email protected]> * Prevent attempting to read backed up EncryptedSharedPreferences that are no longer readable (#2113) * fix(auth): device metadata migration (#2114) * Number of attributes being too high is not retryable (#2112) * Number of attributes being too high is not retryable * Match iOS at not retrying bad request error -- covering multiple 400 errors * Fix lint * Fix lint * Update Kotlin SDK version Co-authored-by: Thomas Leing <[email protected]> * Change errors returned on some apis while federated (#2116) * release: Amplify Android 2.0.0 (#2115) * release: Amplify Android 2.0.0 * add core-kotlin changelog * add more info in changelog * revert unintended change * remove breaking change for analytics * fix(datastore): remove typename from ModelMetadata * fix(datastore): remove typename from ModelMetadata * remove unneeded file * small cleanup * remove print statements * fix comment * force tests * force tests * force tests Co-authored-by: Michael Law <[email protected]> Co-authored-by: Michael Schneider <[email protected]> Co-authored-by: Saijad Dhuka <[email protected]> Co-authored-by: Tyler Roach <[email protected]> Co-authored-by: Divyesh Chitroda <[email protected]> Co-authored-by: Thomas Leing <[email protected]> Co-authored-by: Thomas Leing <[email protected]> Co-authored-by: Sunil Timalsina <[email protected]> * chore: Remove deprecated maven plugin (#2137) * Remove deprecated maven project * Fix task name grep * chore: Remove Javadoc tasks (#2139) * Remove deprecated maven project * Fix task name grep * Remove Javadoc tasks * fix: Change order of updating state in local cache (#2141) * fix: fix integration test and added logger to integration test (#2143) * fix: Change order of updating state in local cache * change order for updating status and add logger to integ tests * change log level to debug * Fix for when move to idle state is called twice (#2152) * Update README.md (#2120) remove dev-preview APIs note. * Dengdan stress test (#2153) * Initial commit * Work in progress * finish codes * change build * update build * test excludeStressTest * Revert "Merge branch 'main' into dengdan-stress-test" This reverts commit b50840e, reversing changes made to 3bacf1b. * remove categories * remove external changes * remove external changes * remove more changes * Update copyright and refactor * Update StorageStressTest.kt * Update StorageStressTest.kt * Update StorageStressTest.kt * Update StorageStressTest.kt * linting * Update StorageStressTest.kt * Delete StorageStressTest.kt * Delete amplifyconfigurationupdated.json * Delete amplifyconfigurationupdated.json * Update DataStoreStressTest.kt * Fix(Auth): Sign up if successful should return DONE instead of Confirm sign up (#2130) * If sign up is successful in the first try return DONE * Sign up should send DONE if it is successful * revert jsongenerator cleandir fun * lint fix * Feat(Auth Test): Custom party testing for Custom Test without SRP (#2149) * Adding custom auth test cases * Updating test cases for Custom Auth to ensure they pass * lint format * Fix for phone number * Recreate all tests * Unignore storage and pinpoint tests (#2156) * unignore tests * extend timeout to 60s Co-authored-by: Saijad Dhuka <[email protected]> * feat(Geo): Add Kotlin Geo Facade (#2155) * Add Kotlin Geo Facade * Add return docs to the function comments * Add tests to verify options are passed * fix: Add missing apis in storage Kotlin & RxJava facade (#2160) * fix: Add pause, resume api to kotlin and rxJava facade * add unit tests * remove irrelevant code changes * add assertion * Update DeviceFarm build config (#2168) * fix: user metadata was persisted empty in the database (#2165) * fix: usermeta was persisted as empty in the database * fix compilation error * fix compilation error * avoid adding metadata if it is null * Add Geo Rx Bindings (#2159) * chore: Re-add storage tests (#2163) * Readd storage tests * rename file * reduce stress Co-authored-by: Saijad Dhuka <[email protected]> * Add a network status listener to restart DataStore after the network … (#2148) * Add a network status listener to restart DataStore after the network comes back online. * Add Reachability monitor * working pretty well * cleanup * update test * fix: fix integration test and added logger to integration test (#2143) * fix: Change order of updating state in local cache * change order for updating status and add logger to integ tests * change log level to debug * Fix for when move to idle state is called twice (#2152) * Update README.md (#2120) remove dev-preview APIs note. * Dengdan stress test (#2153) * Initial commit * Work in progress * finish codes * change build * update build * test excludeStressTest * Revert "Merge branch 'main' into dengdan-stress-test" This reverts commit b50840e, reversing changes made to 3bacf1b. * remove categories * remove external changes * remove external changes * remove more changes * Update copyright and refactor * Update StorageStressTest.kt * Update StorageStressTest.kt * Update StorageStressTest.kt * Update StorageStressTest.kt * linting * Update StorageStressTest.kt * Delete StorageStressTest.kt * Delete amplifyconfigurationupdated.json * Delete amplifyconfigurationupdated.json * Update DataStoreStressTest.kt * force build * force build * force build * fix typo * Add a network status listener to restart DataStore after the network comes back online. * Add Reachability monitor * working pretty well * cleanup * update test * force build * force build * force build * fix typo * reply to comments * Add testImplementation lin eto compile tests correctly in intellij * reply to comments * make ReachabilityMonitor expose the observable * Update datastore plugin to use the reachability monitor * cleanup * cleanup * cleanup * force tests Co-authored-by: Michael Schneider <[email protected]> Co-authored-by: Saijad Dhuka <[email protected]> Co-authored-by: gpanshu <[email protected]> Co-authored-by: Divyesh Chitroda <[email protected]> Co-authored-by: dengdan154 <[email protected]> * chore: Upgrade Gradle, AGP, and KtLint (#2172) * Remove deprecated maven project * Fix task name grep * Upgrade Gradle to 7.5.1 * Upgrade AGP * Add VERSION_NAME back to BuildConfig This was removed for library projects in AGP 4.1. We may consider renaming this in the future to disambiguate the Amplify version and the application version. * Update KtLint and fix all new lint errors * Use JDK11 on codebuild * Use JDK11 in workflows * Upgrade compileSdkVersion to 31 * Try using custom commands to install Android SDK 31 * Update device farm buildspec with manual Android SDK install * Fix additional ktlint errors * Upgrade Desugar to JDK11-compatible version * Upgrade Robolectric * Set locale explicitly to match expectation * fix(geo): Increase Geo timeout so that it runs successfully on a Pixel 3a XL (#2177) * Increase Geo timeout so that it runs successfully on a Pixel 3a XL * Fix lint Co-authored-by: Thomas Leing <[email protected]> * Add a buildspec file for nightly tests (#2180) * Chore(Auth): Implementation of the custom auth with SRP parity testing use case (#2167) * Added the test case for custom auth with SRP * ktlint * release: Amplify Android 2.1.0 (manually created) (#2185) Co-authored-by: Thomas Leing <[email protected]> * chore: Add PR checker workflow (#2188) Co-authored-by: Erica Eaton <[email protected]> Co-authored-by: Michael Schneider <[email protected]> Co-authored-by: Michael Law <[email protected]> Co-authored-by: Michael Schneider <[email protected]> Co-authored-by: Saijad Dhuka <[email protected]> Co-authored-by: Tyler Roach <[email protected]> Co-authored-by: Thomas Leing <[email protected]> Co-authored-by: Thomas Leing <[email protected]> Co-authored-by: Sunil Timalsina <[email protected]> Co-authored-by: Matt Creaser <[email protected]> Co-authored-by: gpanshu <[email protected]> Co-authored-by: dengdan154 <[email protected]>
1 parent c1ad0bb commit bc08560

File tree

110 files changed

+3496
-671
lines changed

Some content is hidden

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

110 files changed

+3496
-671
lines changed

.github/pr-title-checker-config.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"LABEL": {
3+
"name": "Title Needs Formatting",
4+
"color": "FF5733"
5+
},
6+
"CHECKS": {
7+
"prefixes": ["chore: ", "refactor: ", "perf: ", "test: ", "docs: "],
8+
"regexp": "(fix|feat)\\((all|analytics|api|auth|core|datastore|geo|predictions|storage)\\): ",
9+
"regexpFlags": "",
10+
"ignoreLabels" : []
11+
},
12+
"MESSAGES": {
13+
"success": "All OK",
14+
"failure": "Your title is not formatted correctly. Please see https://github.com/aws-amplify/amplify-android/blob/main/CONTRIBUTING.md#pull-request-guidelines for guidelines.",
15+
"notice": ""
16+
}
17+
}

.github/workflows/codecov_code_coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Java
3030
uses: actions/setup-java@v3
3131
with:
32-
java-version: '8'
32+
java-version: '11'
3333
distribution: 'corretto'
3434

3535
- name: Run test and generate jacoco report

.github/workflows/gradle.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Set up JDK 1.8
19+
- name: Set up JDK 11
2020
uses: actions/setup-java@v1
2121
with:
22-
java-version: 1.8
22+
java-version: 11
2323
- name: Grant execute permission for gradlew
2424
run: chmod +x gradlew
2525
- name: Build with Gradle

.github/workflows/maven_release_publisher.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
with:
2121
project-name: AmplifyAndroid-IntegrationTest
2222
env-vars-for-codebuild: |
23-
ORG_GRADLE_PROJECT_useAwsSdkReleaseBuild
23+
ORG_GRADLE_PROJECT_useAwsSdkReleaseBuild,
24+
NUMBER_OF_DEVICES_TO_TEST
2425
env:
2526
ORG_GRADLE_PROJECT_useAwsSdkReleaseBuild: true
27+
NUMBER_OF_DEVICES_TO_TEST: 3
2628
- name: Configure AWS Credentials
2729
uses: aws-actions/configure-aws-credentials@v1
2830
with:
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Runs a check to verify PRs have a valid title
2+
3+
name: "PR Title Checker"
4+
on:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- edited
9+
- synchronize
10+
- labeled
11+
- unlabeled
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: thehanimo/[email protected]
18+
with:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
pass_on_octokit_error: false
21+
configuration_path: ".github/pr-title-checker-config.json"

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ build-artifacts.tar.gz
111111

112112
# sample app resources
113113
sample*
114-
.graphqlconfig.yml
114+
.graphqlconfig.yml
115+
aws-datastore/src/androidTest/res/raw/amplifyconfigurationupdated.json

.idea/codeStyles/Project.xml

+18-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+33
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## [Release 2.1.0](https://github.com/aws-amplify/amplify-android/releases/tag/release_v2.1.0)
2+
3+
### Features
4+
- feat(Geo): Add Kotlin Geo Facade (#2155)
5+
- Add a network status listener to restart DataStore after the network comes back online. (#2148)
6+
7+
### Miscellaneous
8+
- chore: Remove deprecated maven plugin (#2137)
9+
- chore: Remove Javadoc tasks (#2139)
10+
- Update README.md (#2120)
11+
- Dengdan stress test (#2153)
12+
- Feat(Auth Test): Custom party testing for Custom Test without SRP (#2149)
13+
- Unignore storage and pinpoint tests (#2156)
14+
- Update DeviceFarm build config (#2168)
15+
- Add Geo Rx Bindings (#2159)
16+
- chore: Re-add storage tests (#2163)
17+
- chore: Upgrade Gradle, AGP, and KtLint (#2172)
18+
- Add a buildspec file for nightly tests (#2180)
19+
- Chore(Auth): Implementation of the custom auth with SRP parity testing use case (#2167)
20+
21+
### Bug fixes
22+
- fix(core): remove unused dynamic nav dependency (#2132)
23+
- fix(datastore): remove typename from ModelMetadata (#2122)
24+
- fix: Change order of updating state in local cache (#2141)
25+
- fix: fix integration test and added logger to integration test (#2143)
26+
- Fix for when move to idle state is called twice (#2152)
27+
- Fix(Auth): Sign up if successful should return DONE instead of Confirm sign up (#2130)
28+
- fix: Add missing apis in storage Kotlin & RxJava facade (#2160)
29+
- fix: user metadata was persisted empty in the database (#2165)
30+
- fix(geo): Increase Geo timeout so that it runs successfully on a Pixel 3a XL (#2177)
31+
32+
[See all changes between 2.1.0 and 2.0.0](https://github.com/aws-amplify/amplify-android/compare/release_v2.0.0...release_v2.1.0)
33+
134
## [Release 2.0.0](https://github.com/aws-amplify/amplify-android/releases/tag/release_v2.0.0)
235

336
###Breaking Changes

CONTRIBUTING.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,20 @@ Copy-paste this, and complete the workflow in the UI. It will invite you to
428428
### Pull Request Guidelines
429429
- The title of your PR must be descriptive to the specific change.
430430
- The title of your PR must be of below format since next release version is determined from PR titles in the commit history.
431-
- For a bugfix: `fix(category): description of changes`
432-
- For a feature: `feat(catgory): add awesome feature`
433-
- Everything else: `chore: fix build script`
434-
- Eg. `fix(auth): throw correct auth exception for code mismatch`. Refer https://github.com/aws-amplify/amplify-android/pull/1370
431+
- For a bugfix: `fix(category): description of changes`
432+
- For a feature: `feat(catgory): add awesome feature`
433+
- Everything else: `chore: fix build script`
434+
- Valid categories are:
435+
- all
436+
- analytics
437+
- api
438+
- auth
439+
- core
440+
- datastore
441+
- geo
442+
- predictions
443+
- storage
444+
- Eg. `fix(auth): throw correct auth exception for code mismatch`. Refer https://github.com/aws-amplify/amplify-android/pull/1370
435445
- No period at the end of the title.
436446
- Pull Request message should indicate which issues are fixed: `fixes #<issue>` or `closes #<issue>`.
437447
- If not obvious (i.e. from unit tests), describe how you verified that your change works.

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Guide](https://docs.amplify.aws/start/q/integration/android).
2424

2525
| Category | AWS Provider | Description |
2626
|-------------------------------------------------------------------------------------------------|--------------|--------------------------------------------|
27-
| **[Authentication](https://docs.amplify.aws/lib/devpreview/getting-started/q/platform/android/)** | Cognito | Building blocks to create auth experiences <br> *Note: Authentication category only supports **Sign Up**, **Sign In**, **Sign Out**, **Fetch Auth Session** and **getCurrentUser** API's.* |
27+
| **[Authentication](https://docs.amplify.aws/lib/devpreview/getting-started/q/platform/android/)** | Cognito | Building blocks to create auth experiences |
2828
| **[Storage](https://docs.amplify.aws/lib/storage/getting-started/q/platform/android)** | S3 | Manages content in public, protected, private storage buckets |
2929
| **[DataStore](https://docs.amplify.aws/lib/datastore/getting-started/q/platform/android)** | AppSync | Programming model for shared and distributed data, with simple online/offline synchronization |
3030
| **[API (GraphQL)](https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/android)** | AppSync | Interact with your GraphQL or AppSync endpoint |
@@ -69,12 +69,12 @@ dependencies section:
6969
```groovy
7070
dependencies {
7171
// Only specify modules that provide functionality your app will use
72-
implementation 'com.amplifyframework:aws-analytics-pinpoint:2.0.0'
73-
implementation 'com.amplifyframework:aws-api:2.0.0'
74-
implementation 'com.amplifyframework:aws-auth-cognito:2.0.0'
75-
implementation 'com.amplifyframework:aws-datastore:2.0.0'
76-
implementation 'com.amplifyframework:aws-predictions:2.0.0'
77-
implementation 'com.amplifyframework:aws-storage-s3:2.0.0'
72+
implementation 'com.amplifyframework:aws-analytics-pinpoint:2.1.0'
73+
implementation 'com.amplifyframework:aws-api:2.1.0'
74+
implementation 'com.amplifyframework:aws-auth-cognito:2.1.0'
75+
implementation 'com.amplifyframework:aws-datastore:2.1.0'
76+
implementation 'com.amplifyframework:aws-predictions:2.1.0'
77+
implementation 'com.amplifyframework:aws-storage-s3:2.1.0'
7878
}
7979
```
8080

0 commit comments

Comments
 (0)