Skip to content

Feature/add notifications#13

Open
JRustam wants to merge 5 commits into
AlexGladkov:mainfrom
JRustam:feature/add_notifications
Open

Feature/add notifications#13
JRustam wants to merge 5 commits into
AlexGladkov:mainfrom
JRustam:feature/add_notifications

Conversation

@JRustam

@JRustam JRustam commented Nov 5, 2024

Copy link
Copy Markdown

Have added conditions for checking 10 days
Have added notification in Android

Rustam Ibrahimov added 3 commits October 31, 2024 17:47

@AlexGladkov AlexGladkov left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Есть замечания

}

jvmToolchain(21)
jvmToolchain(11)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем понижение?

Comment thread composeApp/build.gradle.kts Outdated
) {

suspend fun execute(date: LocalDate): List<DailyHabit> {
suspend operator fun invoke(date: LocalDate): List<DailyHabit> {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем operator?

Comment thread composeApp/src/commonMain/kotlin/feature/daily/presentation/DailyViewModel.kt Outdated
Comment thread composeApp/src/commonMain/kotlin/screens/stats/StatisticsViewModel.kt Outdated

val nonSmokingStats = mutableListOf<StatisticCellModel>()

val habit = habits.find { it.title == "Don't smoke" && it.startDate?.isNotEmpty() == true }

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я уже видел этот код, почему это не вынесено в юзкейс или какую-то хелпер функцию или экстеншн функцию?

Comment thread composeApp/src/commonMain/kotlin/screens/stats/StatisticsViewModel.kt Outdated
return start.until(end, DateTimeUnit.DAY)
}

fun tenDaysPassed(startDate: LocalDate) : Boolean {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы сделал это экстеншн функцией

Comment thread composeApp/src/commonMain/kotlin/utils/Date + Utils.kt Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants