Skip to content

4.3. androidModule.gradle

Txus Ballesteros edited this page Oct 16, 2018 · 1 revision

The most important configuration file of the project, and the one that will avoid the tedious task of redefining our configuration over and over again. This file is basically our template for the configuration of Gradle for our modules, it contains all the basics to make them compile.

Let's see how is the configuration of one of our modules using the template.

apply from: "${rootDir}/buildsystem/android-module.gradle"

dependencies {
    implementation project(':common:threading')
    implementation project(':common:core')
    implementation project(':common:core-view')
    implementation project(':common:navigation')

    implementation kodein
    implementation try_monad
    implementation recycler_view
    implementation constraint_layout

    testImplementation project(":common:core-testing")
}

As you can see, the configuration only contains what is really relevant for the module, its dependencies.

Clone this wiki locally