Just published "NavigationEvent Info".
marcellogalhardo.dev/posts/naviga...
#AndroidDev #Kotlin #KMP #CMP
Just published "NavigationEvent Info".
marcellogalhardo.dev/posts/naviga...
#AndroidDev #Kotlin #KMP #CMP
🆕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 😁.
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? 👀 🕵🏻
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.
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.
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..".
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.
Thanks for the comments! (omg, I'm ashamed it took me 2 weeks to reply)
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...
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.
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)
How do you mock it? Do you have a custom interceptor in the benchmark buildType sourceSet?
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?...
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 😊
You weren't supposed to notice it for a week! 😄
My laptop just said it needs a system update. I hope it'll be forced during the stream 😅