Kotlin
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).
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.
Can you fix the test?
·8 mins
Testing
Kotlin
Cleancode
Learning from analyzing code is one of the greatest ways to improve your skills. Can you spot the mistakes in the tests below?
This post brings a fun little quiz for both testing gurus as novices, with a deep dive into the how and why of awesome tests.
Kotlin Stackoverflow error
·3 mins
Kotlin
Stackoverflow
Puzzle
Java interop is one of the best features of the Kotlin language, yet sometimes this also can cause unforeseen issues…
Puzzle # Disclaimer, the example below is a consequence of legacy code and only serves to demonstrate a Kotlin puzzler.
A little Kotlin puzzler
·2 mins
Kotlin
Lambda
Puzzle
Kotlin is an incredibly enjoyable, concise and powerful programming language. Yet sometimes also a bit confusing…
Puzzle # Have a look at the simple class below.
The career opportunity called Kotlin
·4 mins
Android
Kotlin
Career
This isn’t another post about the benefits of using Kotlin. Hell, I’m not even going to cover any of its language features. Nor will I try to convince you to make the switch.