Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work with AppGlideModule - not possible. #3057

Closed
foodied opened this issue Apr 27, 2018 · 4 comments
Closed

Work with AppGlideModule - not possible. #3057

foodied opened this issue Apr 27, 2018 · 4 comments

Comments

@foodied
Copy link

foodied commented Apr 27, 2018

Manually setting up default options in Glide using AppGlideModule shows error in GlideBuilder's build method.

This was probably done due to the issue #2885, which makes sense.

Glide Version: 4.7.0 and above.

Glide load line / GlideModule (if any) / list Adapter code (if any):

GlideBuilder.build(context)

Is there any way how we're supposed to manually set up the default options throughout the app provided that we only use GlideBuilder only inside AppGlideModule ?

If annotation processing needs to be avoided, are there any available optimised presets we can use or parameters to be passed or configuring cache paths and sizes that would be common to the app ?

@foodied foodied changed the title Work with GlideBuilder - build not possible. Work with AppGlideModule - not possible. Apr 27, 2018
@sjudd
Copy link
Collaborator

sjudd commented May 2, 2018

AppGlideModule will only work with annotation processing? What specifically are you trying to do in AppGlideModule?

@sjudd sjudd added the question label May 2, 2018
@foodied
Copy link
Author

foodied commented May 4, 2018

@sjudd I want to use GlideApp instead of Glide and keep a common configuration where I could mention the disk cache, memory and bitmap pool size. Also, increase the timeout in OkHttpClient library. How would I be able to achieve this throughout? Thanks!

@sjudd
Copy link
Collaborator

sjudd commented May 7, 2018

You can't do that without annotation processing. If you want GlideApp and configuration see http://bumptech.github.io/glide/doc/configuration.html. If you want configuration without annotation processing, use the deprecated GlideModule interface.

@stale
Copy link

stale bot commented May 14, 2018

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

@stale stale bot added the stale label May 14, 2018
@stale stale bot closed this as completed May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants