-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 신규 유저일 경우, IdToken, ProviderType 을 ProfileEditActivity로 전달 - ProfileEditActivity 에서 다음 버튼을 눌렀을 때 IdToken 과 ProviderType, 입력한 프로필 정보를 바탕으로 회원가입 진행할 수 있도록 밑작업
- Loading branch information
Showing
13 changed files
with
151 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/moyerun/moyeorun_android/login/ProviderType.kt
This file contains 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,9 @@ | ||
package com.moyerun.moyeorun_android.login | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
enum class ProviderType : Parcelable { | ||
} |
12 changes: 9 additions & 3 deletions
12
app/src/main/java/com/moyerun/moyeorun_android/login/data/LoginRepository.kt
This file contains 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
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/moyerun/moyeorun_android/login/data/model/LoginRequest.kt
This file contains 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,6 @@ | ||
package com.moyerun.moyeorun_android.login.data.model | ||
|
||
data class LoginRequest( | ||
val idToken: String, | ||
val providerType: String | ||
) |
2 changes: 1 addition & 1 deletion
2
...eorun_android/login/data/LoginResponse.kt → ...android/login/data/model/LoginResponse.kt
This file contains 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
2 changes: 1 addition & 1 deletion
2
...erun/moyeorun_android/login/data/Token.kt → ...oyeorun_android/login/data/model/Token.kt
This file contains 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 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
8 changes: 6 additions & 2 deletions
8
app/src/main/java/com/moyerun/moyeorun_android/login/ui/LoginEvent.kt
This file contains 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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
package com.moyerun.moyeorun_android.login.ui | ||
|
||
enum class LoginEvent { | ||
RegisteredUser, NewUser, Error | ||
import com.moyerun.moyeorun_android.profile.SignUpMetaData | ||
|
||
sealed class LoginEvent { | ||
object RegisteredUser : LoginEvent() | ||
data class NewUser(val signUpMetaData: SignUpMetaData) : LoginEvent() | ||
object Error : LoginEvent() | ||
} |
This file contains 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 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 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 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
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/moyerun/moyeorun_android/profile/SignUpMetaData.kt
This file contains 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,16 @@ | ||
package com.moyerun.moyeorun_android.profile | ||
|
||
import android.os.Parcelable | ||
import com.moyerun.moyeorun_android.login.ProviderType | ||
import kotlinx.parcelize.Parcelize | ||
|
||
/** | ||
* 회원가입을 위해 프로필 설정 화면으로 진입 시 | ||
* 회원가입 API 호출에 필요한 메타 데이터를 전달하기 위한 | ||
* DataHolder | ||
*/ | ||
@Parcelize | ||
data class SignUpMetaData( | ||
val idToken: String, | ||
val providerType: ProviderType | ||
) : Parcelable |