Skip to content

Commit

Permalink
chore(build.gradle.kts): 버전 코드와 버전 명 변경 및 알림 목록화면에서 댓글 알림에서 댓글 작성자명을 …
Browse files Browse the repository at this point in the history
…보여주도록 변경

- 60 -> 62(61버전을 임시 저장 했는데 이미 사용한 버전이라서 안된다고 해서 62로 올림)
- 2.2.5 -> 2.3.0
  • Loading branch information
ki960213 committed Feb 9, 2024
1 parent b761e49 commit c9dbb23
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 19 deletions.
4 changes: 2 additions & 2 deletions android/2023-emmsale/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {
applicationId = "com.emmsale"
minSdk = 28
targetSdk = 33
versionCode = 60
versionName = "2.2.5"
versionCode = 62
versionName = "2.3.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ fun NotificationResponse.toData(): Notification = when (notificationType) {
content = commentNotificationInformation.content,
parentCommentId = commentNotificationInformation.parentId,
feed = Feed(id = commentNotificationInformation.feedId),
writer = Member(profileImageUrl = commentNotificationInformation.writerProfileImageUrl),
writer = Member(
name = commentNotificationInformation.writerName,
profileImageUrl = commentNotificationInformation.writerProfileImageUrl,
),
),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
android:id="@+id/iv_comment_menu_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="-2dp"
android:layout_marginEnd="-4dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/comment_menu_button"
android:onClick="@{() -> onCommentMenuClick.invoke(uiState.isWrittenByLoginUser, uiState.comment)}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
android:focusable="true"
android:onClick="@{() -> onNotificationClick.invoke(commentNotification)}"
android:paddingHorizontal="17dp"
android:paddingVertical="21dp">
android:paddingVertical="18dp">

<ImageView
android:id="@+id/iv_member_profile"
Expand All @@ -49,11 +49,24 @@
android:scaleType="centerCrop"
app:imageUrl="@{commentNotification.comment.writer.profileImageUrl}"
app:isCircle="@{true}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@tools:sample/avatars" />

<TextView
android:id="@+id/tv_writer_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginEnd="12dp"
android:textSize="14sp"
android:text="@{commentNotification.comment.writer.name}"
app:layout_constraintTop_toTopOf="@id/iv_member_profile"
app:layout_constraintStart_toEndOf="@id/iv_member_profile"
app:layout_constraintEnd_toStartOf="@id/btn_delete"
android:fontFamily="@font/nanum_square_extra_bold"
tools:text="토마스" />

<TextView
android:id="@+id/tv_comment"
android:layout_width="0dp"
Expand All @@ -66,9 +79,10 @@
android:textColor="@color/black"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintEnd_toStartOf="@id/btn_delete"
android:layout_marginTop="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/iv_member_profile"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_writer_name"
tools:text="이번 행사 너무 재밌었어요! 저는 그래도 더 재밌었던 것 같아요. 다음에 또 만나요!" />

<TextView
Expand All @@ -77,6 +91,7 @@
android:layout_height="wrap_content"
android:textColor="@color/dark_gray"
android:textSize="12sp"
android:layout_marginTop="10dp"
app:dateText="@{commentNotification.createdAt}"
app:dateTimeFormatter="@{DateTimePattern.RELATIVE_TIME}"
app:layout_constraintBottom_toBottomOf="parent"
Expand All @@ -94,9 +109,9 @@
android:onClick="@{() -> onDeleteClick.invoke(commentNotification.id)}"
android:padding="6dp"
android:src="@drawable/ic_notification_delete"
app:layout_constraintBottom_toBottomOf="@+id/tv_comment"
app:layout_constraintBottom_toBottomOf="@+id/tv_writer_name"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/tv_comment" />
app:layout_constraintTop_toTopOf="@+id/tv_writer_name" />

</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/tv_comment"
android:id="@+id/tv_event_notification_message"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
Expand All @@ -67,17 +67,17 @@
app:layout_constraintTop_toTopOf="@+id/iv_member_profile" />

<TextView
android:id="@+id/tv_comment_event_title"
android:id="@+id/tv_event_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:fontFamily="@font/nanum_square_bold"
android:text="@{interestEventNotification.event.name}"
android:textColor="@color/black"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/tv_comment"
app:layout_constraintTop_toBottomOf="@+id/tv_comment"
app:layout_constraintStart_toStartOf="@+id/tv_event_notification_message"
app:layout_constraintTop_toBottomOf="@+id/tv_event_notification_message"
tools:text="안드로이드 최대 행사 드로이드 나이츠" />


Expand All @@ -91,8 +91,8 @@
android:textSize="12sp"
app:dateText="@{interestEventNotification.createdAt}"
app:dateTimeFormatter="@{DateTimePattern.RELATIVE_TIME}"
app:layout_constraintStart_toStartOf="@+id/tv_comment"
app:layout_constraintTop_toBottomOf="@+id/tv_comment_event_title"
app:layout_constraintStart_toStartOf="@+id/tv_event_notification_message"
app:layout_constraintTop_toBottomOf="@+id/tv_event_title"
tools:text="07.28" />

<ImageView
Expand All @@ -105,9 +105,9 @@
android:onClick="@{() -> onDeleteClick.invoke(interestEventNotification.id)}"
android:padding="6dp"
android:src="@drawable/ic_notification_delete"
app:layout_constraintBottom_toBottomOf="@+id/tv_comment"
app:layout_constraintBottom_toBottomOf="@+id/tv_event_notification_message"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/tv_comment" />
app:layout_constraintTop_toTopOf="@+id/tv_event_notification_message" />

</androidx.constraintlayout.widget.ConstraintLayout>
</layout>

0 comments on commit c9dbb23

Please sign in to comment.