Piasy / BigImageViewer

Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support! 🍻
MIT License
3.98k stars 400 forks source link

作者的依赖设置错了吧 #213

Closed jqorz closed 3 years ago

jqorz commented 3 years ago

我新建一个没有任何依赖的项目,项目中的Library是这样的 搜狗截图20201219163806 但是我只添加一个implementation 'com.github.piasy:BigImageViewer:1.6.4',项目中的Library就变成了这样 搜狗截图20201219163828(PS:这只是一部分,下面还有好多) 其实我只用到了Glide,为啥作者把其他图片框架的,比如fresco都加进来了?

Piasy commented 3 years ago

你可能哪里搞错了,com.github.piasy:BigImageViewer 只依赖了 SSIV,应该不会有 glide 和 fresco 的。

jqorz commented 3 years ago

你可能哪里搞错了,com.github.piasy:BigImageViewer 只依赖了 SSIV,应该不会有 glide 和 fresco 的。

但是实际上我的测试项目只引用了com.github.piasy:BigImageViewer,上面的图就是引用前后对比。作者可以建个空项目测试一下,切到Project看下依赖就能看到了

g19980115 commented 3 years ago

我试了下也是这样,我只加了一行这个implementation 'com.github.piasy:BigImageViewer:1.7.0',全都依赖进来了。 改成com.github.piasy.BigImageViewer:BigImageViewer:1.7.0 就不会,作者要改下readme

g19980115 commented 3 years ago

这是我打印的依赖项详情

image

g19980115 commented 3 years ago

其它的选配也不对,全都要加上.BigImageViewer。 例:com.github.piasy:GlideImageLoader:1.7.0 改成 com.github.piasy.BigImageViewer:GlideImageLoader:1.7.0

implementation 'com.github.piasy.BigImageViewer:BigImageViewer:1.7.0'

// load with fresco
implementation 'com.github.piasy.BigImageViewer:FrescoImageLoader:1.7.0'

// load with glide
implementation 'com.github.piasy.BigImageViewer:GlideImageLoader:1.7.0'

// progress pie indicator
implementation 'com.github.piasy.BigImageViewer:ProgressPieIndicator:1.7.0'

// support thumbnail, gif and webp with Fresco
implementation 'com.github.piasy.BigImageViewer:FrescoImageViewFactory:1.7.0'

// support thumbnail and gif with Glide
implementation 'com.github.piasy.BigImageViewer:GlideImageViewFactory:1.7.0'