diff --git a/Package.resolved b/Package.resolved index 3004088..e59e5e3 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/aws-amplify/amplify-swift.git", "state": { "branch": null, - "revision": "f4d2466b137858e63d1696e31179a8944ef8a789", - "version": "2.33.4" + "revision": "99c72db23217c8944dda92a9be26f7c0d0d5de3f", + "version": "2.37.0" } }, { @@ -60,8 +60,8 @@ "repositoryURL": "https://github.com/stephencelis/SQLite.swift.git", "state": { "branch": null, - "revision": "e78ae0220e17525a15ac68c697a155eb7a672a8e", - "version": "0.15.0" + "revision": "a95fc6df17d108bd99210db5e8a9bac90fe984b8", + "version": "0.15.3" } }, { @@ -69,8 +69,8 @@ "repositoryURL": "https://github.com/apple/swift-log.git", "state": { "branch": null, - "revision": "e97a6fcb1ab07462881ac165fdbb37f067e205d5", - "version": "1.5.4" + "revision": "9cb486020ebf03bfa5b5df985387a14a98744537", + "version": "1.6.1" } } ] diff --git a/Sources/AmplifyMapLibreAdapter/AWSMapURLProtocol+GeoConfig.swift b/Sources/AmplifyMapLibreAdapter/AWSMapURLProtocol+GeoConfig.swift index 6593f85..6c96f72 100644 --- a/Sources/AmplifyMapLibreAdapter/AWSMapURLProtocol+GeoConfig.swift +++ b/Sources/AmplifyMapLibreAdapter/AWSMapURLProtocol+GeoConfig.swift @@ -9,6 +9,7 @@ import Foundation import Amplify import AWSLocationGeoPlugin import AWSClientRuntime +import InternalAmplifyCredentials extension AWSMapURLProtocol { struct GeoConfig { @@ -21,7 +22,10 @@ extension AWSMapURLProtocol { assertionFailure(AWSMapURLProtocolError.configurationError.localizedDescription) return nil } - self.credentialsProvider = plugin.authService.getCredentialsProvider() + guard let credentiaslProvider = plugin.authService as? AWSAuthCredentialsProviderBehavior else { + return nil + } + self.credentialsProvider = credentiaslProvider.getCredentialsProvider() self.regionName = plugin.pluginConfig.regionName self.hostName = "maps.geo.\(regionName).amazonaws.com" }