-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat/#132] timer 종료시에 watch의 운동 종료
- Loading branch information
Showing
15 changed files
with
116 additions
and
6 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
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
21 changes: 21 additions & 0 deletions
21
Projects/App/WatchExtension/Sources/Domain/WatchConnectivityControl.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,21 @@ | ||
// | ||
// WatchConnectivityControl.swift | ||
// AppWatchExtension | ||
// | ||
// Created by 송영모 on 2023/07/11. | ||
// | ||
|
||
import Foundation | ||
|
||
public enum WatchConnectivityControl: Int { | ||
case start | ||
case end | ||
|
||
static public func toDomain(int: Int) -> Self { | ||
switch int { | ||
case 0: return .start | ||
case 1: return .end | ||
default: return .start | ||
} | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
Projects/Domain/WatchConnectivity/Interface/Sources/WatchConnectivityControl.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,13 @@ | ||
// | ||
// WatchConnectivityControl.swift | ||
// DomainWatchConnectivityInterface | ||
// | ||
// Created by 송영모 on 2023/07/11. | ||
// | ||
|
||
import Foundation | ||
|
||
public enum WatchConnectivityControl: Int { | ||
case start | ||
case end | ||
} |
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,42 @@ | ||
import ProjectDescription | ||
import ProjectDescriptionHelpers | ||
import DependencyPlugin | ||
|
||
let project = Project.makeModule( | ||
name: ModulePath.Domain.name+ModulePath.Domain.WatchConnectivity.rawValue, | ||
targets: [ | ||
.domain( | ||
interface: .WatchConnectivity, | ||
factory: .init( | ||
dependencies: [ | ||
.domain(interface: .Workout), | ||
.core | ||
] | ||
) | ||
), | ||
.domain( | ||
implements: .WatchConnectivity, | ||
factory: .init( | ||
dependencies: [ | ||
.domain(interface: .WatchConnectivity) | ||
] | ||
) | ||
), | ||
.domain( | ||
testing: .WatchConnectivity, | ||
factory: .init( | ||
dependencies: [ | ||
.domain(interface: .WatchConnectivity) | ||
] | ||
) | ||
), | ||
.domain( | ||
tests: .WatchConnectivity, | ||
factory: .init( | ||
dependencies: [ | ||
.domain(testing: .WatchConnectivity) | ||
] | ||
) | ||
), | ||
] | ||
) |
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 @@ | ||
// This is for Tuist |
1 change: 1 addition & 0 deletions
1
Projects/Domain/WatchConnectivity/Testing/Sources/WatchConnectivityTesting.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 @@ | ||
// This is for Tuist |
11 changes: 11 additions & 0 deletions
11
Projects/Domain/WatchConnectivity/Tests/Sources/WatchConnectivityTest.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,11 @@ | ||
import XCTest | ||
|
||
final class WatchConnectivityTests: XCTestCase { | ||
override func setUpWithError() throws {} | ||
|
||
override func tearDownWithError() throws {} | ||
|
||
func testExample() { | ||
XCTAssertEqual(1, 1) | ||
} | ||
} |
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