Skip to content

Instantly share code, notes, and snippets.

@e-lin
Created June 26, 2019 08:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e-lin/84baf4d5086ed68d84751611ad836872 to your computer and use it in GitHub Desktop.
Save e-lin/84baf4d5086ed68d84751611ad836872 to your computer and use it in GitHub Desktop.
Glide Module - Cloud Storage for Firebase plugin
@GlideModule
class MyAppGlideModule : AppGlideModule() {
override fun registerComponents(context: Context, glide: Glide, registry: Registry) {
// Register FirebaseImageLoader from FirebaseUI to handle StorageReference
registry.append(StorageReference::class.java, InputStream::class.java,
FirebaseImageLoader.Factory())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment