aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-integration-tests/testData/androidMultiFlavourApp/app/build.gradle
blob: ee68ba6d6789dd832765ef16e1440f382ee10961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
buildscript {
    repositories {
        jcenter()
        mavenLocal()
    }
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$test_kotlin_version"
    }
}

plugins {
    id 'org.jetbrains.dokka-android'
}


apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'org.jetbrains.dokka-android'

android {
    compileSdkVersion Integer.parseInt(sdk_version)
    buildToolsVersion abt_version

    defaultConfig {
        applicationId "org.example.kotlin.mixed"
        minSdkVersion 14
        targetSdkVersion Integer.parseInt(sdk_version)
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt')
        }
    }

    flavorDimensions "mode"
    productFlavors {
        free {
            dimension "mode"
            applicationIdSuffix ".free"
            versionNameSuffix "-free"
        }
        full {
            dimension "mode"
            applicationIdSuffix ".full"
            versionNameSuffix "-full"
        }
    }
    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
        free.java.srcDirs += 'src/free/kotlin'
    }
}

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib:$test_kotlin_version"
}


dokka {
    outputDirectory = "$buildDir/dokka/all"
    dokkaFatJar = new File(dokka_fatjar)
}

task dokkaFullFlavourOnly(type: org.jetbrains.dokka.gradle.DokkaAndroidTask) {
    kotlinTasks {
        ["compileFullReleaseKotlin"]
    }
    dokkaFatJar = new File(dokka_fatjar)
    outputDirectory = "$buildDir/dokka/fullOnly"
    moduleName = "full"
}