Skip to main content

Gradle

Share code between Android and Jvm in Kotlin multiplatform
·3 mins
Android Kotlin Multiplatform Code Sharing Gradle
While Android supports most Java language features, it doesn’t support every API that Java provides. On the other hand, Kotlin multiplatform only allows sharing code across all targets (commonMain), not a subset of targets (commonJvm).
Migrating away from JCenter
·5 mins
Android Library Maven Jcenter Bintray Transitive Dependencies Gradle
This week JFrog - out of nowhere - announced to completely remove their Maven repository. Since they’ll pull it offline already by May 2021 (!!!) it’s time to urgently migrate away.
Test library releases using an in project Maven repository
·3 mins
Android Library Maven Transitive Dependencies Gradle Kotlin
Short, powerful post on how to test the release version of libraries directly within a project without having to deploy them to Maven first. As a bonus, there will also be an open-source example showcasing all of this in action.
Android library development - Dependencies
·9 mins
Android Library Maven Transitive Dependencies Gradle Kotlin
Ever had a build failure while integrating an SDK? Wonder how you can avoid your SDK customers having dependency conflicts? How many transitive dependencies should your SDK have?
Android library development - Modularization
·6 mins
Android Library Modularization Maven Gradle Kotlin
With modularization being all the hype, should you also modularize an SDK? Are fat aar files really needed? And how do you prevent internal APIs from being exposed on your public interface?
Android library development - Getting started
·5 mins
Android Library Maven Gradle Kotlin
Having switched to Android SDK development over the past year, I’ve run into quite a few interesting and unexpected challenges. So how does library development differ from app development?
Kdoc for Android libraries using Dokka
·7 mins
Documentation Kdoc Dokka Gradle Kotlin
A great way to make your library easier to use it to generate code documentation for its public interface. The default way to do this in Kotlin is to generate KDoc using the official Dokka plugin.
Implementation vs API dependency
·3 mins
Android Tools Gradle
Upgrading to Android studio 3.0 territory will make building multi-module projects a lot faster, but it also means a breaking Gradle plugin API change unfortunately.
The hidden cost of code coverage
·2 mins
Android Tools Gradle Testing
Code coverage is an awesome way to motivate you and your team to write more tests. But did you know that simply enabling it slows down your build significantly?