File tree Expand file tree Collapse file tree 9 files changed +16
-14
lines changed
app/src/main/play/release-notes/ko-KR
domain/src/main/java/team/retum/usecase/entity/notice
network/src/main/java/team/retum/network/model/response/notice
notice/src/main/java/team/retum/jobis/notice
signup/src/main/java/team/retum/signup/viewmodel Expand file tree Collapse file tree 9 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 7878 tag_name : ${{ steps.get_tag.outputs.name }}
7979 draft : false
8080 prerelease : false
81+ generate_release_notes : true
8182
8283 - name : Notify Discord on Success
8384 if : success()
Original file line number Diff line number Diff line change 1- [v2.2.7 ]
1+ [v2.2.8 ]
22β’ μμν λ²κ·Έλ₯Ό μμ νμ΄μ.
33
44[ μλ‘μ΄ κΈ°λ₯ ]
55-
66
77[ κ°μ λ μ ]
8- β’ μΈμ¦ νλ©΄μ λ²νΌ λμμΈμ μμλ₯Ό κ°μ νμ΄μ.
8+ -
99
1010[ λ²κ·Έ μμ ]
11- β’ λ‘κ·Έμμ λ²κ·Έλ₯Ό μμ νμ΄μ.
12- β’ λΆλ§ν¬μμ μ΄λμ΄ μλλ λ²κ·Έλ₯Ό μμ νμ΄μ.
11+ β’ νμκ°μ
μ λΉλ°λ²νΈμ νΉμλ¬Έμκ° μλ€μ΄κ°λ λ²κ·Έλ₯Ό μμ νμ΄μ.
12+ ⒠곡μ§μ¬ν μμΈνλ©΄μ΄ μ보μ΄λ λ²κ·Έλ₯Ό μμ νμ΄μ.
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ object ProjectProperties {
22 const val COMPILE_SDK = 34
33 const val MIN_SDK = 28
44 const val TARGET_SDK = 34
5- const val VERSION_CODE = 21
6- const val VERSION_NAME = " 2.2.7 "
5+ const val VERSION_CODE = 22
6+ const val VERSION_NAME = " 2.2.8 "
77 const val COMPOSE_COMPILER_EXTENSION = " 1.5.6"
88 const val JVM_TARGET = " 18"
99}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ data class NoticeDetailsEntity(
1111 val title : String ,
1212 val content : String ,
1313 val createdAt : String ,
14- val attachments : List <AttachmentEntity >,
14+ val attachments : List <AttachmentEntity >? ,
1515) {
1616 data class AttachmentEntity (
1717 val url : String ,
@@ -29,7 +29,7 @@ internal fun FetchNoticeDetailsResponse.toEntity() = NoticeDetailsEntity(
2929 title = this .title,
3030 content = this .content,
3131 createdAt = outputFormat.format(inputFormat.parse(this .createdAt)!! ),
32- attachments = this .attachments.map { it.toEntity() },
32+ attachments = this .attachments? .map { it.toEntity() },
3333)
3434
3535private fun FetchNoticeDetailsResponse.AttachmentResponse.toEntity () =
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ data class FetchNoticeDetailsResponse(
99 @Json(name = " title" ) val title : String ,
1010 @Json(name = " content" ) val content : String ,
1111 @Json(name = " created_at" ) val createdAt : String ,
12- @Json(name = " attachments" ) val attachments : List <AttachmentResponse >,
12+ @Json(name = " attachments" ) val attachments : List <AttachmentResponse >? ,
1313) {
1414 @JsonClass(generateAdapter = true )
1515 data class AttachmentResponse (
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ private fun NoticeDetailsScreen(
119119 .verticalScroll(scrollState),
120120 ) {
121121 Notice (noticeDetailsEntity = state.noticeDetailsEntity)
122- state.noticeDetailsEntity.attachments.forEach {
122+ state.noticeDetailsEntity.attachments? .forEach {
123123 AttachFile (
124124 fileName = it.url,
125125 saveFileData = saveFileData,
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ internal data class NoticeDetailsState(
9898 title = " " ,
9999 content = " " ,
100100 createdAt = " " ,
101- attachments = emptyList() ,
101+ attachments = null ,
102102 ),
103103 filePath = " " ,
104104 )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel
44import team.retum.common.base.BaseViewModel
55import team.retum.common.utils.Regex
66import team.retum.jobisdesignsystemv2.textfield.DescriptionType
7- import java.net.URLEncoder
7+ import java.util.Base64
88import java.util.regex.Pattern
99import javax.inject.Inject
1010
@@ -55,7 +55,7 @@ internal class SetPasswordViewModel @Inject constructor() :
5555
5656 internal fun onNextClick () {
5757 setState { state.value.copy(buttonEnabled = false ) }
58- val encodedPassword = URLEncoder .encode( state.value.password, " UTF8 " )
58+ val encodedPassword = Base64 .getEncoder().encodeToString( state.value.password.toByteArray( Charsets . UTF_8 ) )
5959 postSideEffect(SetPasswordSideEffect .MoveToNext (password = encodedPassword))
6060 }
6161}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import team.retum.signup.model.SignUpData
1111import team.retum.usecase.usecase.student.PostSignUpUseCase
1212import team.retum.usecase.usecase.user.GetDeviceTokenUseCase
1313import java.net.URLDecoder
14+ import java.util.Base64
1415import javax.inject.Inject
1516
1617@HiltViewModel
@@ -39,7 +40,7 @@ internal class TermsViewModel @Inject constructor(
3940
4041 internal fun onCompleteClick (signUpData : SignUpData ) {
4142 with (signUpData) {
42- val decodedPassword = URLDecoder . decode(password, " UTF8 " )
43+ val decodedPassword = String ( Base64 .getDecoder(). decode(password), Charsets . UTF_8 )
4344 val decodedImageUrl = if (profileImageUrl.isNullOrEmpty()) {
4445 null
4546 } else {
You canβt perform that action at this time.
0 commit comments