common: make UrlLauncher use expect/actual

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-03-15 00:00:37 +05:30
parent 3021f96465
commit f5c3a950bf
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
5 changed files with 15 additions and 11 deletions

View file

@ -7,13 +7,12 @@ import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import dagger.hilt.android.qualifiers.ActivityContext
import dev.msfjarvis.lobsters.ui.urllauncher.UrlLauncher
import dev.msfjarvis.lobsters.ui.urllauncher.AndroidUrlLauncherImpl
@Module
@InstallIn(ActivityComponent::class)
object UrlLauncherModule {
@Provides
fun provideUrlLauncher(@ActivityContext context: Context): UrlLauncher {
return AndroidUrlLauncherImpl(context)
return UrlLauncher(context)
}
}