Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin Import does not work #6

Open
jd185352 opened this issue Jul 27, 2020 · 5 comments
Open

Kotlin Import does not work #6

jd185352 opened this issue Jul 27, 2020 · 5 comments

Comments

@jd185352
Copy link

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'
}
@parth2545
Copy link

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

@ppamorim
Copy link

It's impossible to use this library.

@fgsalomon
Copy link

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!

@patjackson52
Copy link
Contributor

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

@ppamorim
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants