Skip to content

Commit

Permalink
fix: Fixing compilation issue caused by AmplifyCredentials refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisebas committed Aug 14, 2024
1 parent e3a1079 commit cc51ead
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down Expand Up @@ -60,17 +60,17 @@
"repositoryURL": "https://github.com/stephencelis/SQLite.swift.git",
"state": {
"branch": null,
"revision": "e78ae0220e17525a15ac68c697a155eb7a672a8e",
"version": "0.15.0"
"revision": "a95fc6df17d108bd99210db5e8a9bac90fe984b8",
"version": "0.15.3"
}
},
{
"package": "swift-log",
"repositoryURL": "https://github.com/apple/swift-log.git",
"state": {
"branch": null,
"revision": "e97a6fcb1ab07462881ac165fdbb37f067e205d5",
"version": "1.5.4"
"revision": "9cb486020ebf03bfa5b5df985387a14a98744537",
"version": "1.6.1"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Foundation
import Amplify
import AWSLocationGeoPlugin
import AWSClientRuntime
import InternalAmplifyCredentials

extension AWSMapURLProtocol {
struct GeoConfig {
Expand All @@ -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"
}
Expand Down

0 comments on commit cc51ead

Please sign in to comment.