Comments (7)
OK here:
main...AndroidDeveloperLB:main
#104
from android-image-cropper.
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.
@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.
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.
@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.
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.
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)
- Managing cache file HOT 4
- Is this repo still being supported or not? HOT 1
- CropImageView fails to respect the match_parent size upon resizing the window HOT 1
- ActivityResultContract for custom activity
- Can I Customize Crip Edit Screen In Android Compose? HOT 1
- URI validation security issue
- Crashing on calling the copping activity...
- Multiple call of cropImage in loop when we can pick more then one image from gallery
- Getting crash while selection of camera cropping only in Android 10
- Question : Is it possible move and scale the picture itself instead of the crop overlay? HOT 3
- v
- Can crop by path or region? HOT 1
- Prevent CropRect Translation in Image Cropper
- Tool bar and its buttons(back, crop etc) is not shown. just white space HOT 2
- [Feature Request] Support for Rounded Rectangle Crop Shape HOT 4
- Integrate the Photo picker tool HOT 1
- Opening camera doesn't allow exiting the activity HOT 1
- How to customize the AlertDialog in Jetpack Compose? HOT 3
- Allow selecting multiple images at a time from the Gallery HOT 3
- Runtime Error Occurs When Revoking Camera Permission During Image Cropping HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-image-cropper.