Skip to content

Commit

Permalink
fix: 모듈간 순환 종속성 해결 후 빌드 안되던 문제 해결(#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozohoy committed Sep 12, 2024
1 parent 0ca6f63 commit 8db3c58
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
16 changes: 13 additions & 3 deletions Core/Sources/AWS/AWSS3Uploader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation
import Photos

import Common
//import Common

import AWSS3

Expand Down Expand Up @@ -43,7 +43,7 @@ public class AWSS3Uploader {
) { result in
switch result {
case .success(let url):
videoUrl = url?.removeQueryParameters()
videoUrl = self.removeQueryParameters(url: url)
case .failure(let failure):
uploadError = failure
}
Expand All @@ -56,7 +56,7 @@ public class AWSS3Uploader {
) { result in
switch result {
case .success(let url):
thumbnailUrl = url?.removeQueryParameters()
thumbnailUrl = self.removeQueryParameters(url: url)
case .failure(let failure):
uploadError = failure
}
Expand Down Expand Up @@ -126,4 +126,14 @@ public class AWSS3Uploader {
}
uploadTask.resume()
}

private func removeQueryParameters(url: String?) -> String? {
guard let urlString = url else { return nil }
if let urlComponents = URLComponents(string: urlString) {
var modifiedComponents = urlComponents
modifiedComponents.query = nil
return modifiedComponents.string
}
return nil
}
}
2 changes: 1 addition & 1 deletion Core/Sources/Model/Keyword.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Keyword.swift
// Core
//
// Created by 한지석 on 7/10/24.
// Created by 한지석 on 9/13/24.
// Copyright © 2024 com.recordy. All rights reserved.
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//
// NotificationName+.swift
// Common
// Core
//
// Created by 한지석 on 7/19/24.
// Created by 한지석 on 9/13/24.
// Copyright © 2024 com.recordy. All rights reserved.
//

Expand Down

0 comments on commit 8db3c58

Please sign in to comment.