ProAndroidDev Digest #12

Sergii Zhuk
ProAndroidDev
Published in
2 min readAug 30, 2019

--

Welcome to the new issue of ProAndroidDev digest! In this issue we’re featuring unit testing, DevOps, libraries development, ViewModels, and of course Kotlin — everywhere!

Evolution of unit tests in Android

Ivan Shafran recalls how he began with first tests, and demonstrates how things get changed with mocking libraries, Kotlin adoption, and a Spek framework. As a bonus there is a brief intro of Robolectric and some assertion frameworks.

When to load data in ViewModels

Josef Raska compared different options and listed pros and cons. He ended up recommending Lazy Map, check the article to learn why!

Dealing with Bitmaps in the Right Way

Yaroslav Berezanskyi wrote a guide on some basic rules for Bitmaps. Featuring proper sizing and scaling, decoding only a specific Bitmap region, and ImageDecoder API from Android 9.

10 Tips for Android Library Developers

Paolo Rotolo recommends to migrate to AndroidX, keep resources private, check merged manifest, deal with transitive dependencies properly, and use JitPack. Find five more tips in the blog post!

Kotlin Everywhere. Coroutines, Tests, Robots and much more

Ashwini Kumar explores the state of the art in Kotlin Android App development in 2019. Supported by example project, he illustrates adoption of Coroutines, Robot Pattern for testing, and Moshi for JSON serialization.

In-App Updates for Android Made Easier

Nikolai Kotchetkov described challenges on building an in-app update flow UI. In-app update was announced by Google at I/O 2019, but it still requires a lot of hustle to get it right. To make the integration easier, he built a library and published it on GitHub.

Interface Singleton in Kotlin

Martin Devillers shows the advantage of creating a companion object for an interface, which implements that very interface. This way it’s possible to refer to both the interface and its singleton implementation using the same name.

Just as always, we are reachable via editors@proandroiddev.com. We look forward to reading your feedback, article submissions, and partnership ideas.

Follow us on Facebook and Twitter, and see you soon!

Cheers, ProAndroidDev Team

Sergii Zhuk . Simon Percic . Andy Dyer . Antonio Gutierrez . Greg Fawson

--

--