Skip to content

Instantly share code, notes, and snippets.

@Nyame123
Created June 13, 2021 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nyame123/93a7703cf162a8d6c41abb48a88de89e to your computer and use it in GitHub Desktop.
Save Nyame123/93a7703cf162a8d6c41abb48a88de89e to your computer and use it in GitHub Desktop.
@Module
@TestInstallIn(
components = [SingletonComponent::class],
replaces = [AnalyticsModule::class]
)
abstract class FakeAnalyticsModule {
@Singleton
@Binds
abstract fun bindAnalyticsService(
fakeAnalyticsService: FakeAnalyticsService
): AnalyticsService
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment