-
Notifications
You must be signed in to change notification settings - Fork 1
[Feature/#18] 로그인 api 연동 #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ee0db4e
Chore: 모듈 의존성 추가
wjdrjs00 bfbca9e
Feat: ErrorResponse 정의
wjdrjs00 e778a06
Refactor: DataStore 및 Network 모듈 구조 개선
wjdrjs00 5374b35
Feat: Auth 도메인 구현
wjdrjs00 5d2e6a6
Feat: BitnagilError 정의
wjdrjs00 9f5e1a1
Feat: Auth 데이터 모듈 구현
wjdrjs00 3631c8d
Feat: 서버 로그인 연동
wjdrjs00 077a877
Feat: 로그인 API 요청 시 토큰 제외 처리
wjdrjs00 91cc534
Feat: 로그인 시 토큰 저장 로직 구현
wjdrjs00 76d6be2
Feat: UserRole enum class 추가
wjdrjs00 c418049
Feat: 로그인 결과에 따른 처리 구현
wjdrjs00 64a6c7c
Chore: DataStore 테스트 반환타입 수정
wjdrjs00 48a3227
Refactor: 로그인 성공 시 토큰 업데이트 로직 개선
wjdrjs00 c1ad2d4
Refactor: TokenProvider 토큰 호출 방식 변경
wjdrjs00 fe99bbb
Refactor: 로그인 Intent 분리
wjdrjs00 4944a2c
Feat: 카카오 로그인 핸들러 구현
wjdrjs00 5869a40
Refactor: 카카오 로그인 로직 변경
wjdrjs00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
24 changes: 24 additions & 0 deletions
24
app/src/main/java/com/threegap/bitnagil/di/data/DataSourceModule.kt
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package com.threegap.bitnagil.di.data | ||
|
|
||
| import com.threegap.bitnagil.data.auth.datasource.AuthLocalDataSource | ||
| import com.threegap.bitnagil.data.auth.datasource.AuthRemoteDataSource | ||
| import com.threegap.bitnagil.data.auth.datasourceimpl.AuthLocalDataSourceImpl | ||
| import com.threegap.bitnagil.data.auth.datasourceimpl.AuthRemoteDataSourceImpl | ||
| import dagger.Binds | ||
| import dagger.Module | ||
| import dagger.hilt.InstallIn | ||
| import dagger.hilt.components.SingletonComponent | ||
| import javax.inject.Singleton | ||
|
|
||
| @Module | ||
| @InstallIn(SingletonComponent::class) | ||
| abstract class DataSourceModule { | ||
|
|
||
| @Binds | ||
| @Singleton | ||
| abstract fun bindAuthDataSource(authDataSourceImpl: AuthRemoteDataSourceImpl): AuthRemoteDataSource | ||
|
|
||
| @Binds | ||
| @Singleton | ||
| abstract fun bindAuthLocalDataSource(authLocalDataSourceImpl: AuthLocalDataSourceImpl): AuthLocalDataSource | ||
| } |
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/threegap/bitnagil/di/data/RepositoryModule.kt
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package com.threegap.bitnagil.di.data | ||
|
|
||
| import com.threegap.bitnagil.data.auth.repositoryimpl.AuthRepositoryImpl | ||
| import com.threegap.bitnagil.domain.auth.repository.AuthRepository | ||
| import dagger.Binds | ||
| import dagger.Module | ||
| import dagger.hilt.InstallIn | ||
| import dagger.hilt.components.SingletonComponent | ||
| import javax.inject.Singleton | ||
|
|
||
| @Module | ||
| @InstallIn(SingletonComponent::class) | ||
| abstract class RepositoryModule { | ||
|
|
||
| @Binds | ||
| @Singleton | ||
| abstract fun bindAuthRepository(authRepositoryImpl: AuthRepositoryImpl): AuthRepository | ||
| } |
20 changes: 20 additions & 0 deletions
20
app/src/main/java/com/threegap/bitnagil/di/data/ServiceModule.kt
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package com.threegap.bitnagil.di.data | ||
|
|
||
| import com.threegap.bitnagil.data.auth.service.AuthService | ||
| import com.threegap.bitnagil.di.core.Auth | ||
| import dagger.Module | ||
| import dagger.Provides | ||
| import dagger.hilt.InstallIn | ||
| import dagger.hilt.components.SingletonComponent | ||
| import retrofit2.Retrofit | ||
| import javax.inject.Singleton | ||
|
|
||
| @Module | ||
| @InstallIn(SingletonComponent::class) | ||
| object ServiceModule { | ||
|
|
||
| @Provides | ||
| @Singleton | ||
| fun provideAuthService(@Auth retrofit: Retrofit): AuthService = | ||
| retrofit.create(AuthService::class.java) | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.