-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 삭제 사유 - domain module에서 input interface를 두어 의존성 역전을 해서 사용중 - 하지만 Hilt를 사용해서 UseCase를 의존성 주입해서 사용중인데 input interface로 다시 의존성 역전하고 이를 Bind하는 것이 burden이라 판단
- Loading branch information
Showing
10 changed files
with
14 additions
and
74 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
domain/src/main/java/com/foke/together/domain/input/GetCameraSourceTypeInterface.kt
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
domain/src/main/java/com/foke/together/domain/input/GetExternalCameraIPInterface.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
domain/src/main/java/com/foke/together/domain/input/SetCameraSourceTypeInterface.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
domain/src/main/java/com/foke/together/domain/input/SetExternalCameraIPInterface.kt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
domain/src/main/java/com/foke/together/domain/input/di/UseCaseModule.kt
This file was deleted.
Oops, something went wrong.
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
5 changes: 2 additions & 3 deletions
5
domain/src/main/java/com/foke/together/domain/interactor/SetCameraSourceTypeUseCase.kt
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,13 +1,12 @@ | ||
package com.foke.together.domain.interactor | ||
|
||
import com.foke.together.domain.input.SetCameraSourceTypeInterface | ||
import com.foke.together.domain.interactor.entity.CameraSourceType | ||
import com.foke.together.domain.output.AppPreferenceInterface | ||
import javax.inject.Inject | ||
|
||
class SetCameraSourceTypeUseCase @Inject constructor( | ||
private val appPreference: AppPreferenceInterface | ||
): SetCameraSourceTypeInterface { | ||
override suspend operator fun invoke(cameraSourceType: CameraSourceType) = | ||
) { | ||
suspend operator fun invoke(cameraSourceType: CameraSourceType) = | ||
appPreference.setCameraSourceType(cameraSourceType) | ||
} |
6 changes: 2 additions & 4 deletions
6
domain/src/main/java/com/foke/together/domain/interactor/SetExternalCameraIPUseCase.kt
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