Skip to content

Amplify Android 1.4.2

Compare
Choose a tag to compare
@richardmcclellan richardmcclellan released this 19 Oct 18:39
· 1360 commits to main since this release
84ce9bc

DataStore

  • Added mutation conflict handling (#883)(#904)(#907). Users can supply their own conflict handling strategy, by passing it in a DataStoreConfiguration provided to the AWSDataStorePlugin:
val config = DataStoreConfiguration.builder()
    .dataStoreConflictHandler((conflictData, onResult) -> {
        onResult.accept(DataStoreConflictHandlerResult.APPLY_REMOTE);
    })
    .build();
Amplify.addPlugin(AWSDataStorePlugin(config))
  • fix: make subscription timeout model count dependent (#858)
  • fix: Prevent concurrent start/stop on orchestrator (#876

API

  • Adds support for custom identity claim (#889)

Storage

  • Enable setting of the server side encryption algorithm in StorageUploadFileOptions (#886), (#897)
    Amplify.Storage.uploadFile(
            "ExampleKey",
            exampleFile,
            AWSS3StorageUploadFileOptions.builder()
                    .serverSideEncryption(ServerSideEncryption.MANAGED_KEYS)
                    .build(),
            { progress -> Log.i("MyAmplifyApp", "Fraction completed: ${progress.fractionCompleted}") },
            { result -> Log.i("MyAmplifyApp", "Successfully uploaded: ${result.getKey()}") },
            { error -> Log.e("MyAmplifyApp", "Upload failed", error) }
    )

Misc Updates

  • Fail early and throw useful exception if customer forgets to call Amplify.configure (#888)
  • Update okhttp 4.9.0 (#862)
  • Update androidx-core 1.3.2 (#890)
  • Update awsSdkVersion 2.19.1 (#914)

See the following diff for a complete set of changes since the last release.