-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: nickname 수정 dialog 추가 * refactor * ui: 습관 보관함 레이아웃 추가 * refactor: 사용하지 않는 파일 제외 * ui: 버전 정보 추가 * refactor: strings 로 상수 이동 * refactor: layout_hegiht wrap_content 사용하도록 개선 * refactor: string 변수로 추출 * refactor: 접근제어자 추가 * refactor: layoutParams lint error 해결 * docs: semantic versioning 방식으로 변경 * refactor: 안전한 방식으로 랜던값 생성 (kotlin:S2245)
- Loading branch information
1 parent
b40555e
commit 5ef34e4
Showing
51 changed files
with
1,184 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="oval"> | ||
<solid android:color="@color/gray_200" /> | ||
</shape> |
8 changes: 8 additions & 0 deletions
8
core-design-system/src/main/res/drawable/bg_rect_main_r10.xml
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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<solid android:color="@color/main" /> | ||
<corners android:radius="10dp" /> | ||
|
||
</shape> |
11 changes: 11 additions & 0 deletions
11
core-design-system/src/main/res/drawable/bg_rect_white_r10_border_gray450.xml
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<solid android:color="@color/white" /> | ||
<corners android:radius="10dp" /> | ||
<stroke | ||
android:width="1dp" | ||
android:color="@color/gray_450" /> | ||
|
||
</shape> |
8 changes: 8 additions & 0 deletions
8
core-design-system/src/main/res/drawable/bg_rect_white_r20.xml
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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<solid android:color="@color/white" /> | ||
<corners android:radius="20dp" /> | ||
|
||
</shape> |
13 changes: 13 additions & 0 deletions
13
core-design-system/src/main/res/drawable/ic_close_white.xml
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,13 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:pathData="M18,6L6,18M6,6L18,18" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="2" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#FFFFFF" | ||
android:strokeLineCap="round"/> | ||
</vector> |
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,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:pathData="M19.063,19.195H5.941C5.693,19.195 5.454,19.29 5.278,19.459C5.103,19.628 5.004,19.858 5.004,20.097C5.004,20.337 5.103,20.566 5.278,20.736C5.454,20.905 5.693,21 5.941,21H19.063C19.311,21 19.55,20.905 19.726,20.736C19.901,20.566 20,20.337 20,20.097C20,19.858 19.901,19.628 19.726,19.459C19.55,19.29 19.311,19.195 19.063,19.195ZM5.941,17.39H6.026L9.934,17.047C10.362,17.006 10.762,16.824 11.068,16.532L19.503,8.409C19.831,8.076 20.008,7.631 19.995,7.173C19.983,6.714 19.782,6.279 19.438,5.963L16.87,3.489C16.534,3.186 16.095,3.012 15.635,3.001C15.176,2.989 14.728,3.14 14.377,3.426L5.941,11.55C5.638,11.844 5.45,12.23 5.407,12.642L5.004,16.406C4.991,16.538 5.009,16.671 5.056,16.796C5.103,16.921 5.178,17.034 5.276,17.128C5.363,17.212 5.467,17.278 5.581,17.323C5.696,17.368 5.818,17.39 5.941,17.39ZM15.567,4.753L18.125,7.217L16.251,8.977L13.739,6.558L15.567,4.753Z" | ||
android:fillColor="#A5ADBD"/> | ||
</vector> |
5 changes: 5 additions & 0 deletions
5
core-design-system/src/main/res/drawable/selector_switch_button_track.xml
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@drawable/shape_switch_track_off" android:state_checked="false" /> | ||
<item android:drawable="@drawable/shape_switch_track_on" android:state_checked="true" /> | ||
</selector> |
15 changes: 15 additions & 0 deletions
15
core-design-system/src/main/res/drawable/shape_switch_thumb.xml
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item | ||
android:bottom="2dp" | ||
android:left="2dp" | ||
android:right="2dp" | ||
android:top="2dp"> | ||
<shape android:shape="oval"> | ||
<size | ||
android:width="24dp" | ||
android:height="24dp" /> | ||
<solid android:color="@color/white" /> | ||
</shape> | ||
</item> | ||
</layer-list> |
9 changes: 9 additions & 0 deletions
9
core-design-system/src/main/res/drawable/shape_switch_track_off.xml
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<size | ||
android:height="28dp" | ||
android:width="46dp" /> | ||
<solid android:color="@color/gray_500" /> | ||
<corners android:radius="20dp" /> | ||
</shape> |
9 changes: 9 additions & 0 deletions
9
core-design-system/src/main/res/drawable/shape_switch_track_on.xml
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<size | ||
android:height="28dp" | ||
android:width="46dp"/> | ||
<solid android:color="#33C95A" /> | ||
<corners android:radius="30dp" /> | ||
</shape> |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ plugins { | |
} | ||
|
||
android { | ||
namespace 'com.depromeet.threedays.core' | ||
compileSdk 33 | ||
|
||
defaultConfig { | ||
|
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
15 changes: 15 additions & 0 deletions
15
domain/src/main/java/com/depromeet/threedays/domain/usecase/GetArchivedHabitsUseCase.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,15 @@ | ||
package com.depromeet.threedays.domain.usecase | ||
|
||
import com.depromeet.threedays.domain.entity.DataState | ||
import com.depromeet.threedays.domain.entity.habit.Habit | ||
import com.depromeet.threedays.domain.repository.HabitRepository | ||
import kotlinx.coroutines.flow.Flow | ||
import javax.inject.Inject | ||
|
||
class GetArchivedHabitsUseCase @Inject constructor( | ||
private val habitRepository: HabitRepository, | ||
) { | ||
suspend operator fun invoke(): Flow<DataState<List<Habit>>> { | ||
return habitRepository.getArchivedHabits() | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ plugins { | |
} | ||
|
||
android { | ||
namespace 'com.depromeet.threedays.navigator' | ||
compileSdk 33 | ||
|
||
defaultConfig { | ||
|
3 changes: 3 additions & 0 deletions
3
navigator/src/main/java/com/depromeet/threedays/navigator/ArchivedHabitNavigator.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,3 @@ | ||
package com.depromeet.threedays.navigator | ||
|
||
interface ArchivedHabitNavigator : Navigator |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ plugins { | |
} | ||
|
||
android { | ||
namespace 'com.depromeet.threedays.history' | ||
compileSdk 33 | ||
|
||
defaultConfig { | ||
|
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ android { | |
} | ||
|
||
android { | ||
namespace 'com.depromeet.threedays.home' | ||
compileSdk 33 | ||
|
||
defaultConfig { | ||
|
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.