wasabeef / glide-transformations

An Android transformation library providing a variety of image transformations for Glide.
Apache License 2.0
9.9k stars 1.41k forks source link

I do not need librsjni.so and libRSsupport.so #133

Open wangrunxiang opened 6 years ago

wangrunxiang commented 6 years ago

glide-transformations version is 3.3.0. I use BlurTransformation, but i do not use the SupportRSBlurTransformation, so i no hope librsjni.so and libRSsupport.so in my application, it can make our application size be bigger

redmanit commented 6 years ago

you can use version 3.1.1 instead

azizbekian commented 5 years ago

@wasabeef, is it possible to refrain from librsjni.so and libRSsupport.so while using latest version of the lib? Needlessly shipping +2MB with apk is not preferable.

lulurala commented 5 years ago

I was just digging into this problem. But I found no way to declare compileOnly dependency of Android support v8(RS). I'm thinking providing separated library -- transformations-support-rs(?) -- maybe be the solution.

ghost commented 5 years ago

Please consider making separate library, 2+ extra megabytes is not good when provided functionality is not used at all.

squeeish commented 5 years ago

If you're just using one or two transformations like me, just copy and paste the required .java classes into your project.

jakoss commented 5 years ago

Any ETA on solution? It would be really great if you could release library without RS dependency

programmerpinggiran commented 5 years ago

you can add this script in your gradle file

  packagingOptions {
        exclude 'lib/*/libRSSupport.so'
        exclude 'lib/*/librsjni.so'
        exclude 'lib/*/librsjni_androidx.so'
    }
wangrunxiang commented 5 years ago

yes,I do the same

HiteshDevganiya commented 4 years ago

@programmerpinggiran does this affect the glide transformation feature?

caoyanglee commented 4 years ago

@programmerpinggiran nice~

jdelga commented 3 years ago

Maybe at this point if the *.so files are used only in older versions they can be removed from the library and just keep a legacy module?