Skip to content

Commit ecc58ce

Browse files
committed
Silence a couple more deprecation warnings.
1 parent e82bff3 commit ecc58ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ElementX/Sources/Services/Media/MediaUploadingPreprocessor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ struct MediaUploadingPreprocessor {
396396
/// - Parameter url: the video URL
397397
/// - Returns: the URL for the resulting thumbnail and its sizing info as an `ImageProcessingResult`
398398
private func generateThumbnailForVideoAt(_ url: URL) async throws(MediaUploadingPreprocessorError) -> ImageProcessingInfo {
399-
let assetImageGenerator = AVAssetImageGenerator(asset: AVAsset(url: url))
399+
let assetImageGenerator = AVAssetImageGenerator(asset: AVURLAsset(url: url))
400400
assetImageGenerator.appliesPreferredTrackTransform = true
401401
assetImageGenerator.maximumSize = Constants.maximumThumbnailSize
402402

ElementX/Sources/UITests/UITestsSignalling.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ enum UITestsSignalling {
9494
try rawMessage(.ready).write(to: fileURL, atomically: false, encoding: .utf8)
9595
case .app:
9696
// The app client is started second and checks that there is a ready signal from the tests.
97-
guard try String(contentsOf: fileURL) == Message(mode: .tests, signal: .ready).rawValue else { throw UITestsSignalError.testsClientNotReady }
97+
guard try String(contentsOf: fileURL, encoding: .utf8) == Message(mode: .tests, signal: .ready).rawValue else { throw UITestsSignalError.testsClientNotReady }
9898
isConnected = true
9999
// The app client then echoes back to the tests that it is now ready.
100100
try send(.ready)

0 commit comments

Comments
 (0)