build.gradle 1.55 KB
Newer Older
1
apply plugin: 'com.android.library'
2 3 4
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
5 6

android {
Divyanshu Bhargava's avatar
Divyanshu Bhargava committed
7 8
    compileSdkVersion versions.compileSdk
    buildToolsVersion versions.buildTools
9 10

    defaultConfig {
11
        minSdkVersion versions.minSdk
Divyanshu Bhargava's avatar
Divyanshu Bhargava committed
12
        targetSdkVersion versions.targetSdk
13
        versionCode 1
14
        versionName "1.0.0"
15 16 17 18 19 20 21
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

        debug {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    // Since we are using the util module here, we need to declare the same flavorDimensions and
    // productFlavors from there.

    flavorDimensions "type"

    productFlavors {
        // includes proprietary libs
        play {
            dimension "type"
        }

        // only foss
        foss {
            dimension "type"
        }
44 45 46 47 48 49
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

50
    implementation project(':core')
51
    implementation project(':util')
52

53
    implementation libraries.kotlin
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
54
    implementation libraries.coroutinesCore
55 56

    implementation libraries.appCompat
divyanshu's avatar
divyanshu committed
57
    implementation libraries.constraintlayout
58

59
    implementation libraries.androidKtx
60

61 62 63 64 65
    implementation libraries.dagger
    implementation libraries.daggerSupport
    kapt libraries.daggerProcessor
    kapt libraries.daggerAndroidApt
}