Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storage): Upgrade SDK to fix EOF exception #2558

Merged
merged 3 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

package com.amplifyframework.api.aws.sigv4

import aws.smithy.kotlin.runtime.InternalApi
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSignedBodyHeader
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigningConfig
Expand All @@ -32,6 +33,7 @@ abstract class AWS4Signer(private val regionName: String) {
/**
* Async signing
*/
@OptIn(InternalApi::class)
suspend fun sign(
httpRequest: HttpRequest,
credentialsProvider: CredentialsProvider,
Expand All @@ -50,6 +52,7 @@ abstract class AWS4Signer(private val regionName: String) {
/**
* Sign synchronously
*/
@OptIn(InternalApi::class)
fun signBlocking(
httpRequest: HttpRequest,
credentialsProvider: CredentialsProvider,
Expand Down
6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ dependencyResolutionManagement {
/* When updating kotlin sdk or kotlin smithy,
ensure compatible versions used in aws-sdk-kotlin root gradle.properties
*/
version(awsKotlinSdk, "0.28.0-beta") // ensure proper awsSmithyKotlin version also set
version(awsSmithyKotlin, "0.22.0") // ensure proper awsKotlinSdk version also set
version(awsKotlinSdk, "0.29.1-beta") // ensure proper awsSmithyKotlin version also set
version(awsSmithyKotlin, "0.25.0") // ensure proper awsKotlinSdk version also set

library("aws-credentials", "aws.smithy.kotlin", "aws-credentials").versionRef(awsSmithyKotlin)
library("aws-signing", "aws.smithy.kotlin", "aws-signing-default").versionRef(awsSmithyKotlin)
Expand All @@ -104,7 +104,7 @@ dependencyResolutionManagement {
library(
"aws-cognitoidentityprovider",
"aws.sdk.kotlin",
"cognitoidentityprovider",
"cognitoidentityprovider"
).versionRef(awsKotlinSdk)
library("aws-comprehend", "aws.sdk.kotlin", "comprehend").versionRef(awsKotlinSdk)
library("aws-location", "aws.sdk.kotlin", "location").versionRef(awsKotlinSdk)
Expand Down
Loading