forked from Yandex-Practicum/practicum-android-diploma
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e6cb40
commit 22ff440
Showing
5 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
app/src/main/java/ru/practicum/android/diploma/di/DataModule.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,7 @@ | ||
package ru.practicum.android.diploma.di | ||
|
||
import org.koin.dsl.module | ||
|
||
val dataModule = module { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
app/src/main/java/ru/practicum/android/diploma/di/InteractorModule.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,7 @@ | ||
package ru.practicum.android.diploma.di | ||
|
||
import org.koin.dsl.module | ||
|
||
val interactorModule = module { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
app/src/main/java/ru/practicum/android/diploma/di/RepositoryModule.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,7 @@ | ||
package ru.practicum.android.diploma.di | ||
|
||
import org.koin.dsl.module | ||
|
||
val repositoryModule = module { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
app/src/main/java/ru/practicum/android/diploma/di/ViewModelModule.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,7 @@ | ||
package ru.practicum.android.diploma.di | ||
|
||
import org.koin.dsl.module | ||
|
||
val viewModelModule = module { | ||
|
||
} |
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 |
---|---|---|
@@ -1,6 +1,20 @@ | ||
package ru.practicum.android.diploma.util | ||
|
||
import android.app.Application | ||
import org.koin.android.ext.koin.androidContext | ||
import org.koin.core.context.startKoin | ||
import ru.practicum.android.diploma.di.dataModule | ||
import ru.practicum.android.diploma.di.interactorModule | ||
import ru.practicum.android.diploma.di.repositoryModule | ||
import ru.practicum.android.diploma.di.viewModelModule | ||
|
||
class App : Application() | ||
class App : Application() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
startKoin { | ||
androidContext(this@App) | ||
modules(dataModule, repositoryModule, interactorModule, viewModelModule) | ||
} | ||
} | ||
} | ||
|