This was my second time attending and speaking at the Droidcon NYC Conference. In 2015, my first conference talk was at this event. It was great to get back to New York and reconnect with many I met a few years ago. I put together a few highlights of what took place below:
@JvmSuppressWildcards My Biggest Annoyance with Kotlin
Over the past few months my team has been steadily moving our code over to Kotlin
. It’s been a joy to get to work with such a succinct, yet expressive language. However, I have spent needless hours attempting to debug issues in my application that were all solved with the addition of this one thing: @JvmSuppressWildcards
.
Using RxBinding with Kotlin and RxJava2
RxBinding provides RxJava
binding APIs for Android User Interface (UI) widgets. This allows us to easily translate Android UI events into Observable
streams. Let’s look at a simple example of this: we’re going to consider how to execute an asynchronous network request from a Button
click event.
Migrate a Gradle Plugin from Groovy to Kotlin
I recently migrated my Gradle Plugin from Groovy to Kotlin. It was essentially a four step process:
- Update the build.gradle file
- Modify the Project Structure
- Convert Groovy code to Kotlin
- Migrate the JUnit tests
Let’s walk through each step…