Skip to content

Conversation

@WhiteErMagic
Copy link

No description provided.


class App :Application() {

val component by lazy {
Copy link
Contributor

Choose a reason for hiding this comment

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

Убрать либо заменить на несинхронизированный

import javax.inject.Scope

@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.

Можно убрать


@AppScope
@Component(modules = [ViewModelModule::class])
interface ApplicationComponent {
Copy link
Contributor

Choose a reason for hiding this comment

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

Нужно добавить ActivityComponent


class FragmentProducer : Fragment() {

private val subcomponent by lazy {
Copy link
Contributor

Choose a reason for hiding this comment

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

Удалить


@Scope
@Retention(AnnotationRetention.RUNTIME)
annotation class MyScope()
Copy link
Contributor

Choose a reason for hiding this comment

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

Лучше переименовать


private lateinit var frame: View

private val subcomponent by lazy {
Copy link
Contributor

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.

2 participants