Skip to content

Commit

Permalink
fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sdhuka committed Aug 14, 2023
1 parent 593dd8b commit 4c9c0cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
package com.amplifyframework.logging.cloudwatch

import aws.smithy.kotlin.runtime.InternalApi
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigningConfig
import aws.smithy.kotlin.runtime.auth.awssigning.DefaultAwsSigner
Expand Down Expand Up @@ -54,6 +55,7 @@ class DefaultRemoteLoggingConstraintProvider @JvmOverloads constructor(
explicitNulls = false
}

@OptIn(InternalApi::class)
override fun fetchLoggingConfig(onSuccess: Consumer<LoggingConstraints>, onError: Consumer<Exception>) {
coroutineScope.launch {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

package com.amplifyframework.geo.maplibre.http

import aws.smithy.kotlin.runtime.InternalApi
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigningConfig
import aws.smithy.kotlin.runtime.auth.awssigning.DefaultAwsSigner
import aws.smithy.kotlin.runtime.http.Headers as AwsHeaders
Expand Down Expand Up @@ -93,6 +94,7 @@ internal class AWSRequestSignerInterceptor(
return this.url(urlBuilder.build())
}

@OptIn(InternalApi::class)
@Throws(SignCredentialsException::class)
private suspend fun signRequest(request: Request): HttpRequest {
val url = request.url
Expand All @@ -119,7 +121,7 @@ internal class AWSRequestSignerInterceptor(
url.queryParameterNames.map { name ->
url.queryParameter(name)?.let { append(name, it) }
}
},
}
)

val bodyBytes: ByteArray = getBytes(request.body)
Expand Down

0 comments on commit 4c9c0cd

Please sign in to comment.