diff --git a/core/network/src/main/java/com/moneymong/moneymong/network/api/VersionApi.kt b/core/network/src/main/java/com/moneymong/moneymong/network/api/VersionApi.kt index 488b305c..b709d84a 100644 --- a/core/network/src/main/java/com/moneymong/moneymong/network/api/VersionApi.kt +++ b/core/network/src/main/java/com/moneymong/moneymong/network/api/VersionApi.kt @@ -9,5 +9,5 @@ interface VersionApi { @POST("api/v1/version") suspend fun checkUpdate( @Body version: VersionRequest - ): Result + ): Result } \ No newline at end of file diff --git a/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSource.kt b/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSource.kt index cf6e4225..ebc32476 100644 --- a/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSource.kt +++ b/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSource.kt @@ -2,5 +2,5 @@ package com.moneymong.moneymong.data.datasource.version interface VersionRemoteDataSource { - suspend fun checkUpdate(version: String): Result + suspend fun checkUpdate(version: String): Result } \ No newline at end of file diff --git a/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSourceImpl.kt b/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSourceImpl.kt index 084d4c60..847feef0 100644 --- a/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSourceImpl.kt +++ b/data/src/main/java/com/moneymong/moneymong/data/datasource/version/VersionRemoteDataSourceImpl.kt @@ -7,7 +7,7 @@ import javax.inject.Inject class VersionRemoteDataSourceImpl @Inject constructor( private val versionApi: VersionApi ) : VersionRemoteDataSource { - override suspend fun checkUpdate(version: String): Result { + override suspend fun checkUpdate(version: String): Result { return versionApi.checkUpdate(VersionRequest(version = version)) } } \ No newline at end of file diff --git a/data/src/main/java/com/moneymong/moneymong/data/repository/version/VersionRepositoryImpl.kt b/data/src/main/java/com/moneymong/moneymong/data/repository/version/VersionRepositoryImpl.kt index dbd5b275..c052a8ac 100644 --- a/data/src/main/java/com/moneymong/moneymong/data/repository/version/VersionRepositoryImpl.kt +++ b/data/src/main/java/com/moneymong/moneymong/data/repository/version/VersionRepositoryImpl.kt @@ -8,7 +8,7 @@ class VersionRepositoryImpl @Inject constructor( private val versionRemoteDataSource: VersionRemoteDataSource ) : VersionRepository { - override suspend fun checkUpdate(version: String): Result { + override suspend fun checkUpdate(version: String): Result { return versionRemoteDataSource.checkUpdate(version = version) } } \ No newline at end of file diff --git a/domain/src/main/java/com/moneymong/moneymong/domain/repository/version/VersionRepository.kt b/domain/src/main/java/com/moneymong/moneymong/domain/repository/version/VersionRepository.kt index 73498e36..bae12785 100644 --- a/domain/src/main/java/com/moneymong/moneymong/domain/repository/version/VersionRepository.kt +++ b/domain/src/main/java/com/moneymong/moneymong/domain/repository/version/VersionRepository.kt @@ -1,5 +1,5 @@ package com.moneymong.moneymong.domain.repository.version interface VersionRepository { - suspend fun checkUpdate(version: String): Result + suspend fun checkUpdate(version: String): Result } \ No newline at end of file diff --git a/domain/src/main/java/com/moneymong/moneymong/domain/usecase/version/CheckVersionUpdateUseCase.kt b/domain/src/main/java/com/moneymong/moneymong/domain/usecase/version/CheckVersionUpdateUseCase.kt index 5cddf435..f2f96b75 100644 --- a/domain/src/main/java/com/moneymong/moneymong/domain/usecase/version/CheckVersionUpdateUseCase.kt +++ b/domain/src/main/java/com/moneymong/moneymong/domain/usecase/version/CheckVersionUpdateUseCase.kt @@ -7,7 +7,7 @@ class CheckVersionUpdateUseCase @Inject constructor( private val versionRepository: VersionRepository ) { - suspend operator fun invoke(version: String): Result { + suspend operator fun invoke(version: String): Result { return versionRepository.checkUpdate(version = version) } } \ No newline at end of file