fuzzywuzzy-kotlin icon indicating copy to clipboard operation
fuzzywuzzy-kotlin copied to clipboard

Kotlin Import does not work

Open jd185352 opened this issue 4 years ago • 5 comments

Adding the import code to my build.gradle file did not allow me to use Fuzzywuzzy functionality.

sourceSets {
  commonMain {
      dependencies {
          implementation "com.willowtreeapps:fuzzywuzzy-kotlin:0.1.1"
      }
   }
}

Only after adding the import from the Java port was the library recognized.

repositories {
    jcenter()
}
dependencies {
    implementation 'me.xdrop:fuzzywuzzy:1.3.1'
}

jd185352 avatar Jul 27 '20 20:07 jd185352

Same it is not working for me either. How did you make it work?

parth2545 avatar Nov 01 '20 15:11 parth2545

It's impossible to use this library.

ppamorim avatar Aug 17 '21 14:08 ppamorim

It's impossible to use this library.

It looks that something is wrong with the published artifact on maven, but you can build the library on your own with ./gradlew jvmJar. This generates fuzzywuzzy-kotlin-jvm-0.1.1.jar inside fuzzywuzzy-kotlin/app/build/libs/.

Then you place the jar in a folder of your project (e.g. libs) and add the local dependency en gradle:

 implementation files('libs/fuzzywuzzy-kotlin-jvm-0.1.1.jar')

I was previously using https://github.com/xdrop/fuzzywuzzy but its license is too restrictive. Thanks for the fork!

fgsalomon avatar Sep 17 '21 05:09 fgsalomon

Happy to see people using/wanting to use this lib. I'm no longer working for willowtree, which has the access to publish new artifacts. If you bug them enough I'm sure and intern or some awesome android eng can update the lib and publish. Alternatively copy in the code, or fork it, update and make a PR to get some attention @sheaam30 @konwinkler @imbeyondboredom

patjackson52 avatar Sep 17 '21 21:09 patjackson52

@fgsalomon @patjackson52 I ported the swift version to kotlin. I might release a new version under my public organization.

ppamorim avatar Sep 20 '21 00:09 ppamorim