-
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.
Merge pull request #167 from TimerTiTi/Release-1.2.1
Release 1.2.1
- Loading branch information
Showing
50 changed files
with
842 additions
and
653 deletions.
There are no files selected for viewing
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,13 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<group> | ||
<clip-path | ||
android:pathData="M0,0h24v24h-24z"/> | ||
<path | ||
android:pathData="M22,6C22,4.9 21.1,4 20,4H4C2.9,4 2,4.9 2,6V18C2,19.1 2.9,20 4,20H20C21.1,20 22,19.1 22,18V6ZM20,6L12,11L4,6H20ZM20,18H4V8L12,13L20,8V18Z" | ||
android:fillColor="#000000"/> | ||
</group> | ||
</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,20 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="800dp" | ||
android:height="800dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:pathData="M9.292,21V18.441L9.325,16.622C9.366,16.056 9.586,15.523 9.949,15.11C9.954,15.104 9.96,15.098 9.965,15.092C9.979,15.076 9.97,15.051 9.949,15.049V15.049C7.526,14.746 5.001,13.723 5.001,9.267C4.985,8.17 5.343,7.106 6.004,6.272C6.028,6.243 6.051,6.214 6.075,6.185V6.185C6.106,6.148 6.116,6.098 6.102,6.051C6.101,6.049 6.1,6.046 6.099,6.043C6.083,5.99 6.068,5.937 6.054,5.883C5.811,4.965 5.863,3.984 6.205,3.098C6.208,3.092 6.21,3.085 6.213,3.079C6.226,3.046 6.253,3.021 6.287,3.015V3.015C6.502,2.977 7.37,2.925 9.033,4.073C9.085,4.109 9.137,4.146 9.191,4.184V4.184C9.229,4.212 9.278,4.22 9.323,4.207C9.325,4.207 9.326,4.206 9.328,4.206C9.417,4.181 9.506,4.156 9.596,4.134C11.177,3.732 12.823,3.732 14.404,4.134C14.489,4.155 14.574,4.178 14.658,4.202C14.66,4.203 14.662,4.203 14.664,4.204C14.717,4.219 14.775,4.209 14.82,4.177V4.177C14.87,4.141 14.919,4.107 14.967,4.073C16.626,2.928 17.489,2.976 17.705,3.015V3.015C17.74,3.021 17.768,3.046 17.781,3.079C17.783,3.084 17.784,3.088 17.786,3.092C18.134,3.978 18.189,4.962 17.946,5.883C17.931,5.938 17.916,5.993 17.899,6.047V6.047C17.884,6.096 17.895,6.149 17.928,6.189C17.929,6.19 17.93,6.191 17.931,6.192C17.953,6.219 17.974,6.245 17.996,6.272C18.657,7.106 19.015,8.17 19,9.267C19,13.747 16.456,14.743 14.021,15.015V15.015C14.007,15.017 14.001,15.033 14.01,15.044C14.014,15.048 14.018,15.052 14.021,15.056C14.267,15.33 14.458,15.654 14.581,16.01C14.71,16.382 14.763,16.78 14.735,17.175V21" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="2" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#323232" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:pathData="M4,17C4.369,17.052 4.722,17.188 5.031,17.397C5.34,17.607 5.597,17.884 5.784,18.208C5.942,18.496 6.156,18.75 6.413,18.956C6.669,19.161 6.964,19.313 7.279,19.404C7.595,19.495 7.925,19.523 8.251,19.485C8.577,19.448 8.893,19.346 9.179,19.185" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="2" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#323232" | ||
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="M8,3C5.243,3 3,5.243 3,8V16C3,18.757 5.243,21 8,21H16C18.757,21 21,18.757 21,16V8C21,5.243 18.757,3 16,3H8ZM8,5H16C17.654,5 19,6.346 19,8V16C19,17.654 17.654,19 16,19H8C6.346,19 5,17.654 5,16V8C5,6.346 6.346,5 8,5ZM17,6C16.735,6 16.48,6.105 16.293,6.293C16.105,6.48 16,6.735 16,7C16,7.265 16.105,7.52 16.293,7.707C16.48,7.895 16.735,8 17,8C17.265,8 17.52,7.895 17.707,7.707C17.895,7.52 18,7.265 18,7C18,6.735 17.895,6.48 17.707,6.293C17.52,6.105 17.265,6 17,6ZM12,7C9.243,7 7,9.243 7,12C7,14.757 9.243,17 12,17C14.757,17 17,14.757 17,12C17,9.243 14.757,7 12,7ZM12,9C13.654,9 15,10.346 15,12C15,13.654 13.654,15 12,15C10.346,15 9,13.654 9,12C9,10.346 10.346,9 12,9Z" | ||
android:fillColor="#000000"/> | ||
</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
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
17 changes: 17 additions & 0 deletions
17
domain/daily/src/main/kotlin/com/titi/app/doamin/daily/usecase/GetAllDailiesFlowUseCase.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,17 @@ | ||
package com.titi.app.doamin.daily.usecase | ||
|
||
import com.titi.app.data.daily.api.DailyRepository | ||
import com.titi.app.doamin.daily.mapper.toDomainModel | ||
import com.titi.app.doamin.daily.model.Daily | ||
import javax.inject.Inject | ||
import kotlinx.coroutines.flow.Flow | ||
import kotlinx.coroutines.flow.map | ||
|
||
class GetAllDailiesFlowUseCase @Inject constructor( | ||
private val dailyRepository: DailyRepository, | ||
) { | ||
operator fun invoke(): Flow<List<Daily>?> = dailyRepository.getAllDailiesFlow() | ||
.map { dailies -> | ||
dailies?.map { it.toDomainModel() } | ||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
domain/daily/src/main/kotlin/com/titi/app/doamin/daily/usecase/GetAllDailiesTasksUseCase.kt
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...ily/src/main/kotlin/com/titi/app/doamin/daily/usecase/GetCurrentWeekDailiesFlowUseCase.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,25 @@ | ||
package com.titi.app.doamin.daily.usecase | ||
|
||
import com.titi.app.core.util.getMondaySunday | ||
import com.titi.app.data.daily.api.DailyRepository | ||
import com.titi.app.doamin.daily.mapper.toDomainModel | ||
import com.titi.app.doamin.daily.model.Daily | ||
import java.time.LocalDate | ||
import javax.inject.Inject | ||
import kotlinx.coroutines.flow.Flow | ||
import kotlinx.coroutines.flow.map | ||
|
||
class GetCurrentWeekDailiesFlowUseCase @Inject constructor( | ||
private val dailyRepository: DailyRepository, | ||
) { | ||
operator fun invoke(currentDate: LocalDate): Flow<List<Daily>?> { | ||
val (monday, sunday) = getMondaySunday(currentDate) | ||
|
||
return dailyRepository.getDailiesFlow( | ||
startDateTime = monday.toString(), | ||
endDateTime = sunday.toString(), | ||
).map { dailies -> | ||
dailies?.map { it.toDomainModel() } | ||
} | ||
} | ||
} |
29 changes: 0 additions & 29 deletions
29
domain/daily/src/main/kotlin/com/titi/app/doamin/daily/usecase/GetMonthDailyUseCase.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.