Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
3d6e984
build: 데이터레이어 의존성추가
s9hn Jun 4, 2025
5a4f54d
build: 페이징 의존성 toml 추가
s9hn Jun 5, 2025
266b4b5
refactor: 로그 제거
s9hn Jun 7, 2025
1c6af7e
refactor: 로그 제거
s9hn Jun 11, 2025
fedb86d
feat: LibraryRemoteMediator추가
s9hn Jun 13, 2025
a397a40
feat: LibraryRemoteMediator추가
s9hn Jun 14, 2025
0cc4760
feat: LibraryRemoteMediator추가
s9hn Jun 15, 2025
c830ff1
refactor: LibraryRemoteMediator 제거
s9hn Jul 2, 2025
2f8ef68
Merge remote-tracking branch 'origin/feat/711' into feat/694
yeonjeen Jul 2, 2025
fbad1ac
add: 아이콘 리소스 추가
yeonjeen Jul 3, 2025
aeb0cbe
feat: 서재 null 컴포저블 함수 구현
yeonjeen Jul 3, 2025
9e2cf2f
feat: 서재 필터 탑바 컴포저블 함수 구현
yeonjeen Jul 3, 2025
493b5ad
refactor: 서재필터타입 클래스 네이밍 변경
yeonjeen Jul 3, 2025
a70cc4d
feat: 그리드 리스트 아이템 컴포저블 함수 구현
yeonjeen Jul 3, 2025
37364fe
feat: 그리드 리스트 컴포저블 함수 구현
yeonjeen Jul 3, 2025
fe5d295
refactor: 외부 노출이 필요 없는 함수들 private 처리
yeonjeen Jul 3, 2025
ded37fb
refactor: 그리드 리스트 컴포저블 함수 네이밍 변경
yeonjeen Jul 3, 2025
06b122f
refactor: 변수명 변경
yeonjeen Jul 4, 2025
9c72ab4
feat: 리스트 아이템 컴포저블 함수 구현
yeonjeen Jul 4, 2025
140cba2
feat: 서재 리스트 컴포저블 함수 구현
yeonjeen Jul 4, 2025
e0b3a53
feat: 매력포인트 이넘 분리
yeonjeen Jul 4, 2025
850022d
feat: 소설 필터 타입 이넘 분리
yeonjeen Jul 4, 2025
f491fc9
feat: 소설 필터 UI state 구현
yeonjeen Jul 4, 2025
08289c7
refactor: 읽기상태 파라미터 ReadStatusUiModel로 변경
yeonjeen Jul 6, 2025
bb15b13
delete: 불필요한 파일 삭제
yeonjeen Jul 6, 2025
8027505
feat: 도메인 매력포인트 이넘에 라벨과 키 값 추가
yeonjeen Jul 6, 2025
8f2bc05
feat: 매력포인트 ui 모델 구현
yeonjeen Jul 6, 2025
715c1b3
feat: 매력포인트 ui 모델과 도메인 맵핑
yeonjeen Jul 6, 2025
9b2be93
feat: 날짜 포맷텡 유틸 함수 구현
yeonjeen Jul 6, 2025
356a1bc
feat: 필터 라벨 포맷팅 유틸 함수 구현
yeonjeen Jul 6, 2025
120bb1a
feat: 정렬타입 UI 모델 구현
yeonjeen Jul 6, 2025
0580d0c
feat: 스트링 리소스 추출
yeonjeen Jul 6, 2025
23ef2df
delete: 불필요한 부분 주석처리
yeonjeen Jul 6, 2025
c46b8e7
build: 의존성 추가
yeonjeen Jul 6, 2025
7ef7c62
feat: 서재 uiState 구현
yeonjeen Jul 6, 2025
f7b50ba
feat: 페이징 적용
yeonjeen Jul 6, 2025
72a2754
refactor: 파라미터 및 파일 네이밍 변경
yeonjeen Jul 6, 2025
f7df375
delete: 불필요한 임포트 삭제
yeonjeen Jul 6, 2025
f59ee79
build: 버전 업그레이드
yeonjeen Jul 6, 2025
7304feb
feat: 리스트 아이템 모델 구현
yeonjeen Jul 6, 2025
e9c7a5c
feat: 정렬 클릭시 텍스트 변경 구현
yeonjeen Jul 6, 2025
f800e56
feat: 소설 Entity와 서재아이템모델 멥핑
yeonjeen Jul 6, 2025
4d2d5b9
feat: 읽기 상태에 따른 배경색과 라벨 이넘으로 분리
yeonjeen Jul 6, 2025
b7a77d7
feat: 서재 스크린 컴포저블 함수 구현
yeonjeen Jul 6, 2025
8332a57
feat: 서재 뷰모델 구현
yeonjeen Jul 6, 2025
04ac6cb
feat: ux라이팅 수정
yeonjeen Jul 6, 2025
6654a90
refactor: 함수 네이밍 변경 및 변수 수정
yeonjeen Jul 7, 2025
9299666
refactor: 가시성 제어
yeonjeen Jul 7, 2025
bb9630d
refactor: 루트 Composable 함수 도입하여 stateful 컴포저블로 분리
yeonjeen Jul 7, 2025
2b393c9
refactor: 날짜 포멧팅 처리
yeonjeen Jul 7, 2025
7267f32
refactor: 스크린 함수 네이밍 변경 및 가시성 추가
yeonjeen Jul 7, 2025
68c14f8
refactor: 날짜포멧팅함수 코어로 분리
yeonjeen Jul 7, 2025
94b4831
refactor: 라벨포멧팅을 ui모델에서 처리
yeonjeen Jul 7, 2025
71bb035
refactor: 평점 별UI 로직을 UI모델로 분리
yeonjeen Jul 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.into.websoso.core.common.extensions

import java.time.LocalDate
import java.time.format.DateTimeFormatter
import java.time.format.DateTimeParseException

private val INPUT_DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd")
private val OUTPUT_DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy.MM.dd")

fun formatDateRange(
startDate: String?,
endDate: String?,
): String? {
if (startDate.isNullOrBlank()) return null

return try {
val startFormatted =
LocalDate.parse(startDate, INPUT_DATE_FORMATTER).format(OUTPUT_DATE_FORMATTER)

if (endDate.isNullOrBlank()) {
startFormatted
} else {
val endFormatted =
LocalDate.parse(endDate, INPUT_DATE_FORMATTER).format(OUTPUT_DATE_FORMATTER)
"$startFormatted ~ $endFormatted"
}
} catch (e: DateTimeParseException) {
null
}
}
15 changes: 15 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_character.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="7dp"
android:height="12dp"
android:viewportWidth="7"
android:viewportHeight="12">
<path
android:pathData="M1.589,2.737L2.213,8.079H3.511L3.511,0.662L1.726,2.359C1.623,2.456 1.572,2.597 1.589,2.737Z"
android:fillColor="#6A5DFD"/>
<path
android:pathData="M5.433,2.737L4.809,8.079H3.511L3.511,0.662L5.296,2.359C5.399,2.456 5.45,2.597 5.433,2.737Z"
android:fillColor="#6A5DFD"/>
<path
android:pathData="M6.304,8.795C6.342,8.927 6.243,9.058 6.106,9.058H4.722C4.608,9.058 4.516,9.151 4.516,9.265V11.131C4.516,11.245 4.423,11.338 4.309,11.338H2.533C2.419,11.338 2.326,11.245 2.326,11.131V9.265C2.326,9.151 2.234,9.058 2.12,9.058H0.736C0.599,9.058 0.5,8.927 0.538,8.795L0.857,7.688C0.883,7.6 0.964,7.539 1.056,7.539H5.787C5.879,7.539 5.96,7.6 5.985,7.688L6.304,8.795Z"
android:fillColor="#6A5DFD"/>
</vector>
11 changes: 11 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_drop_down_fill.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="14dp"
android:height="15dp"
android:viewportWidth="14"
android:viewportHeight="15">
<path
android:pathData="M6.883,10.854L3.195,6.244C3.116,6.145 3.186,6 3.312,6H10.688C10.814,6 10.884,6.145 10.805,6.244L7.117,10.854C7.057,10.929 6.943,10.929 6.883,10.854Z"
android:strokeWidth="1.125"
android:fillColor="#DDDDE3"
android:strokeColor="#DDDDE3"/>
</vector>
18 changes: 18 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_grid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="12dp"
android:height="12dp"
android:viewportWidth="12"
android:viewportHeight="12">
<path
android:pathData="M1.632,0.623L4.539,0.623A1.009,1.009 0,0 1,5.548 1.632L5.548,4.539A1.009,1.009 0,0 1,4.539 5.548L1.632,5.548A1.009,1.009 0,0 1,0.623 4.539L0.623,1.632A1.009,1.009 0,0 1,1.632 0.623z"
android:fillColor="#C7C7D0"/>
<path
android:pathData="M7.458,0.623L10.365,0.623A1.009,1.009 0,0 1,11.374 1.632L11.374,4.539A1.009,1.009 0,0 1,10.365 5.548L7.458,5.548A1.009,1.009 0,0 1,6.449 4.539L6.449,1.632A1.009,1.009 0,0 1,7.458 0.623z"
android:fillColor="#C7C7D0"/>
<path
android:pathData="M1.632,6.453L4.539,6.453A1.009,1.009 0,0 1,5.548 7.462L5.548,10.369A1.009,1.009 0,0 1,4.539 11.378L1.632,11.378A1.009,1.009 0,0 1,0.623 10.369L0.623,7.462A1.009,1.009 0,0 1,1.632 6.453z"
android:fillColor="#C7C7D0"/>
<path
android:pathData="M7.458,6.453L10.365,6.453A1.009,1.009 0,0 1,11.374 7.462L11.374,10.369A1.009,1.009 0,0 1,10.365 11.378L7.458,11.378A1.009,1.009 0,0 1,6.449 10.369L6.449,7.462A1.009,1.009 0,0 1,7.458 6.453z"
android:fillColor="#C7C7D0"/>
</vector>
12 changes: 12 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_half_star.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="10dp"
android:height="9dp"
android:viewportWidth="10"
android:viewportHeight="9">
<path
android:pathData="M6.655,2.882L5.427,0.453C5.371,0.344 5.269,0.289 5.166,0.289V7.41L7.635,8.676C7.852,8.788 8.098,8.593 8.055,8.344L7.588,5.689L9.569,3.805C9.754,3.629 9.659,3.307 9.411,3.272L6.655,2.882Z"
android:fillColor="#C7C7D0"/>
<path
android:pathData="M3.677,2.882L4.905,0.453C4.961,0.344 5.063,0.289 5.166,0.289V7.41L2.697,8.676C2.48,8.788 2.234,8.593 2.277,8.344L2.744,5.689L0.763,3.805C0.578,3.629 0.673,3.307 0.921,3.272L3.677,2.882Z"
android:fillColor="#FF675D"/>
</vector>
12 changes: 12 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_interesting.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="13dp"
android:height="14dp"
android:viewportWidth="13"
android:viewportHeight="14">
<path
android:pathData="M8.994,1.797C7.92,1.797 7.003,2.578 6.499,3.116C5.995,2.578 5.08,1.797 4.007,1.797C2.158,1.797 0.867,3.113 0.867,4.996C0.867,7.072 2.47,8.413 4.021,9.711C4.754,10.324 5.512,10.957 6.093,11.66C6.191,11.778 6.334,11.845 6.485,11.845H6.514C6.665,11.845 6.808,11.777 6.906,11.66C7.488,10.957 8.245,10.323 8.978,9.711C10.529,8.414 12.133,7.072 12.133,4.996C12.133,3.113 10.842,1.797 8.994,1.797Z"
android:fillColor="#6A5DFD"/>
<path
android:pathData="M12.133,4.996C12.133,3.112 10.842,1.796 8.993,1.796C7.92,1.796 7.003,2.577 6.499,3.116C5.995,2.577 5.08,1.796 4.007,1.796C2.158,1.797 0.867,3.112 0.867,4.996C0.867,7.071 2.47,8.412 4.021,9.71C4.753,10.323 5.512,10.957 6.093,11.66C6.166,11.748 6.265,11.808 6.374,11.832L6.485,11.845H6.514C6.628,11.845 6.737,11.806 6.825,11.738L6.905,11.66C7.488,10.957 8.245,10.322 8.978,9.71C10.48,8.453 12.033,7.156 12.129,5.189L12.133,4.996ZM13,4.996C13,6.281 12.496,7.318 11.818,8.18C11.157,9.021 10.294,9.739 9.534,10.375C8.788,10.998 8.096,11.582 7.573,12.212L7.572,12.213C7.315,12.523 6.93,12.712 6.514,12.712H6.485C6.072,12.712 5.686,12.525 5.427,12.213L5.425,12.212C4.904,11.582 4.211,10.999 3.465,10.374C2.705,9.738 1.841,9.021 1.181,8.18C0.503,7.318 0,6.28 0,4.996C0,3.852 0.395,2.826 1.125,2.082C1.855,1.338 2.87,0.93 4.007,0.93C5.029,0.93 5.893,1.435 6.499,1.93C7.106,1.435 7.971,0.93 8.993,0.93C10.13,0.93 11.145,1.338 11.875,2.082C12.605,2.826 13,3.852 13,4.996Z"
android:fillColor="#FAFAFA"/>
</vector>
24 changes: 24 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_list.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="12dp"
android:height="12dp"
android:viewportWidth="12"
android:viewportHeight="12">
<path
android:pathData="M1.632,0.967L2.232,0.967A1.009,1.009 0,0 1,3.241 1.976L3.241,2.575A1.009,1.009 0,0 1,2.232 3.585L1.632,3.585A1.009,1.009 0,0 1,0.623 2.575L0.623,1.976A1.009,1.009 0,0 1,1.632 0.967z"
android:fillColor="#C7C7D0"/>
<path
android:pathData="M5.558,0.967L10.264,0.967A1.009,1.009 0,0 1,11.274 1.976L11.274,2.575A1.009,1.009 0,0 1,10.264 3.585L5.558,3.585A1.009,1.009 0,0 1,4.549 2.575L4.549,1.976A1.009,1.009 0,0 1,5.558 0.967z"
android:fillColor="#C7C7D0"/>
<path
android:pathData="M1.632,4.691L2.232,4.691A1.009,1.009 0,0 1,3.241 5.701L3.241,6.3A1.009,1.009 0,0 1,2.232 7.309L1.632,7.309A1.009,1.009 0,0 1,0.623 6.3L0.623,5.701A1.009,1.009 0,0 1,1.632 4.691z"
android:fillColor="#C7C7D0"/>
<path
android:pathData="M1.632,8.416L2.232,8.416A1.009,1.009 0,0 1,3.241 9.425L3.241,10.025A1.009,1.009 0,0 1,2.232 11.034L1.632,11.034A1.009,1.009 0,0 1,0.623 10.025L0.623,9.425A1.009,1.009 0,0 1,1.632 8.416z"
android:fillColor="#949399"/>
<path
android:pathData="M5.558,4.695L10.264,4.695A1.009,1.009 0,0 1,11.274 5.705L11.274,6.304A1.009,1.009 0,0 1,10.264 7.313L5.558,7.313A1.009,1.009 0,0 1,4.549 6.304L4.549,5.705A1.009,1.009 0,0 1,5.558 4.695z"
android:fillColor="#949399"/>
<path
android:pathData="M5.558,8.416L10.264,8.416A1.009,1.009 0,0 1,11.274 9.425L11.274,10.025A1.009,1.009 0,0 1,10.264 11.034L5.558,11.034A1.009,1.009 0,0 1,4.549 10.025L4.549,9.425A1.009,1.009 0,0 1,5.558 8.416z"
android:fillColor="#949399"/>
</vector>
9 changes: 9 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_material.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="13dp"
android:height="12dp"
android:viewportWidth="13"
android:viewportHeight="12">
<path
android:pathData="M6.367,4.82C6.274,4.67 6.164,4.531 6.039,4.407V3.047H5.382C5.295,3.047 5.212,3.012 5.15,2.951C5.089,2.889 5.054,2.806 5.054,2.719C5.054,2.632 5.089,2.548 5.15,2.487C5.212,2.425 5.295,2.391 5.382,2.391H6.039V1.734C6.039,1.647 6.073,1.564 6.135,1.502C6.196,1.441 6.28,1.406 6.367,1.406C6.454,1.406 6.537,1.441 6.599,1.502C6.66,1.564 6.695,1.647 6.695,1.734V2.391H7.351C7.438,2.391 7.522,2.425 7.583,2.487C7.645,2.548 7.679,2.632 7.679,2.719C7.679,2.806 7.645,2.889 7.583,2.951C7.522,3.012 7.438,3.047 7.351,3.047H6.695V4.407C6.569,4.531 6.459,4.67 6.367,4.82ZM8.5,3.703C7.772,3.703 7.137,3.969 6.695,4.407V8.625C6.695,8.712 6.66,8.796 6.599,8.857C6.537,8.919 6.454,8.953 6.367,8.953C6.28,8.953 6.196,8.919 6.135,8.857C6.073,8.796 6.039,8.712 6.039,8.625V4.407C5.596,3.969 4.961,3.703 4.234,3.703C3.581,3.704 2.956,3.963 2.494,4.425C2.033,4.886 1.773,5.512 1.773,6.164C1.773,7.389 2.369,8.168 2.869,8.606C3.132,8.835 3.426,9.025 3.742,9.172V9.938C3.742,10.112 3.811,10.279 3.934,10.402C4.057,10.525 4.224,10.594 4.398,10.594H8.336C8.51,10.594 8.677,10.525 8.8,10.402C8.923,10.279 8.992,10.112 8.992,9.938V9.172C9.308,9.025 9.602,8.835 9.864,8.606C10.364,8.168 10.961,7.389 10.961,6.164C10.96,5.512 10.7,4.886 10.239,4.425C9.778,3.963 9.152,3.704 8.5,3.703Z"
android:fillColor="#6A5DFD"/>
</vector>
9 changes: 9 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_null_star.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="10dp"
android:height="9dp"
android:viewportWidth="10"
android:viewportHeight="9">
<path
android:pathData="M2.363,8.676C2.146,8.788 1.9,8.593 1.943,8.344L2.41,5.689L0.429,3.805C0.244,3.629 0.339,3.307 0.588,3.272L3.343,2.882L4.571,0.453C4.682,0.234 4.982,0.234 5.093,0.453L6.321,2.882L9.077,3.272C9.325,3.307 9.42,3.629 9.235,3.805L7.254,5.689L7.721,8.344C7.764,8.593 7.518,8.788 7.301,8.676L4.832,7.41L2.363,8.676Z"
android:fillColor="#C7C7D0"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="21dp"
android:viewportWidth="20"
android:viewportHeight="21">
<path
android:pathData="M7.814,9.82C8.325,9.82 8.731,9.986 9.031,10.318C9.331,10.65 9.482,11.078 9.482,11.604C9.482,12.571 9.181,13.512 8.58,14.424C7.949,15.364 7.153,16.207 6.192,16.954C5.2,17.728 4.178,18.336 3.127,18.779C3.067,18.806 2.992,18.82 2.901,18.82C2.631,18.82 2.391,18.723 2.18,18.53C1.94,18.364 1.94,18.24 2.18,18.157C3.022,17.797 3.773,17.286 4.434,16.622C5.095,15.959 5.591,15.309 5.921,14.673C5.02,14.59 4.569,14.065 4.569,13.097C4.569,12.544 4.734,12.019 5.065,11.521C5.395,11.023 5.816,10.608 6.327,10.276C6.808,9.972 7.303,9.82 7.814,9.82ZM16.332,9.82C16.843,9.82 17.249,9.986 17.549,10.318C17.85,10.65 18,11.078 18,11.604C18,12.571 17.699,13.512 17.099,14.424C16.468,15.364 15.671,16.207 14.71,16.954C13.718,17.728 12.697,18.336 11.645,18.779C11.585,18.806 11.51,18.82 11.42,18.82C11.149,18.82 10.909,18.723 10.699,18.53C10.458,18.364 10.458,18.24 10.699,18.157C11.54,17.797 12.291,17.286 12.952,16.622C13.613,15.959 14.109,15.309 14.439,14.673C13.538,14.59 13.087,14.065 13.087,13.097C13.087,12.544 13.253,12.019 13.583,11.521C13.914,11.023 14.334,10.608 14.845,10.276C15.326,9.972 15.822,9.82 16.332,9.82Z"
android:fillColor="#949399"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="21dp"
android:viewportWidth="20"
android:viewportHeight="21">
<path
android:pathData="M12.186,12.82C11.675,12.82 11.269,12.654 10.969,12.323C10.668,11.991 10.518,11.562 10.518,11.037C10.518,10.069 10.819,9.129 11.42,8.217C12.051,7.277 12.847,6.433 13.809,5.687C14.8,4.912 15.822,4.304 16.873,3.862C16.933,3.834 17.008,3.82 17.099,3.82C17.369,3.82 17.609,3.917 17.82,4.111C18.06,4.277 18.06,4.401 17.82,4.484C16.978,4.843 16.227,5.355 15.566,6.018C14.905,6.682 14.409,7.332 14.079,7.968C14.98,8.051 15.431,8.576 15.431,9.544C15.431,10.097 15.266,10.622 14.935,11.12C14.605,11.618 14.184,12.032 13.673,12.364C13.193,12.668 12.697,12.82 12.186,12.82ZM3.668,12.82C3.157,12.82 2.751,12.654 2.451,12.323C2.15,11.991 2,11.562 2,11.037C2,10.069 2.3,9.129 2.901,8.217C3.532,7.277 4.329,6.433 5.29,5.687C6.282,4.912 7.303,4.304 8.355,3.862C8.415,3.834 8.49,3.82 8.58,3.82C8.851,3.82 9.091,3.917 9.301,4.111C9.542,4.277 9.542,4.401 9.301,4.484C8.46,4.843 7.709,5.355 7.048,6.018C6.387,6.682 5.891,7.332 5.561,7.968C6.462,8.051 6.913,8.576 6.913,9.544C6.913,10.097 6.747,10.622 6.417,11.12C6.086,11.618 5.666,12.032 5.155,12.364C4.674,12.668 4.178,12.82 3.668,12.82Z"
android:fillColor="#949399"/>
</vector>
13 changes: 13 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_relationship.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="13dp"
android:height="12dp"
android:viewportWidth="13"
android:viewportHeight="12">
<path
android:pathData="M10.097,2.726C10.097,3.369 9.69,3.917 9.12,4.127L10.197,4.765V5.458H9.372C9.691,6.314 9.989,6.968 10.406,7.535C11.034,8.391 11.603,9.342 11.603,10.404C9.262,10.897 7.946,10.881 5.605,10.404C5.605,9.342 6.174,8.391 6.802,7.535C7.219,6.968 7.517,6.314 7.836,5.458H7.01V4.765L8.087,4.127C7.518,3.916 7.112,3.369 7.112,2.726C7.112,1.902 7.78,1.234 8.604,1.234C9.428,1.234 10.097,1.902 10.097,2.726Z"
android:fillColor="#6A5DFD"
android:fillType="evenOdd"/>
<path
android:pathData="M4.345,1.232C5.169,1.232 5.837,1.9 5.837,2.724C5.837,3.368 5.43,3.914 4.859,4.124L5.939,4.763V5.457H5.12C5.438,6.312 5.734,6.966 6.15,7.533C6.181,7.575 6.211,7.619 6.242,7.662C5.701,8.45 5.221,9.367 5.221,10.403V10.712L5.286,10.725C4.023,10.833 2.915,10.722 1.349,10.403C1.349,9.34 1.918,8.389 2.546,7.533C2.962,6.966 3.258,6.312 3.577,5.457H2.752V4.763L3.832,4.124C3.261,3.914 2.853,3.368 2.853,2.724C2.853,1.9 3.521,1.232 4.345,1.232ZM6.473,7.998C6.96,8.731 7.347,9.528 7.347,10.403C7.044,10.467 6.759,10.521 6.486,10.568C6.206,10.521 5.912,10.467 5.6,10.403C5.6,9.528 5.986,8.73 6.473,7.998Z"
android:fillColor="#6A5DFD"/>
</vector>
13 changes: 13 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_sort.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="16dp"
android:height="16dp"
android:viewportWidth="16"
android:viewportHeight="16">
<path
android:pathData="M4.667,12.666V2.666M4.667,2.666L2,5.333M4.667,2.666L7.333,5.333M11.333,3.333V13.333M11.333,13.333L14,10.666M11.333,13.333L8.667,10.666"
android:strokeLineJoin="round"
android:strokeWidth="1.33333"
android:fillColor="#00000000"
android:strokeColor="#C7C7D0"
android:strokeLineCap="round"/>
</vector>
9 changes: 9 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_vibe.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="13dp"
android:height="12dp"
android:viewportWidth="13"
android:viewportHeight="12">
<path
android:pathData="M10.57,9.887C10.57,9.971 10.502,10.039 10.418,10.039H2.644C2.56,10.039 2.492,9.971 2.492,9.887V7.498C2.492,7.414 2.56,7.346 2.644,7.346H5.033C5.117,7.346 5.185,7.278 5.185,7.195V4.805C5.185,4.722 5.252,4.654 5.336,4.654H7.726C7.809,4.654 7.877,4.586 7.877,4.502V2.113C7.877,2.029 7.945,1.961 8.029,1.961H10.418C10.502,1.961 10.57,2.029 10.57,2.113V9.887Z"
android:fillColor="#6A5DFD"/>
</vector>
9 changes: 9 additions & 0 deletions core/resource/src/main/res/drawable/ic_library_world_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="13dp"
android:height="12dp"
android:viewportWidth="13"
android:viewportHeight="12">
<path
android:pathData="M5.939,2.878C6.398,2.878 6.84,2.953 7.251,3.088C6.728,3.569 6.128,3.825 5.75,3.911H8.253V3.574L8.255,3.575V3.911H8.691L8.692,3.912H8.255V6.57C8.402,5.704 8.847,5.08 9.344,4.653C9.767,5.273 10.014,6.015 10.014,6.812C10.014,8.985 8.189,10.747 5.939,10.747C3.689,10.747 1.865,8.985 1.865,6.812C1.865,4.64 3.689,2.878 5.939,2.878ZM5.75,3.912C6.461,4.073 7.959,4.83 8.253,6.57V3.912H5.75ZM10.758,3.912C10.401,3.993 9.846,4.223 9.344,4.653C9.159,4.381 8.94,4.131 8.692,3.912H10.758ZM8.255,1.253C8.55,2.992 10.046,3.75 10.758,3.911H8.691C8.554,3.79 8.409,3.677 8.255,3.575V1.253ZM8.253,3.574C7.947,3.37 7.611,3.206 7.251,3.088C7.712,2.664 8.115,2.067 8.253,1.253V3.574Z"
android:fillColor="#6A5DFD"/>
</vector>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.into.websoso.data.library
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.into.websoso.data.library.datasource.LibraryLocalDataSource
import com.into.websoso.data.library.datasource.LibraryRemoteDataSource
import com.into.websoso.data.library.model.NovelEntity
import kotlinx.coroutines.flow.Flow
Expand All @@ -15,7 +14,7 @@ class LibraryRepository
@Inject
constructor(
private val libraryRemoteDataSource: LibraryRemoteDataSource,
private val libraryLocalDataSource: LibraryLocalDataSource,
// private val libraryLocalDataSource: LibraryLocalDataSource,
) {
fun getUserLibrary(
userId: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
package com.into.websoso.data.library.datasource

import com.into.websoso.data.library.model.NovelEntity
import kotlinx.coroutines.flow.Flow

interface LibraryLocalDataSource {
suspend fun insertNovels(novels: List<NovelEntity>)

suspend fun insertNovel(novel: NovelEntity)

fun selectAllNovels(): Flow<List<NovelEntity>>

suspend fun selectNovel(novelId: Long): NovelEntity?

suspend fun updateNovels(novels: List<NovelEntity>)

suspend fun updateNovel(novel: NovelEntity)

suspend fun deleteAllNovels()

suspend fun deleteNovel(novelId: Long)
}
// interface LibraryLocalDataSource {
// suspend fun insertNovels(novels: List<NovelEntity>)
//
// suspend fun insertNovel(novel: NovelEntity)
//
// fun selectAllNovels(): Flow<List<NovelEntity>>
//
// suspend fun selectNovel(novelId: Long): NovelEntity?
//
// suspend fun updateNovels(novels: List<NovelEntity>)
//
// suspend fun updateNovel(novel: NovelEntity)
//
// suspend fun deleteAllNovels()
//
// suspend fun deleteNovel(novelId: Long)
// }
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package com.into.websoso.domain.library.model

enum class AttractivePoints {
WORLDVIEW,
MATERIAL,
CHARACTER,
RELATIONSHIP,
VIBE,
enum class AttractivePoints(
val label: String,
val key: String,
) {
WORLDVIEW("세계관", "worldview"),
MATERIAL("소재", "material"),
CHARACTER("캐릭터", "character"),
RELATIONSHIP("관계", "relationship"),
VIBE("분위기", "vibe"),
}
7 changes: 6 additions & 1 deletion feature/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ android {
}

dependencies {
implementation(projects.data.library)
implementation(projects.core.resource)
implementation(projects.core.designsystem)
implementation(projects.domain.library)
implementation(projects.data.library)

implementation("androidx.paging:paging-runtime:3.3.2")
implementation("androidx.paging:paging-runtime:3.3.6")
implementation(libs.androidx.paging.compose.android)
}
Loading