Tomáš Mlynarič's Avatar

Tomáš Mlynarič

@mlykotom.dev

DevRel @Google. Working on KMP, previously Jetpack Compose Performance.

90
Followers
173
Following
14
Posts
19.11.2024
Joined
Posts Following

Latest posts by Tomáš Mlynarič @mlykotom.dev

Preview
NavigationEvent Info NavigationEvent is a Kotlin Multiplatform library for handling system gestures - back and forward - on all platforms. It works on Android, iOS and Desktop with Web support coming next. Android used to...

Just published "NavigationEvent Info".

marcellogalhardo.dev/posts/naviga...

#AndroidDev #Kotlin #KMP #CMP

01.11.2025 12:37 👍 21 🔁 7 💬 0 📌 0
Preview
Kotlin Multiplatform  |  Android Developers

🆕Yesterday we published updates on #KMP on
d.android.com/kmp!

We finally have the Jetpack libraries that are compatible with KMP .. and CMP!

Want to get into KMP? We have a course goo.gle/kmp-course. Pros can check their skills in the quiz at the end 😁.

31.10.2025 10:04 👍 19 🔁 4 💬 0 📌 0
Post image

We've got several banners on developer.android.com pointing to the Jetpack library integration pages for #Kotlin Multiplatform (goo.gle/kmp).

Can you find them all? 👀 🕵🏻

22.09.2025 09:04 👍 2 🔁 0 💬 0 📌 0

It's available from Android 14 (SDK 34). You need to enable AIDL calls if you want to get it purely with Perfetto. Macrobenchmark enables it automatically.

22.09.2025 08:43 👍 0 🔁 0 💬 1 📌 0
Post image

This effectively removes the runtime cost of running the JVM verification, which happens only for debuggable apps.

The results were promising, but overshadowed by interpreter improvements on Android 15.

Release apps are always completely verified during app install.

19.09.2025 13:19 👍 1 🔁 0 💬 0 📌 0
Post image

One of the things we tried improving for debug builds (not for measuring performance though) was to allow skipping JVM verification that was taking significant time at runtime on debuggable apps.

This can be enabled in Studio Canaries - "Skip bytecode verification for debuggable apps..".

19.09.2025 13:13 👍 1 🔁 0 💬 1 📌 0
Video thumbnail

Yeah, I wasn't very happy about this advice, but back then there was no other choice.

Thankfully that's changed for some time. You can get information about the binder transaction from the binder reply.

It' automatically enabled in stable Macrobenchmark versions.

19.09.2025 13:05 👍 3 🔁 1 💬 1 📌 0

Thanks for the comments! (omg, I'm ashamed it took me 2 weeks to reply)

19.09.2025 12:57 👍 1 🔁 0 💬 0 📌 0
Preview
Room (Kotlin Multiplatform)  |  Android Developers

Documentation 📃 for Room KMP just got upgraded.

It finally contains all the information on how to set it up, how to migrate from Android-only and even what features are (unfortunately) not available in KMP. Give it a go! 🟢

d.android.com/kotlin/multi...

08.08.2025 20:06 👍 8 🔁 1 💬 0 📌 0

I see! For some reason I thought that you're mocking the responses from within the app to prevent any network latency. I did that in the past for testing purposes. We had a bunch of JSON responses in the assets that were returned by intercepting requests.

27.05.2025 18:15 👍 1 🔁 0 💬 1 📌 0

That means that you're shipping the mock server with the actual app? (I don't know whether R8 is smart enough to remove it from the app, maybe it is)

26.05.2025 08:04 👍 1 🔁 0 💬 1 📌 0

How do you mock it? Do you have a custom interceptor in the benchmark buildType sourceSet?

24.05.2025 09:50 👍 0 🔁 0 💬 2 📌 0
Demystify KMP builds and structure
Demystify KMP builds and structure YouTube video by Android Developers

There are a lot of amazing KMP talks coming out right now but here is our talk from I/O!

Dustin and I give an update on our latest KMP releases and then explain the build setup for an Android KMP app.

youtu.be/gP5Y-ct6QXI?...

23.05.2025 17:41 👍 29 🔁 9 💬 0 📌 1
Preview
Get Started With Kotlin Multiplatform  |  Android Developers Learn how to get started with Kotlin Multiplatform from two separate Android and iOS projects. In this codelab you will learn how to add a Kotlin Multiplatform (KMP) module to share code between Andro...

If you're new to #KMP we have 2 new codelabs:
1️⃣ Get started - goo.gle/kmp-get-started-codelab 2️⃣ Migrate Room - goo.gle/kmp-migrate-room-codelab

Try it out, let us know what you miss! 🤖🍏

Thanks to everyone that attended the code-along at #KotlinConf 😊

23.05.2025 14:54 👍 20 🔁 7 💬 0 📌 0

You weren't supposed to notice it for a week! 😄

14.05.2025 06:56 👍 3 🔁 0 💬 0 📌 0

My laptop just said it needs a system update. I hope it'll be forced during the stream 😅

18.12.2024 16:31 👍 0 🔁 0 💬 0 📌 0