Skip to content

Commit b7fa5db

Browse files
authored
chore: kickoff release
2 parents 9257586 + 6b301f0 commit b7fa5db

File tree

3 files changed

+41
-38
lines changed

3 files changed

+41
-38
lines changed

Diff for: AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness/SPI/LivenessStreamingURL.swift

+13-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@
77

88
import Foundation
99

10+
private let isoPartitionBaseDomain: String = "csp.hci.ic.gov"
11+
private let defaultBaseDomain: String = "amazonaws.com"
12+
1013
func streamingSessionURL(for region: String) throws -> URL {
11-
let urlString = "wss://streaming-rekognition.\(region).amazonaws.com/start-face-liveness-session-websocket"
14+
15+
// Determine the base domain based on the region
16+
let baseDomain: String
17+
if region.lowercased().starts(with: "us-isof") {
18+
baseDomain = isoPartitionBaseDomain
19+
} else {
20+
baseDomain = defaultBaseDomain
21+
}
22+
23+
let urlString = "wss://streaming-rekognition.\(region).\(baseDomain)/start-face-liveness-session-websocket"
1224
guard let url = URL(string: urlString) else {
1325
throw FaceLivenessSessionError.invalidRegion
1426
}

Diff for: Gemfile.lock

+10-15
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ GEM
105105
ethon (0.16.0)
106106
ffi (>= 1.15.0)
107107
excon (0.99.0)
108-
faraday (1.10.3)
108+
faraday (1.10.4)
109109
faraday-em_http (~> 1.0)
110110
faraday-em_synchrony (~> 1.0)
111111
faraday-excon (~> 1.1)
@@ -126,7 +126,7 @@ GEM
126126
faraday-httpclient (1.0.1)
127127
faraday-multipart (1.0.4)
128128
multipart-post (~> 2)
129-
faraday-net_http (1.0.1)
129+
faraday-net_http (1.0.2)
130130
faraday-net_http_persistent (1.2.0)
131131
faraday-patron (1.0.0)
132132
faraday-rack (1.0.0)
@@ -179,15 +179,14 @@ GEM
179179
gh_inspector (1.1.3)
180180
google-apis-androidpublisher_v3 (0.33.0)
181181
google-apis-core (>= 0.9.1, < 2.a)
182-
google-apis-core (0.11.0)
182+
google-apis-core (0.11.3)
183183
addressable (~> 2.5, >= 2.5.1)
184184
googleauth (>= 0.16.2, < 2.a)
185185
httpclient (>= 2.8.1, < 3.a)
186186
mini_mime (~> 1.0)
187187
representable (~> 3.0)
188188
retriable (>= 2.0, < 4.a)
189189
rexml
190-
webrick
191190
google-apis-iamcredentials_v1 (0.16.0)
192191
google-apis-core (>= 0.9.1, < 2.a)
193192
google-apis-playcustomapp_v1 (0.12.0)
@@ -208,10 +207,9 @@ GEM
208207
google-cloud-core (~> 1.6)
209208
googleauth (>= 0.16.2, < 2.a)
210209
mini_mime (~> 1.0)
211-
googleauth (1.3.0)
210+
googleauth (1.8.1)
212211
faraday (>= 0.17.3, < 3.a)
213212
jwt (>= 1.4, < 3.0)
214-
memoist (~> 0.16)
215213
multi_json (~> 1.11)
216214
os (>= 0.9, < 2.0)
217215
signet (>= 0.16, < 2.a)
@@ -233,11 +231,11 @@ GEM
233231
xcinvoke (~> 0.3.0)
234232
jmespath (1.6.2)
235233
json (2.6.3)
236-
jwt (2.7.0)
234+
jwt (2.9.1)
235+
base64
237236
liferaft (0.0.6)
238-
memoist (0.16.2)
239237
mini_magick (4.12.0)
240-
mini_mime (1.1.2)
238+
mini_mime (1.1.5)
241239
mini_portile2 (2.8.7)
242240
minitest (5.25.1)
243241
molinillo (0.8.0)
@@ -262,16 +260,15 @@ GEM
262260
trailblazer-option (>= 0.1.1, < 0.2.0)
263261
uber (< 0.2.0)
264262
retriable (3.1.2)
265-
rexml (3.3.6)
266-
strscan
263+
rexml (3.3.7)
267264
rouge (2.0.7)
268265
ruby-macho (2.5.1)
269266
ruby2_keywords (0.0.5)
270267
rubyzip (2.3.2)
271268
sassc (2.4.0)
272269
ffi (~> 1.9)
273270
security (0.1.3)
274-
signet (0.17.0)
271+
signet (0.19.0)
275272
addressable (~> 2.8)
276273
faraday (>= 0.17.5, < 3.a)
277274
jwt (>= 1.5, < 3.0)
@@ -281,7 +278,6 @@ GEM
281278
naturally
282279
sqlite3 (1.7.3)
283280
mini_portile2 (~> 2.8.0)
284-
strscan (3.1.0)
285281
terminal-notifier (2.0.0)
286282
terminal-table (1.8.0)
287283
unicode-display_width (~> 1.1, >= 1.1.1)
@@ -299,7 +295,6 @@ GEM
299295
unf_ext
300296
unf_ext (0.0.8.2)
301297
unicode-display_width (1.8.0)
302-
webrick (1.8.1)
303298
word_wrap (1.0.0)
304299
xcinvoke (0.3.0)
305300
liferaft (~> 0.0.6)
@@ -325,4 +320,4 @@ DEPENDENCIES
325320
xcpretty (= 0.3.0)
326321

327322
BUNDLED WITH
328-
2.5.14
323+
2.3.7

Diff for: canaries/example/Gemfile.lock

+18-22
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ GEM
33
specs:
44
CFPropertyList (3.0.5)
55
rexml
6-
addressable (2.8.0)
7-
public_suffix (>= 2.0.2, < 5.0)
6+
addressable (2.8.7)
7+
public_suffix (>= 2.0.2, < 7.0)
88
artifactory (3.0.15)
99
atomos (0.1.3)
1010
aws-eventstream (1.2.0)
@@ -24,6 +24,7 @@ GEM
2424
aws-sigv4 (1.4.0)
2525
aws-eventstream (~> 1, >= 1.0.2)
2626
babosa (1.0.4)
27+
base64 (0.2.0)
2728
claide (1.1.0)
2829
colored (1.2)
2930
colored2 (3.1.2)
@@ -37,7 +38,7 @@ GEM
3738
dotenv (2.7.6)
3839
emoji_regex (3.2.3)
3940
excon (0.92.2)
40-
faraday (1.10.0)
41+
faraday (1.10.4)
4142
faraday-em_http (~> 1.0)
4243
faraday-em_synchrony (~> 1.0)
4344
faraday-excon (~> 1.1)
@@ -56,9 +57,9 @@ GEM
5657
faraday-em_synchrony (1.0.0)
5758
faraday-excon (1.1.0)
5859
faraday-httpclient (1.0.1)
59-
faraday-multipart (1.0.3)
60-
multipart-post (>= 1.2, < 3)
61-
faraday-net_http (1.0.1)
60+
faraday-multipart (1.0.4)
61+
multipart-post (~> 2)
62+
faraday-net_http (1.0.2)
6263
faraday-net_http_persistent (1.2.0)
6364
faraday-patron (1.0.0)
6465
faraday-rack (1.0.0)
@@ -108,15 +109,14 @@ GEM
108109
gh_inspector (1.1.3)
109110
google-apis-androidpublisher_v3 (0.18.0)
110111
google-apis-core (>= 0.4, < 2.a)
111-
google-apis-core (0.4.2)
112+
google-apis-core (0.11.3)
112113
addressable (~> 2.5, >= 2.5.1)
113114
googleauth (>= 0.16.2, < 2.a)
114115
httpclient (>= 2.8.1, < 3.a)
115116
mini_mime (~> 1.0)
116117
representable (~> 3.0)
117118
retriable (>= 2.0, < 4.a)
118119
rexml
119-
webrick
120120
google-apis-iamcredentials_v1 (0.10.0)
121121
google-apis-core (>= 0.4, < 2.a)
122122
google-apis-playcustomapp_v1 (0.7.0)
@@ -137,10 +137,9 @@ GEM
137137
google-cloud-core (~> 1.6)
138138
googleauth (>= 0.16.2, < 2.a)
139139
mini_mime (~> 1.0)
140-
googleauth (1.1.2)
140+
googleauth (1.8.1)
141141
faraday (>= 0.17.3, < 3.a)
142142
jwt (>= 1.4, < 3.0)
143-
memoist (~> 0.16)
144143
multi_json (~> 1.11)
145144
os (>= 0.9, < 2.0)
146145
signet (>= 0.16, < 2.a)
@@ -150,39 +149,37 @@ GEM
150149
httpclient (2.8.3)
151150
jmespath (1.6.1)
152151
json (2.6.1)
153-
jwt (2.3.0)
154-
memoist (0.16.2)
152+
jwt (2.9.1)
153+
base64
155154
mini_magick (4.11.0)
156-
mini_mime (1.1.2)
155+
mini_mime (1.1.5)
157156
multi_json (1.15.0)
158-
multipart-post (2.0.0)
157+
multipart-post (2.4.1)
159158
nanaimo (0.3.0)
160159
naturally (2.2.1)
161160
optparse (0.1.1)
162161
os (1.1.4)
163162
plist (3.6.0)
164-
public_suffix (4.0.7)
163+
public_suffix (6.0.1)
165164
rake (13.0.6)
166-
representable (3.1.1)
165+
representable (3.2.0)
167166
declarative (< 0.1.0)
168167
trailblazer-option (>= 0.1.1, < 0.2.0)
169168
uber (< 0.2.0)
170169
retriable (3.1.2)
171-
rexml (3.3.6)
172-
strscan
170+
rexml (3.3.7)
173171
rouge (2.0.7)
174172
ruby2_keywords (0.0.5)
175173
rubyzip (2.3.2)
176174
security (0.1.3)
177-
signet (0.16.1)
175+
signet (0.19.0)
178176
addressable (~> 2.8)
179-
faraday (>= 0.17.5, < 3.0)
177+
faraday (>= 0.17.5, < 3.a)
180178
jwt (>= 1.5, < 3.0)
181179
multi_json (~> 1.10)
182180
simctl (1.6.8)
183181
CFPropertyList
184182
naturally
185-
strscan (3.1.0)
186183
terminal-notifier (2.0.0)
187184
terminal-table (1.8.0)
188185
unicode-display_width (~> 1.1, >= 1.1.1)
@@ -196,7 +193,6 @@ GEM
196193
unf_ext
197194
unf_ext (0.0.8.1)
198195
unicode-display_width (1.8.0)
199-
webrick (1.7.0)
200196
word_wrap (1.0.0)
201197
xcodeproj (1.19.0)
202198
CFPropertyList (>= 2.3.3, < 4.0)

0 commit comments

Comments
 (0)