Skip to content

Commit 5cc041e

Browse files
committed
change geo credentialprovider from deprecated to optin
1 parent 7cf253e commit 5cc041e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aws-geo-location/src/main/java/com/amplifyframework/geo/location/AWSLocationGeoPlugin.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import android.content.Context
1919
import aws.sdk.kotlin.services.location.LocationClient
2020
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
2121
import com.amplifyframework.AmplifyException
22+
import com.amplifyframework.annotations.InternalApiWarning
2223
import com.amplifyframework.auth.AuthCategory
2324
import com.amplifyframework.auth.CognitoCredentialsProvider
2425
import com.amplifyframework.core.Amplify
@@ -64,7 +65,7 @@ class AWSLocationGeoPlugin(
6465
configuration.searchIndices!!.default
6566
}
6667

67-
@Deprecated("This credentialsProvider was released with public visibility, but is not intended to be consumed.")
68+
@InternalApiWarning
6869
val credentialsProvider: CredentialsProvider by lazy {
6970
CognitoCredentialsProvider()
7071
}

0 commit comments

Comments
 (0)