Skip to content

Commit 5798821

Browse files
connect to AWS IoT fix
1 parent 03a7418 commit 5798821

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

InPlayerSDK.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "InPlayerSDK"
19-
s.version = "3.0.6"
19+
s.version = "3.0.7"
2020
s.summary = "InPlayer's iOS API client wrapper."
2121

2222
# This description is used to generate tags and improve search results.

Source/Notification/API/NotificationNetworkConstants.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ extension NetworkConstants.BaseUrls {
88
}
99

1010
struct AWS {
11-
static let endpoint = "a3gkl64duktvc4.iot.eu-west-1.amazonaws.com" // hc aws endpoint
11+
static let endpoint = "a3gkl64duktvc4-ats.iot.eu-west-1.amazonaws.com" // hc aws endpoint
1212
}
1313
}

Source/Notification/AWS/INPAWSManager.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ extension INPAWSManager {
7070
// MARK: - Private
7171

7272
private static func setupAWSConfiguration() {
73-
guard let awsKeys = awsKeys, let endpoint = awsKeys.iotEndpoint else { return }
73+
guard let awsKeys = awsKeys else { return }
74+
let endpoint = awsKeys.iotEndpoint ?? NetworkConstants.BaseUrls.AWS.endpoint
75+
7476
let credentialsProvider = INPCredentialProvider(awsKeys: awsKeys)
75-
let iotEndpoint = AWSEndpoint(urlString: "https://" + NetworkConstants.BaseUrls.AWS.endpoint) // AWSEndpoint(urlString: "https://" + endpoint)
77+
let iotEndpoint = AWSEndpoint(urlString: "https://" + endpoint) // AWSEndpoint(urlString: "https://" + endpoint)
7678
let awsConfiguration = AWSServiceConfiguration(region: awsKeys.getAwsRegion(),
7779
endpoint: iotEndpoint,
7880
credentialsProvider: credentialsProvider)!

0 commit comments

Comments
 (0)