Skip to content

Kotlinize - #2680

Closed
hannesa2 wants to merge 5 commits into
masterfrom
Kotlinize
Closed

hannesa2 wants to merge 5 commits into
masterfrom
Kotlinize

Conversation

@hannesa2

@hannesa2 hannesa2 commented Oct 4, 2019

Copy link
Copy Markdown
Contributor

During #2679 I kotlinize some files and fixed some lint warnings.
To keep #2679 I separated my work into two PR.

@davigonz

davigonz commented Oct 7, 2019 •

Copy link
Copy Markdown
Contributor

Wow, this is great, thanks so much! We will review it

@jesmrec jesmrec added this to the 2.14.0 milestone Oct 8, 2019

@abelgardep abelgardep left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hannesa2 Some changes requested

@hannesa2

hannesa2 commented Nov 7, 2019

Copy link
Copy Markdown
Contributor Author

I applied most of the suggestions

@abelgardep

Copy link
Copy Markdown
Contributor

Thanks for the changes! But there are some pending ones that require some attention and research. As you know, we may get some nullability problems if we have kotlin code running with java code with not nullable parameters. Some files in this pr have a lot of usages and we should research a little bit which params are nullable and which not. That's why is not trivial to kotlinize files.

For example, i have found an usage of uploadNewFile from UriUploader.java that sends a null to a parameter set as not nullable.

@hannesa2

hannesa2 commented Nov 7, 2019 •

Copy link
Copy Markdown
Contributor Author

Sorry, I missed them because of this
image

But wouldn't it better and more efficient when you change immediate in code and commit your code-format wishes ? Tastes are different and efficiency matters !

Most of them are autogenerated by Android Studio

@abelgardep

Copy link
Copy Markdown
Contributor

Autogenerate kotlin code from java using AS is not always the best solution. If i kotlinize a file, i should research and check if everything is working as it was before since we have not a full test coverage (we are on our way with new arch). I found that problem but perhaps there are even more.

@davigonz davigonz added the Sprint label Nov 7, 2019
@jesmrec

jesmrec commented Nov 13, 2019

Copy link
Copy Markdown
Member

@hannesa2 do you mind if we kotlinize these classes in the re-architecting process, or do you prefer to apply the suggestions of @abelgardep to move forward this PR?

@hannesa2

Copy link
Copy Markdown
Contributor Author

I've no strong opinion here, I don't depend on it. Tell me what to do. Even an unmerged "close" is an option

@jesmrec

jesmrec commented Nov 14, 2019

Copy link
Copy Markdown
Member

Ok. Let's close ftm. In case we want to take advantage of this, will reopen.

Thanks for your enagagement.

@jesmrec jesmrec closed this Nov 14, 2019
@hannesa2 hannesa2 mentioned this pull request Nov 21, 2019
6 tasks done
@jesmrec jesmrec removed the Sprint label Nov 22, 2019
@hannesa2
hannesa2 deleted the Kotlinize branch May 11, 2020 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants