From c569b4b4fa5d1da810ae762b1cc6399d1176a94f Mon Sep 17 00:00:00 2001 From: Kha Truong <64438356+khatruong2009@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:50:26 -0700 Subject: [PATCH] fix: added an override to the auth plugin wrapper --- .../amplify/amplify_datastore/NativeAuthPluginWrapper.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/NativeAuthPluginWrapper.kt b/packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/NativeAuthPluginWrapper.kt index ad993a79f8..33e638babf 100644 --- a/packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/NativeAuthPluginWrapper.kt +++ b/packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/NativeAuthPluginWrapper.kt @@ -8,6 +8,7 @@ import android.content.Context import android.content.Intent import aws.smithy.kotlin.runtime.time.Instant import com.amazonaws.amplify.amplify_datastore.pigeons.NativeAuthPlugin +import com.amplifyframework.annotations.InternalAmplifyApi import com.amplifyframework.auth.AWSCredentials import com.amplifyframework.auth.AuthCodeDeliveryDetails import com.amplifyframework.auth.AuthDevice @@ -43,6 +44,7 @@ import com.amplifyframework.auth.result.AuthSignUpResult import com.amplifyframework.auth.result.AuthUpdateAttributeResult import com.amplifyframework.core.Action import com.amplifyframework.core.Consumer +import com.amplifyframework.core.configuration.AmplifyOutputsData import kotlinx.coroutines.MainScope import kotlinx.coroutines.launch import org.json.JSONObject @@ -66,6 +68,11 @@ class NativeAuthPluginWrapper( // No-op } + @InternalAmplifyApi + override fun configure(configuration: AmplifyOutputsData, context: Context) { + // No-op + } + override fun fetchAuthSession( onSuccess: Consumer, onError: Consumer