blob: 2cb9324d888e50185c3ade12b841f9da896432f0 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'io.fabric'
apply plugin: "com.neenbedankt.android-apt"
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "jp.rhe.smileessence"
minSdkVersion 16
targetSdkVersion 24
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"
ext.enableCrashlytics = false
}
release {
applicationIdSuffix ".release"
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/services/javax.annotation.processing.Processor'
}
lintOptions {
abortOnError false
}
dexOptions {
preDexLibraries = false
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
dataBinding {
enabled = true
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v4:24.+'
compile 'com.android.support:support-v13:24.+'
// volley
compile 'com.mcxiaoke.volley:library:1.0.19'
// crouton
compile('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'
}
// pull to refresh
compile 'com.navercorp.pulltorefresh:library:3.3.0-SNAPSHOT@aar'
// t4j
compile 'org.twitter4j:twitter4j-core:4.0.4'
compile 'org.twitter4j:twitter4j-media-support:4.0.4'
compile 'org.twitter4j:twitter4j-stream:4.0.4'
// twitter-text
compile 'com.twitter:twitter-text:1.13.0'
// guava
compile 'com.google.guava:guava:19.0'
// LeakCanary
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4'
// Fabric
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
kapt 'com.android.databinding:compiler:2.2.0'
kapt "com.github.gfx.android.orma:orma-processor:2.6.0"
compile "com.github.gfx.android.orma:orma:2.6.0"
}
kapt {
generateStubs = true
}
retrolambda {
jdk System.getenv("JAVA_HOME")
oldJdk System.getenv("JAVA7_HOME")
}
repositories {
mavenCentral()
}
|