• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1buildscript {
2    repositories {
3        jcenter()
4        mavenLocal()
5    }
6    dependencies {
7        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$test_kotlin_version"
8    }
9}
10
11plugins {
12    id 'org.jetbrains.dokka-android'
13}
14
15
16apply plugin: 'com.android.application'
17apply plugin: 'kotlin-android'
18apply plugin: 'kotlin-android-extensions'
19apply plugin: 'org.jetbrains.dokka-android'
20
21android {
22    compileSdkVersion Integer.parseInt(sdk_version)
23    buildToolsVersion abt_version
24
25    defaultConfig {
26        applicationId "org.example.kotlin.mixed"
27        minSdkVersion 14
28        targetSdkVersion Integer.parseInt(sdk_version)
29        versionCode 1
30        versionName "1.0"
31    }
32    buildTypes {
33        release {
34            minifyEnabled false
35            proguardFiles getDefaultProguardFile('proguard-android.txt')
36        }
37    }
38
39    flavorDimensions "mode"
40    productFlavors {
41        free {
42            dimension "mode"
43            applicationIdSuffix ".free"
44            versionNameSuffix "-free"
45        }
46        full {
47            dimension "mode"
48            applicationIdSuffix ".full"
49            versionNameSuffix "-full"
50        }
51    }
52    sourceSets {
53        main.java.srcDirs += 'src/main/kotlin'
54        free.java.srcDirs += 'src/free/kotlin'
55    }
56}
57
58dependencies {
59    compile "org.jetbrains.kotlin:kotlin-stdlib:$test_kotlin_version"
60}
61
62
63dokka {
64    outputDirectory = "$buildDir/dokka/all"
65    dokkaFatJar = new File(dokka_fatjar)
66}
67
68task dokkaFullFlavourOnly(type: org.jetbrains.dokka.gradle.DokkaAndroidTask) {
69    kotlinTasks {
70        ["compileFullReleaseKotlin"]
71    }
72    dokkaFatJar = new File(dokka_fatjar)
73    outputDirectory = "$buildDir/dokka/fullOnly"
74    moduleName = "full"
75}