-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge #423: traveline 1.0.0 - iOS Release
[merge] traveline 1.0.0 - iOS Release
- Loading branch information
Showing
60 changed files
with
724 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ public extension Project { | |
] | ||
] | ||
], | ||
"BaseURL": "$(BASE_URL)" | ||
"ProdURL": "$(PROD_URL)", | ||
"DevURL": "$(DEV_URL)" | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
iOS/traveline/Resources/Images.xcassets/Common/empty.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Glyph_ undefined.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "Glyph_ undefined 1.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "Glyph_ undefined 2.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+2.54 KB
...raveline/Resources/Images.xcassets/Common/empty.imageset/Glyph_ undefined 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.1 KB
...raveline/Resources/Images.xcassets/Common/empty.imageset/Glyph_ undefined 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.4 KB
iOS/traveline/Resources/Images.xcassets/Common/empty.imageset/Glyph_ undefined.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
iOS/traveline/Resources/Images.xcassets/Common/errorCircle.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Glyph_ undefined.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "Glyph_ undefined 1.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "Glyph_ undefined 2.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+2.63 KB
...ne/Resources/Images.xcassets/Common/errorCircle.imageset/Glyph_ undefined 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.12 KB
...ne/Resources/Images.xcassets/Common/errorCircle.imageset/Glyph_ undefined 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.47 KB
...line/Resources/Images.xcassets/Common/errorCircle.imageset/Glyph_ undefined.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// ToastDelegate.swift | ||
// traveline | ||
// | ||
// Created by ๊นํํ on 1/24/24. | ||
// Copyright ยฉ 2024 traveline. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol ToastDelegate: AnyObject { | ||
func viewControllerDidFinishAction(isSuccess: Bool, message: String) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// Future+.swift | ||
// traveline | ||
// | ||
// Created by ๊นํํ on 12/14/23. | ||
// Copyright ยฉ 2023 traveline. All rights reserved. | ||
// | ||
|
||
import Combine | ||
import Foundation | ||
|
||
extension Future where Failure == Error { | ||
|
||
/// async ์๋ต ๊ฒฐ๊ณผ๋ฅผ Future publisher๋ก ๋ณํํฉ๋๋ค. | ||
/// - Parameter asyncFulfill: ๋ณํํ async ์๋ต | ||
convenience init(_ asyncFulfill: @escaping () async throws -> Output) { | ||
self.init { promise in | ||
Task { | ||
do { | ||
let result = try await asyncFulfill() | ||
promise(.success(result)) | ||
} catch { | ||
promise(.failure(error)) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
extension Future where Failure == Never { | ||
|
||
/// async ์๋ต ๊ฒฐ๊ณผ๋ฅผ Future publisher๋ก ๋ณํํฉ๋๋ค. | ||
/// - Parameter asyncFulfill: ๋ณํํ async ์๋ต | ||
convenience init(_ asyncFulfill: @escaping () async -> Output) { | ||
self.init { promise in | ||
Task { | ||
let result = await asyncFulfill() | ||
promise(.success(result)) | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
iOS/traveline/Sources/Core/Extension/UIViewController+.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// UIViewController+.swift | ||
// traveline | ||
// | ||
// Created by ๊นํํ on 1/16/24. | ||
// Copyright ยฉ 2024 traveline. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIViewController { | ||
|
||
/// ํ ์คํธ ๋ฉ์ธ์ง๋ฅผ ๋ ธ์ถํฉ๋๋ค. | ||
/// - Parameters: | ||
/// - message: ๋ ธ์ถํ ๋ฉ์ธ์ง | ||
/// - type: ํ ์คํธ ๋ฉ์ธ์ง ํ์ (์คํจ, ์ฑ๊ณต) | ||
/// - followsUndockedKeyboard: ํค๋ณด๋ ์์น๋ฅผ ํธ๋ํนํ๋ ค๋ฉด true๋ก ์ค์ | ||
func showToast(message: String, type: TLToastView.ToastType, followsUndockedKeyboard: Bool = false) { | ||
let toast: TLToastView = .init(type: type, message: message, followsUndockedKeyboard: followsUndockedKeyboard) | ||
view.keyboardLayoutGuide.followsUndockedKeyboard = followsUndockedKeyboard | ||
toast.show(in: view) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
iOS/traveline/Sources/Data/Network/DataMapping/TimelineTranslatedResponseDTO.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// TimelineTranslatedResponseDTO.swift | ||
// traveline | ||
// | ||
// Created by ๊นํํ on 12/14/23. | ||
// Copyright ยฉ 2023 traveline. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct TimelineTranslatedResponseDTO: Decodable { | ||
let description: String | ||
} | ||
|
||
extension TimelineTranslatedResponseDTO { | ||
func toDomain() -> TimelineTranslatedInfo { | ||
return .init(description: description) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.