Android Weekly Issue #475
Welcome you are visitor number 12345
Compose的訪客計數實現.
Android Jetpack Proto DataStore
用data store存儲protobuf類型的數據.
How I made beautiful screenshots for Google Play (Developer experience)
給Google Play創建好看的截圖.
先是推薦了一個應用和幾個網站.
最後介紹了自己DIY的方法.
Learning Live Templates for Jetpack Compose
怎麼使用和自定義live templates.
Jetpack Compose: Missing piece to the MVI puzzle?
composable組件的recomposition會導致所有它的child recompose嗎? -> 答案是不會.
Compose用一種slot table的方式.
Recompose可以skip掉, 如果所有的input都是stable的, 而且沒有改變.
@Stable
-
@Immutable
詳情: https://developer.android.com/jetpack/compose/lifecycle#skipping
在API guidelines裏也有寫: https://github.com/androidx/androidx/blob/androidx-main/compose/docs/compose-api-guidelines.md#stable-types
Keeping public API in check with the Kotlin binary validator plugin
用一個plugin: binary-compatibility-validator
做對public API的check.
有一個hook來運行這個check: https://github.com/GetStream/stream-chat-android/blob/fd990322367c97eafc165995de1f065a9c89d9ec/hooks/pre-commit#L16-L25
Solving Advent of Code Puzzles in Idiomatic Kotlin
這個還挺有意思的: Advent of Code
A peek inside Jetpack Core Splashscreen
新出的閃屏api.
implementation 'androidx.core:core-splashscreen:1.0.0-alpha01'
demo: https://github.com/tkuenneth/android-demos/tree/master/misc/JetpackSplashScreenDemo
How to Write a Command-Line Tool with Kotlin Multiplatform
用Kotlin Multiplatform寫CLI腳本.
還有一個模板工程: https://github.com/jmfayard/kotlin-cli-starter
這個小工具:
https://github.com/kamranahmedse/git-standup
幫你回憶昨天都做了什麼.
這還有一個升級庫的工具: https://jmfayard.github.io/refreshVersions/
Tools of the build trade: The making of a tiny Kotlin app
build一個最小化的kotlin app.
My First Attempt at creating a game with Jetpack Compose
用Jetpack Compose做了個喫豆人.
項目: https://github.com/danielmbutler/Pacman_Compose