2014-07-05 11:12:37 -04:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2015-06-28 21:35:55 -04:00
|
|
|
jcenter()
|
2014-07-05 11:12:37 -04:00
|
|
|
}
|
2015-04-02 19:09:06 -04:00
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
|
2015-06-28 21:35:55 -04:00
|
|
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
|
2015-04-05 16:43:26 -04:00
|
|
|
classpath 'com.github.triplet.gradle:play-publisher:1.0.2'
|
2015-04-02 19:09:06 -04:00
|
|
|
}
|
2014-07-05 11:12:37 -04:00
|
|
|
}
|
|
|
|
|
2015-06-13 19:22:21 -04:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url "http://repository.jetbrains.com/all"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-04 22:09:25 -04:00
|
|
|
apply plugin: 'com.android.application'
|
2015-06-28 21:35:55 -04:00
|
|
|
apply plugin: 'com.neenbedankt.android-apt'
|
2014-09-09 23:31:32 -04:00
|
|
|
apply plugin: 'kotlin-android'
|
2015-04-05 16:43:26 -04:00
|
|
|
apply plugin: 'play'
|
2014-07-04 22:09:25 -04:00
|
|
|
|
|
|
|
android {
|
2015-04-05 20:55:55 -04:00
|
|
|
compileSdkVersion 22
|
2014-12-14 20:45:19 -05:00
|
|
|
buildToolsVersion '21.1.2'
|
2015-06-13 19:41:40 -04:00
|
|
|
|
2014-07-04 22:09:25 -04:00
|
|
|
defaultConfig {
|
2014-07-05 10:35:55 -04:00
|
|
|
applicationId 'org.bspeice.minimalbible'
|
2014-07-04 22:09:25 -04:00
|
|
|
minSdkVersion 8
|
2015-04-05 20:55:55 -04:00
|
|
|
targetSdkVersion 22
|
2015-04-02 20:28:04 -04:00
|
|
|
versionName '0.7'
|
2015-06-13 19:41:40 -04:00
|
|
|
versionCode System.getenv("TRAVIS_BUILD_NUMBER")?.toInteger() ?: 0
|
2014-07-04 22:09:25 -04:00
|
|
|
}
|
2015-06-13 19:41:40 -04:00
|
|
|
|
2014-07-04 22:25:35 -04:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/LICENSE.txt'
|
|
|
|
exclude 'META-INF/NOTICE.txt'
|
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/NOTICE'
|
2014-07-09 21:14:23 -04:00
|
|
|
exclude 'LICENSE.txt'
|
2014-07-20 21:12:00 -04:00
|
|
|
exclude 'META-INF/INDEX.LIST'
|
|
|
|
exclude 'LICENSE'
|
|
|
|
exclude 'NOTICE'
|
|
|
|
exclude 'asm-license.txt'
|
2014-07-04 22:25:35 -04:00
|
|
|
}
|
2015-06-13 19:41:40 -04:00
|
|
|
|
2015-04-05 16:43:26 -04:00
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
storeFile file('src/main/play/MinimalBible.jks')
|
|
|
|
storePassword System.getenv("KEYSTORE_PASSWORD")
|
|
|
|
keyAlias 'minimalbible signing key'
|
|
|
|
keyPassword System.getenv("KEYSTORE_PASSWORD")
|
|
|
|
}
|
|
|
|
}
|
2015-06-13 19:41:40 -04:00
|
|
|
|
2015-06-13 23:06:24 -04:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
|
2015-04-05 16:43:26 -04:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
2015-06-13 19:41:40 -04:00
|
|
|
|
2014-09-07 21:27:41 -04:00
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/kotlin'
|
2015-06-13 19:22:21 -04:00
|
|
|
test.java.srcDirs += 'src/test/kotlin'
|
2014-09-07 21:27:41 -04:00
|
|
|
}
|
2014-07-04 22:09:25 -04:00
|
|
|
}
|
|
|
|
|
2015-04-05 16:43:26 -04:00
|
|
|
play {
|
|
|
|
serviceAccountEmail = System.getenv("SERVICE_ACCOUNT_EMAIL")
|
|
|
|
pk12File = file('src/main/play/play_api.p12')
|
|
|
|
}
|
|
|
|
|
2014-07-04 22:09:25 -04:00
|
|
|
dependencies {
|
2015-06-28 21:35:55 -04:00
|
|
|
compile project(path: ':jsword-minimalbible', configuration: 'buildJSword')
|
2014-07-07 22:09:15 -04:00
|
|
|
|
2015-06-28 21:35:55 -04:00
|
|
|
compile 'com.google.dagger:dagger:+'
|
|
|
|
apt 'com.google.dagger:dagger-compiler:+'
|
|
|
|
provided 'javax.annotation:javax.annotation-api:1.2'
|
2014-07-05 11:12:37 -04:00
|
|
|
|
2015-04-05 20:55:55 -04:00
|
|
|
compile 'de.devland.esperandro:esperandro-api:+'
|
2015-06-28 21:35:55 -04:00
|
|
|
apt 'de.devland.esperandro:esperandro:+'
|
|
|
|
|
|
|
|
compile 'com.jakewharton:butterknife:6.1.0'
|
2014-08-09 19:34:31 -04:00
|
|
|
compile 'com.readystatesoftware.systembartint:systembartint:+'
|
|
|
|
compile 'com.netflix.rxjava:rxjava-android:+'
|
2015-04-05 20:55:55 -04:00
|
|
|
compile 'com.android.support:appcompat-v7:+'
|
|
|
|
compile 'com.android.support:recyclerview-v7:+'
|
|
|
|
compile 'com.android.support:cardview-v7:+'
|
2014-08-22 19:53:57 -04:00
|
|
|
compile 'org.apache.commons:commons-lang3:+'
|
2015-04-05 21:31:09 -04:00
|
|
|
compile 'com.orhanobut:logger:+'
|
2014-09-09 23:31:32 -04:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
2014-07-07 22:09:15 -04:00
|
|
|
|
2015-06-13 19:22:21 -04:00
|
|
|
// Instrumentation Test dependencies
|
2014-08-09 20:07:38 -04:00
|
|
|
androidTestCompile 'com.jayway.awaitility:awaitility:+'
|
2014-07-20 21:12:00 -04:00
|
|
|
androidTestCompile 'org.mockito:mockito-core:+'
|
2014-09-07 21:27:41 -04:00
|
|
|
|
2015-06-13 19:22:21 -04:00
|
|
|
// Unit Test dependencies
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
testCompile 'com.jayway.awaitility:awaitility:+'
|
|
|
|
testCompile 'org.mockito:mockito-core:+'
|
|
|
|
testCompile 'org.jetbrains.spek:spek:+'
|
|
|
|
|
2014-09-12 22:23:48 -04:00
|
|
|
// Email debug reports if I crash...
|
2014-11-20 23:18:36 -05:00
|
|
|
debugCompile('ch.acra:acra:+') {
|
2014-09-12 22:36:53 -04:00
|
|
|
exclude module: 'json'
|
|
|
|
}
|
2014-09-07 21:27:41 -04:00
|
|
|
}
|