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
|
2014-11-09 18:02:29 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.ichi2.anki"
|
2018-04-01 20:50:50 +02:00
|
|
|
minSdkVersion 15
|
2018-03-08 09:39:12 +01:00
|
|
|
targetSdkVersion 25
|
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 {
|
2018-05-19 04:55:10 +02:00
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
implementation '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
|
2018-05-19 04:55:10 +02:00
|
|
|
implementation 'com.android.support:design:26.1.0'
|
|
|
|
implementation 'com.android.support:customtabs:26.1.0'
|
|
|
|
implementation 'com.android.support:recyclerview-v7:26.1.0'
|
|
|
|
implementation 'io.requery:sqlite-android:3.16.0'
|
|
|
|
implementation('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
|
|
|
|
}
|
2018-05-19 04:55:10 +02:00
|
|
|
implementation 'com.getbase:floatingactionbutton:1.10.1'
|
|
|
|
implementation 'ch.acra:acra:4.6.2'
|
2018-06-17 23:04:21 +02:00
|
|
|
implementation 'com.jakewharton.timber:timber:4.7.0'
|
2018-05-19 04:55:10 +02:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.2'
|
|
|
|
implementation 'org.jsoup:jsoup:1.10.3'
|
|
|
|
api project(":api")
|
2016-10-22 15:32:58 +02:00
|
|
|
|
2018-06-13 23:33:07 +02:00
|
|
|
testImplementation 'org.junit.vintage:junit-vintage-engine:5.2.0'
|
|
|
|
testImplementation 'org.mockito:mockito-core:2.18.3'
|
|
|
|
testImplementation 'org.powermock:powermock-core:2.0.0-beta.5'
|
|
|
|
testImplementation 'org.powermock:powermock-module-junit4:2.0.0-beta.5'
|
|
|
|
testImplementation 'org.powermock:powermock-api-mockito2:2.0.0-beta.5'
|
2018-05-19 04:55:10 +02:00
|
|
|
testImplementation 'org.hamcrest:hamcrest-all:1.3'
|
2018-06-17 23:04:21 +02:00
|
|
|
testImplementation 'net.lachlanmckee:timber-junit-rule:1.0.1'
|
2014-11-09 18:02:29 +01:00
|
|
|
}
|