Slide 1

Slide 1 text

What's new in Kotlin for Android @mambo_bryan 01

Slide 2

Slide 2 text

02 Design Centric Engineer Brian Odhiambo Dishwasher @ Baobab Circle Co-organizer @ KotlinKenya Maintaining @ KotlinBits Yeah am all about that UI/UX & Kotlin

Slide 3

Slide 3 text

Kotlin Symbol Processing Better code generation Kotlin DSL Fluid build management What's New 03 K2 Compiler Faster compilations "Phew 😮‍💨 . There's nothing about AI "

Slide 4

Slide 4 text

The K2 Compiler Faster compilations & builds

Slide 5

Slide 5 text

Default compiler with Kotlin 2.0 2x faster than the current compiler fields static extensions More language features From Kotlin 1.9.x K2 Beta with Compose & KSP Integrated in Android Studio 2024 😒😒😒 Kotlin 2.0 compiler

Slide 6

Slide 6 text

Try It Out Give feedback // inside build.gradle.kts kotlin { sourceSets.all { languageSettings{ languageVersion = "2.0" } } }

Slide 7

Slide 7 text

The Kotlin DSL For you Gradle builds

Slide 8

Slide 8 text

Default option from Giraffe Precise code hinting syntax errors during editing Available documentation Kotlin DSL for Gradle Builds

Slide 9

Slide 9 text

Default option from Giraffe Precise code hinting syntax errors during editing Available documentation Optional version catalogs Kotlin DSL for Gradle Builds

Slide 10

Slide 10 text

The Kotlin Symbol Processing Better code generation

Slide 11

Slide 11 text

Kotlin Code Java Stubs Java Annotation Processors Kotlin Symbol Processing Kotlin Code Kotlin Processors Kotlin Annotation Processing Tool (KAPT) Kotlin Symbol Processing (KSP)

Slide 12

Slide 12 text

2X faster than KAPT Benefits from Kotlin language features Mutliplatform ready 👌👌👌 Incremental migration Caveat You can only see performance boost if you're full KSP Kotlin Symbol Processing

Slide 13

Slide 13 text

One Last Thing For the open source community

Slide 14

Slide 14 text

Kotlin Foundation 😎 Protect, promote and advance the development of the Kotlin programming language kotlinfoundation.org

Slide 15

Slide 15 text

19 mambo_bryan MamboBryan Thank you! Have a nice Kotlin KotlinBits kotlinbits.vercel.app