From 8ab4b50acc7042828b85903d96785a791d292947 Mon Sep 17 00:00:00 2001 From: Luong Vo Date: Wed, 8 Mar 2023 10:16:03 +0700 Subject: [PATCH] [#20] Remove unnecessary blank lines --- .../java/vn/luongvo/kmm/survey/android/util/DateFormatter.kt | 1 - .../kmm/survey/data/local/datasource/SurveyLocalDataSource.kt | 1 - .../kmm/survey/data/local/datasource/TokenLocalDataSource.kt | 1 - .../kmm/survey/data/remote/datasource/AuthRemoteDataSource.kt | 1 - .../kmm/survey/data/remote/datasource/SurveyRemoteDataSource.kt | 1 - .../kmm/survey/data/remote/datasource/UserRemoteDataSource.kt | 1 - .../vn/luongvo/kmm/survey/domain/repository/AuthRepository.kt | 1 - .../vn/luongvo/kmm/survey/domain/repository/SurveyRepository.kt | 1 - .../vn/luongvo/kmm/survey/domain/repository/UserRepository.kt | 1 - .../luongvo/kmm/survey/domain/usecase/GetCachedSurveysUseCase.kt | 1 - .../luongvo/kmm/survey/domain/usecase/GetSurveyDetailUseCase.kt | 1 - .../vn/luongvo/kmm/survey/domain/usecase/GetSurveysUseCase.kt | 1 - .../luongvo/kmm/survey/domain/usecase/GetUserProfileUseCase.kt | 1 - .../vn/luongvo/kmm/survey/domain/usecase/IsLoggedInUseCase.kt | 1 - .../kotlin/vn/luongvo/kmm/survey/domain/usecase/LogInUseCase.kt | 1 - .../kotlin/vn/luongvo/kmm/survey/domain/usecase/LogOutUseCase.kt | 1 - .../vn/luongvo/kmm/survey/domain/usecase/RefreshTokenUseCase.kt | 1 - .../vn/luongvo/kmm/survey/domain/usecase/SubmitSurveyUseCase.kt | 1 - 18 files changed, 18 deletions(-) diff --git a/android/src/main/java/vn/luongvo/kmm/survey/android/util/DateFormatter.kt b/android/src/main/java/vn/luongvo/kmm/survey/android/util/DateFormatter.kt index f02dad16..cc98a269 100644 --- a/android/src/main/java/vn/luongvo/kmm/survey/android/util/DateFormatter.kt +++ b/android/src/main/java/vn/luongvo/kmm/survey/android/util/DateFormatter.kt @@ -4,7 +4,6 @@ import java.text.SimpleDateFormat import java.util.* interface DateFormatter { - fun format(date: Date, dateFormat: String): String } diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/local/datasource/SurveyLocalDataSource.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/local/datasource/SurveyLocalDataSource.kt index 87f8f1ea..68a3277e 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/local/datasource/SurveyLocalDataSource.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/local/datasource/SurveyLocalDataSource.kt @@ -6,7 +6,6 @@ import io.realm.kotlin.ext.query import vn.luongvo.kmm.survey.data.local.model.SurveyRealmObject interface SurveyLocalDataSource { - fun saveSurveys(surveys: List) fun getSurveys(): List diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/local/datasource/TokenLocalDataSource.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/local/datasource/TokenLocalDataSource.kt index 6d1525f2..3e76aad4 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/local/datasource/TokenLocalDataSource.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/local/datasource/TokenLocalDataSource.kt @@ -8,7 +8,6 @@ private const val ACCESS_TOKEN_KEY = "accessToken" private const val REFRESH_TOKEN_KEY = "refreshToken" interface TokenLocalDataSource { - fun saveToken(token: Token) fun clear() diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/AuthRemoteDataSource.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/AuthRemoteDataSource.kt index cdef919f..0bfca059 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/AuthRemoteDataSource.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/AuthRemoteDataSource.kt @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.data.remote.model.request.* import vn.luongvo.kmm.survey.data.remote.model.response.TokenResponse interface AuthRemoteDataSource { - suspend fun logIn(body: LoginRequestBody): TokenResponse suspend fun refreshToken(body: RefreshTokenRequestBody): TokenResponse diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/SurveyRemoteDataSource.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/SurveyRemoteDataSource.kt index fff66755..7677ee92 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/SurveyRemoteDataSource.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/SurveyRemoteDataSource.kt @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.data.remote.model.request.SurveySubmissionRequestBo import vn.luongvo.kmm.survey.data.remote.model.response.SurveyResponse interface SurveyRemoteDataSource { - suspend fun getSurveys(pageNumber: Int, pageSize: Int): List suspend fun getSurveyDetail(id: String): SurveyResponse diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/UserRemoteDataSource.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/UserRemoteDataSource.kt index c97b3a48..1f2a4981 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/UserRemoteDataSource.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/data/remote/datasource/UserRemoteDataSource.kt @@ -4,7 +4,6 @@ import vn.luongvo.kmm.survey.data.remote.ApiClient import vn.luongvo.kmm.survey.data.remote.model.response.UserResponse interface UserRemoteDataSource { - suspend fun getUserProfile(): UserResponse fun clearClientTokenConfig() diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/AuthRepository.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/AuthRepository.kt index 2cac7f7e..607e7fbd 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/AuthRepository.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/AuthRepository.kt @@ -4,7 +4,6 @@ import kotlinx.coroutines.flow.Flow import vn.luongvo.kmm.survey.domain.model.Token interface AuthRepository { - fun logIn(email: String, password: String): Flow fun refreshToken(refreshToken: String): Flow diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/SurveyRepository.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/SurveyRepository.kt index 2f6ee3ff..b4431ec7 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/SurveyRepository.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/SurveyRepository.kt @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.Survey import vn.luongvo.kmm.survey.domain.model.SurveySubmission interface SurveyRepository { - fun getSurveys(pageNumber: Int, pageSize: Int, isRefresh: Boolean): Flow> fun getCachedSurveys(): Flow> diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/UserRepository.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/UserRepository.kt index 389c43c9..15d8c6fc 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/UserRepository.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/repository/UserRepository.kt @@ -4,7 +4,6 @@ import kotlinx.coroutines.flow.Flow import vn.luongvo.kmm.survey.domain.model.User interface UserRepository { - fun getUserProfile(): Flow fun clearClientTokenConfig() diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetCachedSurveysUseCase.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetCachedSurveysUseCase.kt index 97a6cd51..bb512d30 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetCachedSurveysUseCase.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetCachedSurveysUseCase.kt @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.Survey import vn.luongvo.kmm.survey.domain.repository.SurveyRepository interface GetCachedSurveysUseCase { - operator fun invoke(): Flow> } diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetSurveyDetailUseCase.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetSurveyDetailUseCase.kt index 57974a3b..f15c3a37 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetSurveyDetailUseCase.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetSurveyDetailUseCase.kt @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.Survey import vn.luongvo.kmm.survey.domain.repository.SurveyRepository interface GetSurveyDetailUseCase { - operator fun invoke(id: String): Flow } diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetSurveysUseCase.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetSurveysUseCase.kt index 60c2d597..8a7038a3 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetSurveysUseCase.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetSurveysUseCase.kt @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.Survey import vn.luongvo.kmm.survey.domain.repository.SurveyRepository interface GetSurveysUseCase { - operator fun invoke(pageNumber: Int, pageSize: Int, isRefresh: Boolean): Flow> } diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetUserProfileUseCase.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetUserProfileUseCase.kt index fb711b88..c0741056 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetUserProfileUseCase.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/GetUserProfileUseCase.kt @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.User import vn.luongvo.kmm.survey.domain.repository.UserRepository interface GetUserProfileUseCase { - operator fun invoke(): Flow } diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/IsLoggedInUseCase.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/IsLoggedInUseCase.kt index 05544152..20abdd06 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/IsLoggedInUseCase.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/IsLoggedInUseCase.kt @@ -4,7 +4,6 @@ import kotlinx.coroutines.flow.Flow import vn.luongvo.kmm.survey.domain.repository.AuthRepository interface IsLoggedInUseCase { - operator fun invoke(): Flow } diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/LogInUseCase.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/LogInUseCase.kt index 31592ec7..88b6c33b 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/LogInUseCase.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/LogInUseCase.kt @@ -6,7 +6,6 @@ import vn.luongvo.kmm.survey.domain.model.Token import vn.luongvo.kmm.survey.domain.repository.AuthRepository interface LogInUseCase { - operator fun invoke(email: String, password: String): Flow } diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/LogOutUseCase.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/LogOutUseCase.kt index ff6e725d..ac0d8aed 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/LogOutUseCase.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/LogOutUseCase.kt @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.repository.AuthRepository import vn.luongvo.kmm.survey.domain.repository.UserRepository interface LogOutUseCase { - operator fun invoke(): Flow } diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/RefreshTokenUseCase.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/RefreshTokenUseCase.kt index d8075fad..9204b745 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/RefreshTokenUseCase.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/RefreshTokenUseCase.kt @@ -6,7 +6,6 @@ import vn.luongvo.kmm.survey.domain.model.Token import vn.luongvo.kmm.survey.domain.repository.AuthRepository interface RefreshTokenUseCase { - operator fun invoke(refreshToken: String): Flow } diff --git a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/SubmitSurveyUseCase.kt b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/SubmitSurveyUseCase.kt index a63883d0..b9e8316b 100644 --- a/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/SubmitSurveyUseCase.kt +++ b/shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/SubmitSurveyUseCase.kt @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.SurveySubmission import vn.luongvo.kmm.survey.domain.repository.SurveyRepository interface SubmitSurveyUseCase { - operator fun invoke(submission: SurveySubmission): Flow }