glide-transformations icon indicating copy to clipboard operation
glide-transformations copied to clipboard

I do not need librsjni.so and libRSsupport.so

Open wangrunxiang opened this issue 6 years ago • 11 comments

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

wangrunxiang avatar May 17 '18 09:05 wangrunxiang

you can use version 3.1.1 instead

redmanit avatar Sep 06 '18 07:09 redmanit

@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.

azizbekian avatar Oct 25 '18 14:10 azizbekian

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.

lulurala avatar Nov 11 '18 20:11 lulurala

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

ghost avatar Feb 28 '19 15:02 ghost

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

squeeish avatar Mar 10 '19 18:03 squeeish

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

jakoss avatar Jul 31 '19 11:07 jakoss

you can add this script in your gradle file

  packagingOptions {
        exclude 'lib/*/libRSSupport.so'
        exclude 'lib/*/librsjni.so'
        exclude 'lib/*/librsjni_androidx.so'
    }

programmerpinggiran avatar Aug 08 '19 22:08 programmerpinggiran

yes,I do the same

wangrunxiang avatar Aug 20 '19 14:08 wangrunxiang

@programmerpinggiran does this affect the glide transformation feature?

HiteshDevganiya avatar Feb 07 '20 07:02 HiteshDevganiya

@programmerpinggiran nice~

caoyanglee avatar Jul 11 '20 20:07 caoyanglee

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?

jdelga avatar Sep 08 '21 11:09 jdelga