Skip to content

Спринт 23#19

Merged
DimaK21 merged 28 commits intomasterfrom
dev3
Nov 19, 2023
Merged

Спринт 23#19
DimaK21 merged 28 commits intomasterfrom
dev3

Conversation

@DimaK21
Copy link
Copy Markdown
Owner

@DimaK21 DimaK21 commented Nov 15, 2023

No description provided.

@DimaK21 DimaK21 changed the title Спринт 22 Спринт 23 Nov 16, 2023

@Database(
version = 7, entities = [TrackEntity::class, PlaylistEntity::class, PlaylistTrackEntity::class]
version = 10, entities = [TrackEntity::class, PlaylistEntity::class, PlaylistTrackEntity::class]
Copy link
Copy Markdown

@AleksandrIlinskii AleksandrIlinskii Nov 17, 2023

Choose a reason for hiding this comment

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

Версия базы данных нужна для того, что если бы ты уже зарелизил приложение и обновил бд, чтобы добавить миграцию и у юзеров, которые уже его используют, ничего не крашилось.
Тут у тебя всегда будет 1

@Entity(
tableName = "playlist_track_table",
primaryKeys = ["playlistId", "trackId"]
primaryKeys = ["playlistId", "trackId"],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Почему в этой бд у тебя 2 первичных ключа?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Это не 2, это один составной

),
]
)
data class PlaylistTrackEntity(
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Нужно вынести в отдельный файл

parametersOf(arguments?.getLong(PLAYLISTID))
}
private var trackAdapter: TrackAdapterLongClick? = null
private var isClickAllowed = true
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Состояние нужно хранить в viewmodel

@DimaK21 DimaK21 merged commit 682f0b6 into master Nov 19, 2023
@DimaK21 DimaK21 deleted the dev3 branch February 11, 2024 19:50
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