aboutsummaryrefslogtreecommitdiffstats
path: root/app/build.gradle
blob: 41d9577862bf09a1439c00a943d30bb3b46fe316 (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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.2"
    defaultConfig {
        applicationId "jp.rhe.smileessence3"
        minSdkVersion 23
        targetSdkVersion 26

        versionName "git -C ${rootDir} describe --tags --long --dirty --always".execute().text.trim()
        versionCode "git -C ${rootDir} rev-list HEAD --count".execute().text.trim().toInteger()
        println "-----------VERSION----------"
        println "- CODE: " + getVersionCode()
        println "- NAME: " + getVersionName()
        println "----------------------------"

    }
    buildTypes {
        debug {
            applicationIdSuffix ".debug"
        }
        release {
            applicationIdSuffix ".release"
        }
    }
}

repositories {
    mavenCentral()
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.19.1'
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.19.1'

    implementation 'com.android.support:support-core-ui:26.1.0'
    implementation 'com.android.support:support-v13:26.1.0'
    implementation 'com.android.support:palette-v7:26.1.0'

    // Volley
    implementation 'com.android.volley:volley:1.0.0@aar'

    // Crouton
    implementation('de.keyboardsurfer.android.widget:crouton:1.8.5@aar') {
        // exclusion is not necessary, but generally a good idea.
        exclude group: 'com.google.android', module: 'support-v4'
    }

    // SwipyRefreshLayout
    implementation 'com.github.omadahealth:swipy:1.2.3@aar'

    // twitter-text
    implementation 'com.twitter:twitter-text:1.14.7'

    // twitter4j
    implementation 'org.twitter4j:twitter4j-core:4.0.6'
    implementation 'org.twitter4j:twitter4j-media-support:4.0.6'
    implementation 'org.twitter4j:twitter4j-stream:4.0.6'


    // LeakCanary
    debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.4'
    releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
}

kotlin {
    experimental {
        coroutines "enable"
    }
}