2014-11-09 18:02:29 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2015-10-27 03:23:05 +01:00
|
|
|
apply plugin: 'com.github.triplet.play'
|
2014-11-09 18:02:29 +01:00
|
|
|
def homePath = System.properties['user.home']
|
|
|
|
android {
|
2017-12-14 23:44:55 +01:00
|
|
|
compileSdkVersion 26
|
2018-03-08 09:38:32 +01:00
|
|
|
buildToolsVersion '26.0.3'
|
2014-11-09 18:02:29 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.ichi2.anki"
|
2017-11-10 14:24:10 +01:00
|
|
|
minSdkVersion 14
|
2017-12-14 23:44:55 +01:00
|
|
|
targetSdkVersion 26
|
2014-11-10 13:10:07 +01:00
|
|
|
testApplicationId "com.ichi2.anki.tests"
|
2016-05-27 09:25:12 +02:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2014-11-09 18:02:29 +01:00
|
|
|
}
|
2015-10-27 03:23:05 +01:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
disable 'TypographyEllipsis'
|
|
|
|
}
|
2014-11-09 18:02:29 +01:00
|
|
|
signingConfigs {
|
2015-10-27 03:23:05 +01:00
|
|
|
release {
|
|
|
|
storeFile file("${homePath}/src/android-keystore")
|
|
|
|
keyAlias "nrkeystorealias"
|
|
|
|
storePassword System.getenv("KSTOREPWD")
|
|
|
|
keyPassword System.getenv("KEYPWD")
|
|
|
|
}
|
2014-11-09 18:02:29 +01:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2015-12-03 18:16:05 +01:00
|
|
|
minifyEnabled true
|
2014-11-09 18:02:29 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
2015-11-04 11:48:13 +01:00
|
|
|
useLibrary 'org.apache.http.legacy'
|
2016-03-11 23:45:45 +01:00
|
|
|
|
|
|
|
dexOptions {
|
|
|
|
// Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
|
|
|
|
preDexLibraries = preDexEnabled && !travisBuild
|
|
|
|
}
|
2014-11-09 18:02:29 +01:00
|
|
|
}
|
2015-10-27 03:23:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
play {
|
|
|
|
serviceAccountEmail = '294046724212-r3bef6kl46pb9gk0h1pl5rcjmpfrdpjl@developer.gserviceaccount.com'
|
|
|
|
pk12File = file("${homePath}/src/583631bdd16d.p12")
|
2017-01-05 00:05:18 +01:00
|
|
|
track = 'alpha'
|
2015-10-27 03:23:05 +01:00
|
|
|
}
|
2014-11-09 18:02:29 +01:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
2017-12-14 23:44:55 +01:00
|
|
|
compile 'com.android.support:appcompat-v7:26.1.0'
|
2015-09-27 06:18:52 +02:00
|
|
|
// Note: the design support library can be quite buggy, so test everything thoroughly before updating it
|
2017-12-14 23:44:55 +01:00
|
|
|
compile 'com.android.support:design:26.1.0'
|
|
|
|
compile 'com.android.support:customtabs:26.1.0'
|
|
|
|
compile 'com.android.support:recyclerview-v7:26.1.0'
|
2017-01-04 21:51:29 +01:00
|
|
|
compile 'io.requery:sqlite-android:3.16.0'
|
2016-07-28 04:54:04 +02:00
|
|
|
compile('com.afollestad.material-dialogs:core:0.8.6.2@aar') {
|
2015-11-17 10:34:26 +01:00
|
|
|
//exclude group: 'com.android.support' // uncomment to force our local support lib version
|
2015-09-25 12:42:59 +02:00
|
|
|
transitive = true
|
|
|
|
}
|
2015-12-09 18:38:55 +01:00
|
|
|
compile 'com.getbase:floatingactionbutton:1.10.1'
|
2015-10-17 04:10:05 +02:00
|
|
|
compile 'ch.acra:acra:4.6.2'
|
2015-10-16 05:14:56 +02:00
|
|
|
compile 'com.jakewharton.timber:timber:2.7.1'
|
2018-03-08 09:38:32 +01:00
|
|
|
compile 'com.google.code.gson:gson:2.8.2'
|
2017-11-09 05:01:35 +01:00
|
|
|
compile 'org.jsoup:jsoup:1.10.3'
|
2015-09-10 22:08:18 +02:00
|
|
|
compile project(":api")
|
2016-10-22 15:32:58 +02:00
|
|
|
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
testCompile 'org.mockito:mockito-core:1.10.19' // v1 while PowerMock does not fully support v2.
|
|
|
|
testCompile 'org.powermock:powermock-core:1.6.5'
|
|
|
|
testCompile 'org.powermock:powermock-module-junit4:1.6.5'
|
|
|
|
testCompile 'org.powermock:powermock-api-mockito:1.6.5'
|
|
|
|
testCompile 'org.hamcrest:hamcrest-all:1.3'
|
|
|
|
|
2014-11-09 18:02:29 +01:00
|
|
|
}
|