wasabeef/glide-transformations

I do not need librsjni.so and libRSsupport.so

wangrunxiang opened this issue ยท 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

you can use version 3.1.1 instead

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

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.

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

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

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

you can add this script in your gradle file

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

yes๏ผŒI do the same

@programmerpinggiran does this affect the glide transformation feature?

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?