Android Weekly Notes #459

2021-06-08  本文已影响0人  圣骑士wind

Android Weekly Issue #459

A safer way to collect flows from Android UIs

关于Flow使用时的资源耗费问题.

推荐使用: Lifecycle.repeatOnLifecycle.

Open Composables via notification with Jetpack Navigation

jetpack compose navigation加上deeplink, 实现从notification打开.

Mocks, fakes and stubs: the stunt doubles of testing

viktor: Efficient Vectorized Computations in Kotlin

JetBrains Research开发的提高数组计算效率的库: viktor: https://github.com/JetBrains-Research/viktor/

Kotlin Enums Tutorial for Android: Getting Started

以前总说枚举对内存不好, 现在终于解除了这个魔咒.

归功于:

Ten #AndroidLifeHacks You Can Use Today

一些项目里可以运用的小技巧, 比如:

这个job: https://gist.github.com/gpeal/b77509b46bd6d1db557b952731d01101
可以自动取消前一个.

使用timber的property:
https://gist.github.com/gpeal/2666c668c9e02e3064e87bcd0557e070

Kotlin Flows ~ an Android cheat sheet

Kotlin flows的cheetsheet.

Migrate existing library artifacts from JCenter to Maven Central

把库从JCenter迁移到Maven Central.

上一篇 下一篇

猜你喜欢

热点阅读