diff --git a/data/src/main/java/com/susu/data/data/di/RepositoryModule.kt b/data/src/main/java/com/susu/data/data/di/RepositoryModule.kt index 750bc5c9..daf25d15 100644 --- a/data/src/main/java/com/susu/data/data/di/RepositoryModule.kt +++ b/data/src/main/java/com/susu/data/data/di/RepositoryModule.kt @@ -85,5 +85,4 @@ abstract class RepositoryModule { abstract fun bindVoteRepository( voteRepositoryImpl: VoteRepositoryImpl, ): VoteRepository - } diff --git a/data/src/main/java/com/susu/data/remote/di/ApiServiceModule.kt b/data/src/main/java/com/susu/data/remote/di/ApiServiceModule.kt index 681f7805..7c6452dd 100644 --- a/data/src/main/java/com/susu/data/remote/di/ApiServiceModule.kt +++ b/data/src/main/java/com/susu/data/remote/di/ApiServiceModule.kt @@ -66,6 +66,7 @@ object ApiServiceModule { @Provides fun providesStatisticsService(retrofit: Retrofit): StatisticsService { return retrofit.create(StatisticsService::class.java) + } @Singleton @Provides diff --git a/data/src/main/java/com/susu/data/remote/model/response/MyStatisticsResponse.kt b/data/src/main/java/com/susu/data/remote/model/response/MyStatisticsResponse.kt index 966823eb..e9be8886 100644 --- a/data/src/main/java/com/susu/data/remote/model/response/MyStatisticsResponse.kt +++ b/data/src/main/java/com/susu/data/remote/model/response/MyStatisticsResponse.kt @@ -27,7 +27,7 @@ fun MyStatisticsResponse.toModel() = MyStatistics( mostSpentMonth = mostSpentMonth, recentSpent = recentSpent.map { it.toModel() }, recentMaximumSpent = recentSpent.maxOfOrNull { it.value } ?: 0, - recentTotalSpent = recentSpent.sumOf { it.value } + recentTotalSpent = recentSpent.sumOf { it.value }, ) fun StatisticsElement.toModel() = com.susu.core.model.StatisticsElement( diff --git a/feature/statistics/src/main/java/com/susu/feature/statistics/StatisticsContract.kt b/feature/statistics/src/main/java/com/susu/feature/statistics/StatisticsContract.kt index 3abeaab4..52bfe0b9 100644 --- a/feature/statistics/src/main/java/com/susu/feature/statistics/StatisticsContract.kt +++ b/feature/statistics/src/main/java/com/susu/feature/statistics/StatisticsContract.kt @@ -6,7 +6,7 @@ import com.susu.core.ui.base.UiState enum class StatisticsTab(@StringRes val stringId: Int) { MY(R.string.statistics_tab_my), - AVERAGE(R.string.statistics_tab_average) + AVERAGE(R.string.statistics_tab_average), } data class StatisticsState(