美文网首页Android开发成长
Android Weekly Notes #412

Android Weekly Notes #412

作者: 圣骑士wind | 来源:发表于2020-05-06 11:11 被阅读0次

Android Weekly Issue #412

Writing Unit Tests efficiently in Android with Spek

一个写单元测试的框架: Spek

Refactoring Android Themes with Style

关于Theme和style.

Debugging Android app launch by setting debug app

作者想要debug一个app新启动时候的问题.

可以在设备上设置:

Navigate to Settings -> System -> Developer options and then scroll to the Debugging section.
Click on “Select debug app”
Select the application you want to debug from the list.
Check the "Wait for debugger" option - this is what activates the behaviour we want where the debugged application waits for the debugger to attach before launching.

也可以从命令行:

adb shell am set-debug-app -w --persistent <your app package goes here>

选项:

-w flag is what sets the “wait for debugger” option (like we did with the UI)
--persistent flag is what tells the system to save this, and not treat as a one-off action

清除:

adb shell am clear-debug-app

How to list 3rd Party Dependencies Licenses in your Android app

Google的一个插件OSS Licenses plugin, 显示第三方库的licenses.

Dagger Party Tricks: Extension Functions

Module中的代码用扩展方法写.

Functional Programming in Kotlin - f(1)

Series pit stops
f(1) — Basics, Understanding Functions (you are here)
f(2) — Functions in Kotlin, Pure functions
f(3) — Function composition, Currying function

🤖Automate Publishing Android Library to Bintray using GitHub Actions 🚀

利用github action把库自动发布到jcenter.

Minimalist Dagger

Dagger极简教程.

Android Logging on Steroids: Clickable Logs With Location Info

基于Timber的优化, 让log可点击.

相关文章

网友评论

    本文标题:Android Weekly Notes #412

    本文链接:https://www.haomeiwen.com/subject/iwmightx.html