Kotlin Scope Functions
Scope functions are part of standard kotlin library package. There are five scope functions provided in kotlin. let
, run
, with
, apply
, and also
. The purpose of scope functions is to execute a block of code within the context of the object on which it’s applied. Scope function provides access to context object without its name.
Android: using productFlavours
In android, you may be trying to build the paid and free version of your application Or you may want to configure your project in such a way so that you can perform hermetic testing for your application.
Gradle: resolve dependency version conflict
While developing android application sometimes you may have faced dependency version conflict error during gradle build. If you are not familiar with the gradle build system and its dependency management then you might get stuck due to this.