Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 1fbf746

Browse files
committed
fix(ios): return the string of the URL in classification success
1 parent 6a9d073 commit 1fbf746

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ PODS:
186186
- React-cxxreact (= 0.63.4)
187187
- React-jsi (= 0.63.4)
188188
- React-jsinspector (0.63.4)
189-
- react-native-spokestack (5.0.0-beta.0):
189+
- react-native-spokestack (5.0.0-beta.4):
190190
- React
191191
- Spokestack-iOS (= 14.0.1)
192192
- React-RCTActionSheet (0.63.4):
@@ -374,7 +374,7 @@ SPEC CHECKSUMS:
374374
React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31
375375
React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949
376376
React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
377-
react-native-spokestack: 28af19051ba6ad0c30b7d87193845dd517d20ff2
377+
react-native-spokestack: f4210156eb4087f951ffc45f04070afdf11449e7
378378
React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336
379379
React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b
380380
React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0

ios/RNSpokestack.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class RNSpokestack: RCTEventEmitter, SpokestackDelegate {
154154

155155
func success(result: TextToSpeechResult) {
156156
if let resolve = resolvers.removeValue(forKey: RNSpokestackPromise.synthesize) {
157-
resolve(result.url)
157+
resolve(result.url?.absoluteString)
158158
rejecters.removeValue(forKey: RNSpokestackPromise.synthesize)
159159
} else if let resolve = resolvers.removeValue(forKey: RNSpokestackPromise.speak) {
160160
resolve(nil)

0 commit comments

Comments
 (0)