-
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 #218 from hellokitty-coding-club/feat/change_date_…
…time_format [FEAT] 앱 전반에 걸친 Timestamp 표기방식 변경 및 워딩 수정 (#208)
- Loading branch information
Showing
24 changed files
with
148 additions
and
168 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
common-ui/src/main/java/com/lgtm/android/common_ui/model/MemberMissionStatusUI.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,15 +1,16 @@ | ||
package com.lgtm.android.common_ui.model | ||
|
||
import android.text.SpannableString | ||
import com.lgtm.android.common_ui.constant.ProcessStateUI | ||
|
||
data class MemberMissionStatusUI( | ||
val githubId: String, | ||
val githubPrUrl: String, | ||
val memberId: Int, | ||
val nickname: String, | ||
val missionFinishedDate: String, | ||
val paymentDate: String, | ||
val missionFinishedDate: SpannableString, | ||
val paymentDate: SpannableString, | ||
val processStatus: ProcessStateUI, | ||
val profileImageUrl: String, | ||
val isMissionSubmitted : Boolean | ||
val isMissionSubmitted: Boolean, | ||
) |
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
5 changes: 3 additions & 2 deletions
5
common-ui/src/main/java/com/lgtm/android/common_ui/model/NotificationUI.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,10 +1,11 @@ | ||
package com.lgtm.android.common_ui.model | ||
|
||
import android.text.SpannableString | ||
|
||
data class NotificationUI( | ||
val title: String, | ||
val body: String, | ||
val isRead: Boolean, | ||
val notificationId: Int, | ||
val date: String, | ||
val time: String, | ||
val dateTime: SpannableString, | ||
) |
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
27 changes: 0 additions & 27 deletions
27
common-ui/src/main/java/com/lgtm/android/common_ui/ui/LGTMTimestamp.kt
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
data/src/main/java/com/lgtm/android/data/model/mapper/LocalDateTimeParser.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,19 @@ | ||
package com.lgtm.android.data.model.mapper | ||
|
||
import com.google.firebase.crashlytics.ktx.crashlytics | ||
import com.google.firebase.ktx.Firebase | ||
import java.time.LocalDateTime | ||
import java.time.format.DateTimeParseException | ||
|
||
fun parseDate(date: String?): LocalDateTime? { | ||
return try { | ||
checkNotNull(date) | ||
LocalDateTime.parse(date) | ||
} catch (e: DateTimeParseException) { | ||
Firebase.crashlytics.log("$e / Wrong Date format : $date") | ||
null | ||
} catch (e: IllegalStateException) { | ||
Firebase.crashlytics.log("$e / created value might be null : $date") | ||
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
Oops, something went wrong.