Skip to content

Conversation

@GeorgeBozon
Copy link

No description provided.

Copy link
Contributor

@antonkazakov antonkazakov left a comment

Choose a reason for hiding this comment

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

привет. оставил комментарии

private val colorGenerator: ColorGenerator,
private val context: Context
) {
@ActivityContext private val context: Context,
Copy link
Contributor

Choose a reason for hiding this comment

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

Здесь будет утечка памяти, нельзя делать наследование от androidx.lifecycle.ViewModel

Copy link
Author

@GeorgeBozon GeorgeBozon Dec 8, 2024

Choose a reason for hiding this comment

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

исправил


@Provides
@ActivityScope
fun provideEventsReaderWriter() = EventsWriterReader()
Copy link
Contributor

Choose a reason for hiding this comment

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

А зачем тебе provides здесь. Достаточно Inject над конструктором

Copy link
Author

@GeorgeBozon GeorgeBozon Dec 8, 2024

Choose a reason for hiding this comment

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

ну да, поправлю

annotation class ActivityContext

@Scope
@Retention(AnnotationRetention.RUNTIME)
Copy link
Contributor

Choose a reason for hiding this comment

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

Можно убрать

Copy link
Author

Choose a reason for hiding this comment

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

ок

Copy link
Collaborator

@makzimi makzimi left a comment

Choose a reason for hiding this comment

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

Сейчас всё ок! Спасибо за работу. Работу принимаю.

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.

3 participants