Skip to content

Instantly share code, notes, and snippets.

@vamsitallapudi
Created May 4, 2020 08:04
Show Gist options
  • Save vamsitallapudi/82055e88e35d802985597b1f97be6ed4 to your computer and use it in GitHub Desktop.
Save vamsitallapudi/82055e88e35d802985597b1f97be6ed4 to your computer and use it in GitHub Desktop.
...
val providers = ServiceLoader.load(DataSourceProvider::class.java, null)
val dataSources = providers.map {
it.getDataSource(activity)
}.toSet()
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment