mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-30 20:14:22 +01:00
Migrate to Hilt.
This commit is contained in:
@@ -15,7 +15,7 @@ class HomeViewModel @Inject constructor(
|
||||
fun openProfile(destination: ProfileDestination) {
|
||||
navigationManager.navigateTo(
|
||||
ForwardDestination(destination.destination.id),
|
||||
UUIDArgument(destination.uuid)
|
||||
UUIDArgument(destination.destination.id, destination.uuid)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,19 +2,6 @@ package no.nordicsemi.android.nrftoolbox
|
||||
|
||||
import android.app.Application
|
||||
import dagger.hilt.android.HiltAndroidApp
|
||||
import no.nordicsemi.ui.scanner.scannerModule
|
||||
import org.koin.android.ext.koin.androidContext
|
||||
import org.koin.core.context.startKoin
|
||||
|
||||
@HiltAndroidApp
|
||||
class NrfToolboxApplication : Application() {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
|
||||
startKoin {
|
||||
androidContext(this@NrfToolboxApplication)
|
||||
modules(scannerModule)
|
||||
}
|
||||
}
|
||||
}
|
||||
class NrfToolboxApplication : Application()
|
||||
|
||||
Reference in New Issue
Block a user