Giter Site home page Giter Site logo

Support for KSP about glidewebpdecoder HOT 9 OPEN

RicardoJiang avatar RicardoJiang commented on July 20, 2024
Support for KSP

from glidewebpdecoder.

Comments (9)

ArtRoman avatar ArtRoman commented on July 20, 2024 1

@AndroidDeveloperLB

Llatest release of Glide is 4.16.0, but GlideWebpDecoder is not updated to this version, so I use Glide as usual with latest build, but for GlideWebpDecoder I must use old full version. They are working good together.

My build.gradle now:

def glide_version = '4.16.0'

dependencies {
    …

    // Glide for images loading
    implementation "com.github.bumptech.glide:glide:$glide_version"
    implementation "com.github.zjupure:webpdecoder:2.3.4.15.1" //TODO use $glide_version after library update
    //kapt "com.github.bumptech.glide:compiler:$glide_version"
    ksp "com.github.bumptech.glide:ksp:$glide_version"
}

You can use 4.15.1 for both libraries, KSP support was added to Glide in 4.14.0.

from glidewebpdecoder.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 20, 2024 1

@ArtRoman I'm not the admin of this repository, and not the creator of this thread.
But please update the repository guidelines.

from glidewebpdecoder.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 20, 2024

Can you please also explain what changes will we need to perform?
Or maybe it's possible already, at least partially?
The IDE claims this for the Glide part:

This library supports using KSP instead of kapt, which greatly improves performance. Learn more: https://developer.android.com/studio/build/migrate-to-ksp

Maybe possible at least partially, then?
I tried now, and I got errors while trying to do it. Not sure if it's because I did something wrong, or because it's not possible yet if I use Glide together with this repository...

from glidewebpdecoder.

zjupure avatar zjupure commented on July 20, 2024

PR is welcome. I has no more time to migrate kapt to KSP, it is low priority.

from glidewebpdecoder.

ArtRoman avatar ArtRoman commented on July 20, 2024

I'm using this library with KSP, all is working good. Just make sure to have a class that extends AppGlideModule and marked with @GlideModule attribute. So auto-generated ksp module GeneratedAppGlideModuleImpl has WebpGlideLibraryModule registered in it:

  public override fun registerComponents(
    context: Context,
    glide: Glide,
    registry: Registry,
  ): Unit {
    WebpGlideLibraryModule().registerComponents(context, glide, registry)  <— Here
    appGlideModule.registerComponents(context, glide, registry)
  }

build.gradle:

    implementation "com.github.bumptech.glide:glide:4.16.0"
    implementation "com.github.zjupure:webpdecoder:2.3.4.15.1"
    //kapt "com.github.bumptech.glide:compiler:4.16.0"
    ksp "com.github.bumptech.glide:ksp:4.16.0"

from glidewebpdecoder.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 20, 2024

@ArtRoman It says that you should use :

implementation "com.github.bumptech.glide:glide:${GLIDE_VERSION}"

And you have 4.15.1 instead of 4.16.0.

How come?

from glidewebpdecoder.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 20, 2024

@ArtRoman OK thank you!

from glidewebpdecoder.

ArtRoman avatar ArtRoman commented on July 20, 2024

@AndroidDeveloperLB you can close issue if all is OK

from glidewebpdecoder.

ArtRoman avatar ArtRoman commented on July 20, 2024

But please update the repository guidelines.

And I'm not connected to this repo, too 😀

from glidewebpdecoder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.