-
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.
- Loading branch information
0 parents
commit 16d80a2
Showing
63 changed files
with
3,599 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
TripDiary.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
TripDiary.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
131 changes: 131 additions & 0 deletions
131
TripDiary.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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,131 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "abseil-cpp-binary", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/abseil-cpp-binary.git", | ||
"state" : { | ||
"revision" : "bfc0b6f81adc06ce5121eb23f628473638d67c5c", | ||
"version" : "1.2022062300.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "alamofire", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/Alamofire/Alamofire.git", | ||
"state" : { | ||
"revision" : "bc268c28fb170f494de9e9927c371b8342979ece", | ||
"version" : "5.7.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "firebase-ios-sdk", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/firebase/firebase-ios-sdk.git", | ||
"state" : { | ||
"revision" : "a580250a9ff49ec38da5430cef20f88ddc831db2", | ||
"version" : "10.12.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "googleappmeasurement", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GoogleAppMeasurement.git", | ||
"state" : { | ||
"revision" : "0a226a8c50494c4cb877fbde27ab6374520a3354", | ||
"version" : "10.12.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "googledatatransport", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GoogleDataTransport.git", | ||
"state" : { | ||
"revision" : "98a00258d4518b7521253a70b7f70bb76d2120fe", | ||
"version" : "9.2.4" | ||
} | ||
}, | ||
{ | ||
"identity" : "googleutilities", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GoogleUtilities.git", | ||
"state" : { | ||
"revision" : "4446686bc3714d49ce043d0f68318f42ed718cb6", | ||
"version" : "7.11.4" | ||
} | ||
}, | ||
{ | ||
"identity" : "grpc-binary", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/grpc-binary.git", | ||
"state" : { | ||
"revision" : "f1b366129d1125be7db83247e003fc333104b569", | ||
"version" : "1.50.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "gtm-session-fetcher", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/gtm-session-fetcher.git", | ||
"state" : { | ||
"revision" : "d415594121c9e8a4f9d79cecee0965cf35e74dbd", | ||
"version" : "3.1.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "leveldb", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/firebase/leveldb.git", | ||
"state" : { | ||
"revision" : "0706abcc6b0bd9cedfbb015ba840e4a780b5159b", | ||
"version" : "1.22.2" | ||
} | ||
}, | ||
{ | ||
"identity" : "nanopb", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/firebase/nanopb.git", | ||
"state" : { | ||
"revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692", | ||
"version" : "2.30909.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "promises", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/promises.git", | ||
"state" : { | ||
"revision" : "ec957ccddbcc710ccc64c9dcbd4c7006fcf8b73a", | ||
"version" : "2.2.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "realm-core", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/realm/realm-core.git", | ||
"state" : { | ||
"revision" : "f1434caadda443b4ed2261b91ea4f43ab1ee2aa5", | ||
"version" : "13.15.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "realm-swift", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/realm/realm-swift.git", | ||
"state" : { | ||
"branch" : "master", | ||
"revision" : "2df43547c16fc2452e7d163f0424106cdf9aa8f7" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-protobuf", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-protobuf.git", | ||
"state" : { | ||
"revision" : "f25867a208f459d3c5a06935dceb9083b11cd539", | ||
"version" : "1.22.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
Binary file added
BIN
+46.8 KB
...j/project.xcworkspace/xcuserdata/dmitrikolesov.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Binary file added
BIN
+167 KB
...codeproj/project.xcworkspace/xcuserdata/tx3000.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
56 changes: 56 additions & 0 deletions
56
TripDiary.xcodeproj/xcuserdata/dmitrikolesov.xcuserdatad/xcschemes/xcschememanagement.plist
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,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>GettingStarted (Playground) 1.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>5</integer> | ||
</dict> | ||
<key>GettingStarted (Playground) 2.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>6</integer> | ||
</dict> | ||
<key>GettingStarted (Playground).xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>4</integer> | ||
</dict> | ||
<key>Promises (Playground) 1.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>2</integer> | ||
</dict> | ||
<key>Promises (Playground) 2.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>3</integer> | ||
</dict> | ||
<key>Promises (Playground).xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>1</integer> | ||
</dict> | ||
<key>TripDiary.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
56 changes: 56 additions & 0 deletions
56
TripDiary.xcodeproj/xcuserdata/tx3000.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
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,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
uuid = "EDEE3CA7-2119-4AA4-B9FD-57EFBDA59C43" | ||
type = "1" | ||
version = "2.0"> | ||
<Breakpoints> | ||
<BreakpointProxy | ||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> | ||
<BreakpointContent | ||
uuid = "00B6B33C-AD2A-4B8D-8558-96446B009A53" | ||
shouldBeEnabled = "Yes" | ||
ignoreCount = "0" | ||
continueAfterRunningActions = "No" | ||
filePath = "TripDiary/Helpers/DataViewController.swift" | ||
startingColumnNumber = "9223372036854775807" | ||
endingColumnNumber = "9223372036854775807" | ||
startingLineNumber = "15" | ||
endingLineNumber = "15" | ||
landmarkName = "UIImageData" | ||
landmarkType = "14"> | ||
</BreakpointContent> | ||
</BreakpointProxy> | ||
<BreakpointProxy | ||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> | ||
<BreakpointContent | ||
uuid = "A6783758-FD19-42B5-B89C-13E893E98705" | ||
shouldBeEnabled = "No" | ||
ignoreCount = "0" | ||
continueAfterRunningActions = "No" | ||
filePath = "TripDiary/Scences/DetailsModule/DetailsPresenter.swift" | ||
startingColumnNumber = "9223372036854775807" | ||
endingColumnNumber = "9223372036854775807" | ||
startingLineNumber = "13" | ||
endingLineNumber = "13" | ||
landmarkName = "DetailsPresenterProtocol" | ||
landmarkType = "5"> | ||
</BreakpointContent> | ||
</BreakpointProxy> | ||
<BreakpointProxy | ||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> | ||
<BreakpointContent | ||
uuid = "36CAE16C-282D-4CB5-99E0-E796D678FBE9" | ||
shouldBeEnabled = "No" | ||
ignoreCount = "0" | ||
continueAfterRunningActions = "No" | ||
filePath = "TripDiary/Helpers/WeatherService.swift" | ||
startingColumnNumber = "9223372036854775807" | ||
endingColumnNumber = "9223372036854775807" | ||
startingLineNumber = "30" | ||
endingLineNumber = "30" | ||
landmarkName = "fetchWeatherTemperature(for:completion:)" | ||
landmarkType = "7"> | ||
</BreakpointContent> | ||
</BreakpointProxy> | ||
</Breakpoints> | ||
</Bucket> |
56 changes: 56 additions & 0 deletions
56
TripDiary.xcodeproj/xcuserdata/tx3000.xcuserdatad/xcschemes/xcschememanagement.plist
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,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>GettingStarted (Playground) 1.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>3</integer> | ||
</dict> | ||
<key>GettingStarted (Playground) 2.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>4</integer> | ||
</dict> | ||
<key>GettingStarted (Playground).xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
<key>Promises (Playground) 1.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>5</integer> | ||
</dict> | ||
<key>Promises (Playground) 2.xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>6</integer> | ||
</dict> | ||
<key>Promises (Playground).xcscheme</key> | ||
<dict> | ||
<key>isShown</key> | ||
<false/> | ||
<key>orderHint</key> | ||
<integer>2</integer> | ||
</dict> | ||
<key>TripDiary.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
Binary file not shown.
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,33 @@ | ||
// | ||
// DateAdapter.swift | ||
// TripDiary | ||
// | ||
// Created by TX 3000 on 11.07.2023. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol DateAdapterProtocol { | ||
func getString(from dateComponents: DateComponents, format: String) -> String? | ||
} | ||
|
||
class DateAdapter: DateAdapterProtocol { | ||
private let dateFormatter: DateFormatter | ||
|
||
init() { | ||
dateFormatter = DateFormatter() | ||
} | ||
|
||
func getString(from dateComponents: DateComponents, format: String) -> String? { | ||
guard let date = dateComponents.date else { | ||
return nil | ||
} | ||
dateFormatter.dateFormat = format | ||
return dateFormatter.string(from: date) | ||
} | ||
} | ||
|
||
extension String { | ||
/// dateFormatter.dateFormat = "dd.MM.yyyy" | ||
static let formatteDayMonthYear = "dd.MM.yyyy" | ||
} |
Oops, something went wrong.