How to specify different buildTypes in Gradle 3.0.0 beta 4 and later

After updating to Gradle plugin 3.0.0 beta 4 our build failed with the following message: buildTypeMatching has been removed. Use buildTypes..fallbacks Our libraries have release and debug buildTypes, but our app has two additional buildTypes: releaseWithLogs and debugMinified. Snippet of our app Gradle file: android { // … buildTypeMatching ‘releaseWithLogs’, ‘release’ buildTypeMatching ‘debugMinified’, ‘debug’ buildTypes […]

Kotlin interop: mixing Kotlin and Java ButterKnife-annotated activities

I’ve been working with Kotlin for a while, mainly for side-projects or toy-projects. Since last Google I/O 2017 announcement it has become clear that there are no more reasons or excuses to not use it in production. One of the big selling points of Kotlin is that you can start small, by converting one class […]