Skip to content
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

Login feature #25

Merged
merged 4 commits into from
Apr 18, 2024
Merged

Login feature #25

merged 4 commits into from
Apr 18, 2024

Conversation

Yoon-Chan
Copy link
Owner

PR 템플릿

close #8
Retroif2를 이용해 로컬 서버 네트워크 연결
hilt 구현 및 viewmodel orbit 라이브러리를 사용하여 State와 SideEffect 코드 구현
로그인 결과 token을 토스트 메세지로 출력(에러 발생시 같이 토스트 출력)

로컬 서버로 로그인을 통해 token값 반환받기, Retrofit hilt 구현 및 토큰값 결과를 토스트로 확인하기
@Yoon-Chan Yoon-Chan added this to the login milestone Apr 18, 2024
@Yoon-Chan Yoon-Chan self-assigned this Apr 18, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

ktlint

data/src/main/java/com/example/data/usecase/LoginUseCaseImpl.kt|12 col 81| A multiline expression should start on a new line
data/src/main/java/com/example/data/usecase/LoginUseCaseImpl.kt|12 col 81| Newline expected before expression body
domain/build.gradle.kts|20 col 1| Trailing space(s)

@@ -14,6 +19,9 @@ android {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:no-trailing-spaces reported by reviewdog 🐶
Trailing space(s)

@@ -48,4 +59,12 @@ dependencies {
ksp(libs.hilt.android.compiler)

implementation(project(":domain"))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:no-trailing-spaces reported by reviewdog 🐶
Trailing space(s)

@@ -48,4 +59,12 @@ dependencies {
ksp(libs.hilt.android.compiler)

implementation(project(":domain"))

//retrofit

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:comment-spacing reported by reviewdog 🐶
Missing space after //

//retrofit
implementation(libs.retrofit)
implementation(libs.converter.gson)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:no-trailing-spaces reported by reviewdog 🐶
Trailing space(s)

implementation(libs.retrofit)
implementation(libs.converter.gson)

//okhttp

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:comment-spacing reported by reviewdog 🐶
Missing space after //

import okhttp3.RequestBody

class LoginUseCaseImpl @Inject constructor(
private val userService: UserService

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:trailing-comma-on-declaration-site reported by reviewdog 🐶
Missing trailing comma before ")"


class LoginUseCaseImpl @Inject constructor(
private val userService: UserService
): LoginUseCase {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:colon-spacing reported by reviewdog 🐶
Missing spacing before ":"

class LoginUseCaseImpl @Inject constructor(
private val userService: UserService
): LoginUseCase {
override suspend fun invoke(id: String, password: String): Result<String> = runCatching {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected after opening parenthesis

class LoginUseCaseImpl @Inject constructor(
private val userService: UserService
): LoginUseCase {
override suspend fun invoke(id: String, password: String): Result<String> = runCatching {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Parameter should start on a newline

class LoginUseCaseImpl @Inject constructor(
private val userService: UserService
): LoginUseCase {
override suspend fun invoke(id: String, password: String): Result<String> = runCatching {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected before closing parenthesis

class LoginUseCaseImpl @Inject constructor(
private val userService: UserService
): LoginUseCase {
override suspend fun invoke(id: String, password: String): Result<String> = runCatching {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line

class LoginUseCaseImpl @Inject constructor(
private val userService: UserService
): LoginUseCase {
override suspend fun invoke(id: String, password: String): Result<String> = runCatching {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected before expression body

@@ -12,6 +17,9 @@ android {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] standard:no-trailing-spaces reported by reviewdog 🐶
Trailing space(s)

@Yoon-Chan Yoon-Chan merged commit 64b1407 into main Apr 18, 2024
4 checks passed
@Yoon-Chan Yoon-Chan deleted the login-feature branch April 18, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

로그인 기능 구현
1 participant