-
Notifications
You must be signed in to change notification settings - Fork 30
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 Kotlin to SharedCode #67
Add Kotlin to SharedCode #67
Conversation
e7b52bc
to
a0261f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
I'm going to verify whether the |
Convert ClickListener to Kotlin
a0261f0
to
291bc2e
Compare
Looks like clickState is not null. Updated. Sorry this took so long! |
* @param clickState The status of the click event. | ||
* @param location The location of the event in world coordinates. | ||
*/ | ||
void onClickState(int source, Node node, ClickState clickState, Vector location); | ||
fun onClickState(source: Int, node: Node?, clickState: ClickState, location: Vector?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But node
should never be null, so maybe i shouldn't mark it as nullable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nachtien I think that node
itself can't be null.
Node can be null
This two makes sense since not every id
identify a node
and a node
can be already removed.
location can be null
This also make sense since we can pass an "wrong" location.
Would be possible some logging on this cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused, so do you think node
is nullable or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nachtien Node isn't nullable. But location is nullable I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just add Kotlin to Gradle for now, I'll convert the other classes later to be sure :)
3ffee71
to
b1ba4e9
Compare
b1ba4e9
to
eafaf6a
Compare
Note that I bumped Kotlin to |
@adelarsq can you approve (if you think its fine) and merge this? |
I will take a look. @doranteseduardo @robertjcolley Anything blocked by these changes? |
I can take a look this weekend. I don't believe anything is blocked by or is blocking this |
Let's get this @robertjcolley ! |
In my point of view, a community project needs more maintainer with the power to merge. |
@hannesa2 New contributors are always welcome. Just ping me if interested and we can talk about. @robertjcolley Thanks for the revision. @nachtien Thanks for the contribution! |
Adds Kotlin to the SharedCode