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
Add Optional Validate Lambda to Delegates #4
Add Optional Validate Lambda to Delegates #4
Conversation
c4add8e
to
f9c9462
Compare
Also, it was brought up that this should probably live in a separate module: Namely, should the This is my first time working in a multi module android project, and I'm not quite sure how to approach this scenario. Any guidance would be appreciated. |
krate/src/main/kotlin/hu/autsoft/krate/validated/optional/ValidatedStringDelegate.kt
Outdated
Show resolved
Hide resolved
d51af79
to
3c3d6d5
Compare
Is anyone available to review this PR? |
Hey, I am aware of this PR, but unfortunately I still don't have time to work on / discuss this feature. I'll try to get to it sometime next month, but I can not make promises on the timeline. If you really need this feature in the library, you should be able to add it using extensions within your own project for the time being. |
Hi, hope this isn't a bother but I'm just pinging to keep this PR alive :) |
hey, just pinging again. Any feedback on how I could implement this on other properties? |
b1de3cc
to
61bb62a
Compare
I've pushed some updates to include the rest of the delegates in the standard Getting this error.
|
With the library's MavenCentral publication woes sorted out, I can finally get around to this PR (sorry for the looong wait!). I really like the implementation, I'll try to merge it and clean it up a bit sometime this week. I'll also take a look at the overly aggressive publication scripts that are messing up your build. |
Would you mind leaving any comments on clean up here? Part of the reason I did this PR is to look for constructive criticism so that I can improve :) |
krate/src/main/kotlin/hu/autsoft/krate/validated/exception/KrateValidationException.kt
Outdated
Show resolved
Hide resolved
krate/src/main/kotlin/hu/autsoft/krate/validated/ValidatedPreferenceDelegate.kt
Outdated
Show resolved
Hide resolved
krate/src/main/kotlin/hu/autsoft/krate/validated/ValidatedPreferenceDelegate.kt
Show resolved
Hide resolved
@kevincianfarini I've left review comments, and I've also fixed the Gradle sync issue on the |
61bb62a
to
7569159
Compare
updated :) |
7569159
to
b4184e2
Compare
b4184e2
to
c5fa067
Compare
c5fa067
to
2d2a178
Compare
Merged, cleaned up a bit, and heading towards release right now as Thank you for your contribution and especially your patience. Do you have a Twitter handle that you'd like to get a shout-out to? |
@zsmb13 I don't have a twitter handle. Just doing this to learn :) If you work on any other projects that could benefit from a contributor, let me know! |
I'm making this pull request as a proof of concept for validation. I've only modified one delegate so that we might have a conversation about the implementation. Afterwards I could apply the decision we've come to on the other applicable delegates.
:)