Giter Club home page Giter Club logo

Comments (7)

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 28, 2024 1

OK here:
main...AndroidDeveloperLB:main
#104

from android-image-cropper.

Canato avatar Canato commented on May 28, 2024

Thanks for pointing this, for sure is an improvement we can do it.

We didn't when we convert from Java because this would change the method notation, right know the difference is from using lambda to usage of creating the Listener class.

If we decide to use the Kotlin we don't need to define an interface anymore, I mean the code interface OnSetImageUriCompleteListener doing this we need to be sure that Java and Kotlin keep working.

Was not that we didn't look enough, the library was not update since 2018 there was a lot of bugs and fixes to put in place we cannot do all at once. So we decide to not break.

Please feel free to join us and drop a PR. This would be an amazing momento to create the Java Sample code, so we can test this changes. Probably the version 3.0

from android-image-cropper.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 28, 2024

@Canato I didn't mean I wrote in Java. this is in Kotlin.
When the library is in Java, it allows Kotlin (and Java) developers to use the shorter form.
All you need to do is to add "fun" for this interface (and others) in Kotlin, when possible.

from android-image-cropper.

Canato avatar Canato commented on May 28, 2024

Sorry, maybe I was confusing on my worlds. I meant we need to keep the library working for Kotlin and Java after the changes. So we need to test, something simple.

Same as the other ticket, for sure is something we should do and something I want to do, but this is low on my priority now.
I try to order: Samples (so we can test), refactor, fixing bugs, dealing with deprecation, adding very asked features, improve in general (lamba/comments/doc/etc)

But feel free to add it ^^

from android-image-cropper.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 28, 2024

@Canato As I'm not so familiar with how the library works, I prefer only to give advice and feedback as a user of it.
In this case, it's quite easy. Add "fun" for each interface in Kotlin that you can.

from android-image-cropper.

Canato avatar Canato commented on May 28, 2024

Don't worry, I don't wanna be the only merging in the lib, I just handover the repo, but I hope this can be a community work. If you make the changes and test the samples in the sample app everything should be safe.

If something is missing and I know I can tell on the PR, but myself just have 4 months touching the lib. So much to learn too

from android-image-cropper.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 28, 2024

Seems now it's possible again to use the short form again. Weird that the IDE doesn't suggest it though.

from android-image-cropper.

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.