https://kotlinlang.org logo
#android
Title
# android
g

Giulio

03/01/2018, 11:57 AM
Hi, is it easy to port an old Android project like this (see refs below) to Kotlin? https://github.com/giuliohome/TweetSearch What is the suggested way to approach this task? Thank you 👏 I mean: is there a method to minimize the "code rewrite"?
m

maciekjanusz

03/01/2018, 12:03 PM
First you should port it from ADT to Gradle
👍 2
Then make sure you’re on latest build tools and everything works as is
And then, try going through your code and working with automated Java to Kotlin conversion (AS Kotlin plugin feature)
g

Giulio

03/01/2018, 12:10 PM
Thank you @maciekjanusz! What about the first step (porting to Gradle). It looks a bit tricky, isn't it? Do you suggest a tutorial or a link about this or any other more specific comments?
m

maciekjanusz

03/01/2018, 12:12 PM
cannot help much more, I was fortunate enough to never have used ADT
g

Giulio

03/01/2018, 12:15 PM
yes, I was looking at that, but it's rather intimidating. There was no gradle at that time and adt was the way to go... 😐 Thanks for your kind replies! See you next time
m

maciekjanusz

03/01/2018, 12:22 PM
good luck 👍