forked from yuriykulikov/AlarmClock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
136 lines (116 loc) · 4.41 KB
/
Copy pathbuild.gradle
File metadata and controls
136 lines (116 loc) · 4.41 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
buildscript {
ext.kotlin_version = '1.1.51'
ext.anko_version = '0.10.2'
repositories {
jcenter()
mavenCentral()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// add dependency to plugin
// classpath "com.neenbedankt.gradle.plugins:android-apt:1.6"
//classpath 'com.f2prateek.javafmt:javafmt:0.1.6'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:3.1.0'
classpath 'io.fabric.tools:gradle:1.24.4'
}
}
ext {
travisBuild = System.getenv("TRAVIS") == "true"
// allows for -Dpre-dex=false to be set
preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'jacoco-android'
apply plugin: 'io.fabric'
android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.rafali.alarm"
minSdkVersion 15
targetSdkVersion 26
testApplicationId "com.rafali.alarm.test"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
//multiDexEnabled true
}
buildTypes {
debug {
testCoverageEnabled true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
abortOnError false
}
// This enables long timeouts required on slow environments, e.g. Travis
adbOptions {
timeOutInMs 20 * 60 * 1000 // 20 minutes
installOptions "-d", "-t"
}
dexOptions {
// Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
preDexLibraries = preDexEnabled && !travisBuild
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
// App dependencies
compile "org.jetbrains.kotlin:kotlin-stdlib:1.1.3"
compile 'com.google.guava:guava:19.0'
compile 'com.android.support:support-annotations:26.1.0'
compile 'com.bugfender.sdk:android:0.+'
compile "org.jetbrains.anko:anko:$anko_version"
compile 'com.google.android.gms:play-services-cast-framework:11.6.0'
compile 'com.android.support:mediarouter-v7:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'io.reactivex.rxjava2:rxjava:2.1.0'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'com.f2prateek.rx.preferences2:rx-preferences:2.0.0-RC2'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
transitive = true
}
compile 'com.google.firebase:firebase-core:11.6.0'
//apt
annotationProcessor "org.immutables:value:2.5.5" // <-- for annotation processor
compile "org.immutables:value:2.5.5" // <-- for annotation API
kapt "org.immutables:value:2.5.5"
// Testing-only dependencies
testCompile 'net.wuerl.kotlin:assertj-core-kotlin:0.1.1'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.8.47'
androidTestCompile 'com.squareup.assertj:assertj-android:1.1.1'
// Force usage of support annotations in the test app, since it is internally used by the runner module.
androidTestCompile 'com.android.support:support-annotations:26.1.0'
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestCompile 'com.bartoszlipinski:cortado:1.2.0'
//for some tests which do not work with espresso on travis
androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.2.1'
}
configurations.all {
resolutionStrategy.force 'org.jetbrains.kotlin:kotlin-stdlib:1.1.3'
}
apply plugin: 'com.google.gms.google-services'