File tree Expand file tree Collapse file tree
java/com/example/techexactly Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 <uses-permission android : name =" android.permission.INTERNET" />
66
77 <application
8+ android : name =" .TechExactlyApplication"
89 android : allowBackup =" true"
910 android : dataExtractionRules =" @xml/data_extraction_rules"
1011 android : fullBackupContent =" @xml/backup_rules"
Original file line number Diff line number Diff line change 1+ package com.example.techexactly
2+
3+ import android.app.Application
4+ import com.example.techexactly.di.appModule
5+ import org.koin.android.ext.koin.androidContext
6+ import org.koin.core.context.startKoin
7+
8+ class TechExactlyApplication : Application () {
9+ override fun onCreate () {
10+ super .onCreate()
11+ startKoin {
12+ androidContext(this @TechExactlyApplication)
13+ modules(appModule)
14+ }
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ package com.example.techexactly.di
2+
3+ import com.example.techexactly.model.network.provideRetrofit
4+ import com.example.techexactly.model.network.provideUserApi
5+ import com.example.techexactly.model.repository.UserRepository
6+ import org.koin.dsl.module
7+
8+ val appModule = module {
9+ single { provideRetrofit() }
10+ single { provideUserApi(get()) }
11+ single { UserRepository (get()) }
12+ }
You can’t perform that action at this time.
0 commit comments