Created
June 26, 2019 08:03
-
-
Save e-lin/84baf4d5086ed68d84751611ad836872 to your computer and use it in GitHub Desktop.
Glide Module - Cloud Storage for Firebase plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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