-
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.
Merge pull request #99 from Nexters/release/1.1.0
[Release] 1.1.0 버전 업데이트 - master
- Loading branch information
Showing
26 changed files
with
376 additions
and
32 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
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
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
79 changes: 79 additions & 0 deletions
79
core/designsystem/src/main/java/com/moya/funch/ui/FunchDialog.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,79 @@ | ||
package com.moya.funch.ui | ||
|
||
import androidx.compose.foundation.clickable | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material3.AlertDialog | ||
import androidx.compose.material3.Surface | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import com.moya.funch.theme.FunchTheme | ||
import com.moya.funch.theme.LocalBackgroundTheme | ||
|
||
@Composable | ||
fun FunchDialog( | ||
title: String, | ||
text: String, | ||
dismissText: String, | ||
confirmText: String, | ||
onDismiss: () -> Unit, | ||
onConfirm: () -> Unit | ||
) { | ||
AlertDialog( | ||
title = { | ||
Text(text = title) | ||
}, | ||
titleContentColor = Color(0xFFE6E0E9), | ||
text = { | ||
Text(text = text) | ||
}, | ||
textContentColor = Color(0xFFCAC4D0), | ||
containerColor = Color(0xFF2B2930), | ||
confirmButton = { | ||
Box( | ||
modifier = Modifier | ||
.clickable(onClick = onConfirm) | ||
.padding(vertical = 10.dp, horizontal = 12.dp) | ||
) { | ||
Text( | ||
text = confirmText, | ||
color = Color(0xFFD0BCFF) | ||
) | ||
} | ||
}, | ||
onDismissRequest = { onDismiss() }, | ||
dismissButton = { | ||
Box( | ||
modifier = Modifier | ||
.clickable(onClick = onDismiss) | ||
.padding(vertical = 10.dp, horizontal = 12.dp) | ||
) { | ||
Text( | ||
text = dismissText, | ||
color = Color(0xFFD0BCFF) | ||
) | ||
} | ||
} | ||
) | ||
} | ||
|
||
@Preview | ||
@Composable | ||
private fun Preview1() { | ||
FunchTheme { | ||
Surface(color = LocalBackgroundTheme.current.color) { | ||
FunchDialog( | ||
title = "프로필 삭제하기", | ||
text = "기존 프로필이 삭제되고 복구가 불가능해요.\n정말 삭제하실 건가요?", | ||
dismissText = "취소하기", | ||
confirmText = "삭제하기", | ||
onDismiss = {}, | ||
onConfirm = {} | ||
) | ||
} | ||
} | ||
} |
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
core/domain/src/main/java/com/moya/funch/usecase/DeleteUserProfileUseCase.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.moya.funch.usecase | ||
|
||
import com.moya.funch.repository.MemberRepository | ||
import javax.inject.Inject | ||
|
||
class DeleteUserProfileUseCaseImpl @Inject constructor( | ||
private val memberRepository: MemberRepository | ||
) : DeleteUserProfileUseCase { | ||
override suspend operator fun invoke(): Result<String> { | ||
return memberRepository.deleteUserProfile() | ||
} | ||
} | ||
|
||
fun interface DeleteUserProfileUseCase { | ||
suspend operator fun invoke(): Result<String> | ||
} |
16 changes: 16 additions & 0 deletions
16
core/network/src/main/java/com/moya/funch/network/dto/response/match/CanMatchResponse.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.moya.funch.network.dto.response.match | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class CanMatchResponse( | ||
@SerialName("status") | ||
val status: Int, | ||
@SerialName("message") | ||
val message: String = "", | ||
@SerialName("code") | ||
val code: Int = 0, | ||
@SerialName("data") | ||
val data: Unit? = null | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"status": "200", | ||
"message": "매칭상대 프로필 존재하지 않음", | ||
"code": "4001", | ||
"data": null | ||
} |
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 @@ | ||
{ | ||
"status": "200", | ||
"message": "OK", | ||
"code": "1000", | ||
"data": null | ||
} |
Oops, something went wrong.