稀有猿诉

十年磨一剑,历炼出锋芒,说话千百句,不如码二行。

让架构边界变成可执行的测试

本文译自「Kotlin Architecture Tests: What They Are and Why They Matter - Part 1/3」,原文链接https://medium.com/proandroiddev/kotlin-architecture-tests-what-they-are-and-why-they-matter-389ce9a1204c,由Bao Le发布于2026年7月16日。

一个 Kotlin 项目可以编译通过,通过单元测试,满足代码检查工具的要求,但其结构仍然可能变得难以修改。架构测试正是为了弥补这一缺陷而存在的。

Android车载OS中的Remote Compose

本文译自「Remote Compose in Android Automotive OS: Embed rich UI without the usual pain」,原文链接https://proandroiddev.com/remote-compose-in-android-automotive-os-embed-rich-ui-without-the-usual-pain-90b857d59d8c,由Daniel Georg发布于2026年5月31日。

在 Android Automotive OS 上构建信息娱乐系统时,一个问题会反复出现:你需要将一个应用程序的用户界面显示在另一个应用程序的界面中。例如,在启动器中添加手机小部件,在仪表盘中添加媒体卡片,或者在 OEM 系统界面中嵌入第三方应用程序的内容。听起来很简单——直到你真正尝试实现它。