-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from devmynd/harbor2-0
Refactor, Release Readiness
- Loading branch information
Showing
281 changed files
with
22,532 additions
and
1,819 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,61 @@ | ||
Harbor.xcodeproj/project.xcworkspace/xcuserdata/*.xcuserdatad/ | ||
Harbor.xcodeproj/xcuserdata/*.xcuserdatad/ | ||
# Xcode | ||
# | ||
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | ||
|
||
## Build generated | ||
build/ | ||
DerivedData/ | ||
|
||
## Various settings | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata/ | ||
|
||
## Other | ||
*.moved-aside | ||
*.xcuserstate | ||
|
||
## Obj-C/Swift specific | ||
*.hmap | ||
*.ipa | ||
|
||
## Playgrounds | ||
timeline.xctimeline | ||
playground.xcworkspace | ||
|
||
# Swift Package Manager | ||
# | ||
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. | ||
# Packages/ | ||
.build/ | ||
|
||
# CocoaPods | ||
# | ||
# We recommend against adding the Pods directory to your .gitignore. However | ||
# you should judge for yourself, the pros and cons are mentioned at: | ||
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control | ||
# | ||
# Pods/ | ||
|
||
# Carthage | ||
# | ||
# Add this line if you want to avoid checking in source code from Carthage dependencies. | ||
# Carthage/Checkouts | ||
|
||
Carthage/Build | ||
|
||
# fastlane | ||
# | ||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the | ||
# screenshots whenever they are needed. | ||
# For more information about the recommended setup visit: | ||
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md | ||
|
||
fastlane/report.xml | ||
fastlane/screenshots |
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,14 @@ | ||
|
||
import Drip | ||
|
||
class AppComponent: Component { | ||
var system: SystemModule { return module() } | ||
var service: ServiceModule { return module() } | ||
var interactor: InteractorModule { return module() } | ||
} | ||
|
||
class AppModule: Module<AppComponent> { | ||
required init(_ component: AppComponent) { | ||
super.init(component) | ||
} | ||
} |
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,28 @@ | ||
|
||
class InteractorModule: AppModule { | ||
func inject() -> Settings { | ||
return single { | ||
Settings( | ||
defaults: $0.system.inject(), | ||
keychain: $0.system.inject(), | ||
notificationCenter: $0.system.inject()) | ||
} | ||
} | ||
|
||
func inject() -> ProjectsInteractor { | ||
return single { | ||
ProjectsProvider( | ||
api: $0.service.inject(), | ||
settings: $0.interactor.inject()) as ProjectsInteractor | ||
} | ||
} | ||
|
||
func inject() -> TimerCoordinator { | ||
return single { | ||
TimerCoordinator( | ||
runLoop: $0.system.inject(), | ||
projectsInteractor: $0.interactor.inject(), | ||
settings: $0.interactor.inject()) | ||
} | ||
} | ||
} |
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,11 @@ | ||
|
||
class PreferencesViewModule: ViewModule { | ||
func inject<V: PreferencesView>(view: V) -> PreferencesPresenter<V> { | ||
return single { | ||
PreferencesPresenter( | ||
view: view, | ||
projectsInteractor: $0.app.interactor.inject(), | ||
settings: $0.app.interactor.inject()) | ||
} | ||
} | ||
} |
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 @@ | ||
|
||
class ServiceModule: AppModule { | ||
func inject() -> CodeshipApiType { | ||
return transient { component in | ||
CodeshipApi(settings: component.interactor.inject()) as CodeshipApiType | ||
} | ||
} | ||
} |
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,11 @@ | ||
|
||
class StatusMenuModule: ViewModule { | ||
func inject<V: StatusMenuView>(view: V) -> StatusMenuPresenter<V> { | ||
return single { | ||
StatusMenuPresenter( | ||
view: view, | ||
projectsInteractor: $0.app.interactor.inject(), | ||
settings: $0.app.interactor.inject()) | ||
} | ||
} | ||
} |
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,28 @@ | ||
|
||
import Foundation | ||
|
||
class SystemModule: AppModule { | ||
func inject() -> UserDefaults { | ||
return transient { | ||
NSUserDefaults.standardUserDefaults() as UserDefaults | ||
} | ||
} | ||
|
||
func inject() -> NotificationCenter { | ||
return transient { | ||
NSNotificationCenter.defaultCenter() as NotificationCenter | ||
} | ||
} | ||
|
||
func inject() -> RunLoop { | ||
return transient { | ||
NSRunLoop.mainRunLoop() as RunLoop | ||
} | ||
} | ||
|
||
func inject() -> Keychain { | ||
return transient { | ||
KeychainWrapper() as Keychain | ||
} | ||
} | ||
} |
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,14 @@ | ||
|
||
import Drip | ||
|
||
class ViewComponent: Component { | ||
var app: AppComponent { return parent() } | ||
var status: StatusMenuModule { return module() } | ||
var preferences: PreferencesViewModule { return module() } | ||
} | ||
|
||
class ViewModule: Module<ViewComponent> { | ||
required init(_ component: ViewComponent) { | ||
super.init(component) | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
Harbor.xcodeproj/project.xcworkspace/contents.xcworkspacedata
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
Harbor.xcodeproj/project.xcworkspace/xcshareddata/Harbor.xccheckout
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
Harbor.xcodeproj/project.xcworkspace/xcshareddata/Harbor2.xccheckout
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
Harbor.xcodeproj/xcuserdata/erinhochstatter.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
This file was deleted.
Oops, something went wrong.
114 changes: 0 additions & 114 deletions
114
Harbor.xcodeproj/xcuserdata/erinhochstatter.xcuserdatad/xcschemes/Harbor.xcscheme
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.