Merge pull request #3122 from omnivore-app/fix/ios-build-update

Update pdf packages on iOS
This commit is contained in:
Jackson Harper 2023-11-14 14:11:17 +08:00 committed by GitHub
commit dfabf629cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View file

@ -167,8 +167,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/PSPDFKit/PSPDFKit-SP",
"state" : {
"revision" : "f4ba9790488b8f11c29cff35943e430efcdb8003",
"version" : "12.0.1"
"revision" : "fcff39b2b7741662286dc4323ea255a0ea53fcd3",
"version" : "13.1.0"
}
},
{

View file

@ -73,6 +73,6 @@ var dependencies: [Package.Dependency] {
.package(url: "https://github.com/PostHog/posthog-ios.git", from: "2.0.0")
]
// Comment out following line for macOS build
deps.append(.package(url: "https://github.com/PSPDFKit/PSPDFKit-SP", from: "12.0.1"))
deps.append(.package(url: "https://github.com/PSPDFKit/PSPDFKit-SP", from: "13.1.0"))
return deps
}

View file

@ -46,7 +46,7 @@
}
}
if audioController.useUltraRealisticVoices {
if viewModel.realisticVoicesToggle, !audioController.ultraRealisticFeatureKey.isEmpty {
if showLanguageChanger {
Section("Language") {
NavigationLink(destination: TextToSpeechLanguageView().navigationTitle("Language")) {

View file

@ -75,6 +75,7 @@
public func play(itemAudioProperties: LinkedItemAudioProperties) {
stop()
playbackError = false
self.itemAudioProperties = itemAudioProperties
startAudio(atIndex: itemAudioProperties.startIndex, andOffset: itemAudioProperties.startOffset)
@ -356,6 +357,7 @@
currentOffset = CMTimeGetSeconds(player.currentTime())
}
player?.removeAllItems()
playbackError = false
downloadAndPlayFrom(currentIdx, currentOffset)
}