Skip to content

Commit

Permalink
[chore] #98 ktlint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
Doreminwoo committed Jan 11, 2024
1 parent 3f79523 commit d9f531c
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ interface JoinGroupRemoteDataSource {
teamId: Int,
code: RequestJoinGroupCodeDto
): BaseResponse<ResponseJoinGroupCodeDto>
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package org.sopt.pingle.data.datasourceimpl.remote

import javax.inject.Inject
import org.sopt.pingle.data.datasource.remote.JoinGroupRemoteDataSource
import org.sopt.pingle.data.model.remote.request.RequestJoinGroupCodeDto
import org.sopt.pingle.data.model.remote.response.ResponseJoinGroupCodeDto
import org.sopt.pingle.data.model.remote.response.ResponseJoinGroupInfoDto
import org.sopt.pingle.data.service.JoinGroupService
import org.sopt.pingle.domain.model.RequestJoinGroupCodeEntity
import org.sopt.pingle.util.base.BaseResponse
import javax.inject.Inject

class JoinGroupRemoteDataSourceImpl @Inject constructor(
private val joinGroupService: JoinGroupService
Expand All @@ -20,4 +19,4 @@ class JoinGroupRemoteDataSourceImpl @Inject constructor(
code: RequestJoinGroupCodeDto
): BaseResponse<ResponseJoinGroupCodeDto> =
joinGroupService.postJoinGroupCode(teamId = teamId, code = code)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ data class ResponseJoinGroupCodeDto(
id = id,
name = name
)
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.sopt.pingle.data.repository

import javax.inject.Inject
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import org.sopt.pingle.data.datasource.remote.JoinGroupRemoteDataSource
Expand All @@ -8,7 +9,6 @@ import org.sopt.pingle.domain.model.JoinGroupInfoEntity
import org.sopt.pingle.domain.model.RequestJoinGroupCodeEntity
import org.sopt.pingle.domain.model.ResponseJoinGroupCodeEntity
import org.sopt.pingle.domain.repository.JoinGroupRepository
import javax.inject.Inject

class JoinGroupRepositoryImpl @Inject constructor(
private val joinGroupRemoteDataSource: JoinGroupRemoteDataSource
Expand All @@ -32,4 +32,4 @@ class JoinGroupRepositoryImpl @Inject constructor(
}
emit(result.getOrThrow())
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ interface JoinGroupService {
const val TEAM_ID = "teamId"
const val REGISTER = "register"
}
}
}
2 changes: 1 addition & 1 deletion app/src/main/java/org/sopt/pingle/di/DataSourceModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
import org.sopt.pingle.data.datasource.local.DummyLocalDataSource
import org.sopt.pingle.data.datasource.local.PingleLocalDataSource
import org.sopt.pingle.data.datasource.remote.AuthRemoteDataSource
Expand All @@ -20,7 +21,6 @@ import org.sopt.pingle.data.datasourceimpl.remote.JoinGroupRemoteDataSourceImpl
import org.sopt.pingle.data.datasourceimpl.remote.MapRemoteDataSourceImpl
import org.sopt.pingle.data.datasourceimpl.remote.PingleRemoteDataSourceImpl
import org.sopt.pingle.data.datasourceimpl.remote.PlanRemoteDataSourceImpl
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/sopt/pingle/di/RepositoryModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
import org.sopt.pingle.data.repository.AuthRepositoryImpl
import org.sopt.pingle.data.repository.DummyRepositoryImpl
import org.sopt.pingle.data.repository.JoinGroupRepositoryImpl
Expand All @@ -16,7 +17,6 @@ import org.sopt.pingle.domain.repository.JoinGroupRepository
import org.sopt.pingle.domain.repository.MapRepository
import org.sopt.pingle.domain.repository.PingleRepository
import org.sopt.pingle.domain.repository.PlanRepository
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/org/sopt/pingle/di/UseCaseModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
import org.sopt.pingle.domain.repository.DummyRepository
import org.sopt.pingle.domain.repository.JoinGroupRepository
import org.sopt.pingle.domain.repository.MapRepository
Expand All @@ -14,11 +15,10 @@ import org.sopt.pingle.domain.usecase.GetJoinGroupInfoUseCase
import org.sopt.pingle.domain.usecase.GetPinListWithoutFilteringUseCase
import org.sopt.pingle.domain.usecase.GetPingleListUseCase
import org.sopt.pingle.domain.usecase.GetPlanLocationListUseCase
import org.sopt.pingle.domain.usecase.PostJoinGroupCodeUseCase
import org.sopt.pingle.domain.usecase.PostPingleCancelUseCase
import org.sopt.pingle.domain.usecase.PostPingleJoinUseCase
import org.sopt.pingle.domain.usecase.PostJoinGroupCodeUseCase
import org.sopt.pingle.domain.usecase.SetDummyDataUseCase
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package org.sopt.pingle.domain.model

class RequestJoinGroupCodeEntity(
val code: String
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package org.sopt.pingle.domain.model
data class ResponseJoinGroupCodeEntity(
val id: String,
val name: String
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ interface JoinGroupRepository {
teamId: Int,
code: RequestJoinGroupCodeEntity
): Flow<ResponseJoinGroupCodeEntity>
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class GetJoinGroupInfoUseCase(
) {
operator fun invoke(teamId: Int): Flow<JoinGroupInfoEntity> =
joinGroupRepository.getJoinGroupInfo(teamId = teamId)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class PostJoinGroupCodeUseCase(
code: RequestJoinGroupCodeEntity
): Flow<ResponseJoinGroupCodeEntity> =
joinGroupRepository.postJoinGroupCode(teamId = teamId, code = code)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ class JoinGroupCodeActivity :

is UiState.Empty -> Timber.tag(JOIN_GROUP_CODE_ACTIVITY).d(EMPTY)
}

}.launchIn(lifecycleScope)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
Expand All @@ -14,7 +15,6 @@ import org.sopt.pingle.domain.model.ResponseJoinGroupCodeEntity
import org.sopt.pingle.domain.usecase.GetJoinGroupInfoUseCase
import org.sopt.pingle.domain.usecase.PostJoinGroupCodeUseCase
import org.sopt.pingle.util.view.UiState
import javax.inject.Inject

@HiltViewModel
class JoinViewModel @Inject constructor(
Expand Down

0 comments on commit d9f531c

Please sign in to comment.