0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Anki-Android/AnkiDroid/build.gradle

76 lines
2.6 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
apply plugin: 'com.github.triplet.play'
def homePath = System.properties['user.home']
android {
compileSdkVersion 26
buildToolsVersion '26.0.3'
defaultConfig {
applicationId "com.ichi2.anki"
2017-11-10 14:24:10 +01:00
minSdkVersion 14
targetSdkVersion 26
2014-11-10 13:10:07 +01:00
testApplicationId "com.ichi2.anki.tests"
vectorDrawables.useSupportLibrary = true
}
lintOptions {
abortOnError false
disable 'TypographyEllipsis'
}
signingConfigs {
release {
storeFile file("${homePath}/src/android-keystore")
keyAlias "nrkeystorealias"
storePassword System.getenv("KSTOREPWD")
keyPassword System.getenv("KEYPWD")
}
}
buildTypes {
release {
minifyEnabled true
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
}
}
play {
serviceAccountEmail = '294046724212-r3bef6kl46pb9gk0h1pl5rcjmpfrdpjl@developer.gserviceaccount.com'
pk12File = file("${homePath}/src/583631bdd16d.p12")
track = 'alpha'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:26.1.0'
// Note: the design support library can be quite buggy, so test everything thoroughly before updating it
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'
compile('com.afollestad.material-dialogs:core:0.8.6.2@aar') {
//exclude group: 'com.android.support' // uncomment to force our local support lib version
transitive = true
}
compile 'com.getbase:floatingactionbutton:1.10.1'
compile 'ch.acra:acra:4.6.2'
compile 'com.jakewharton.timber:timber:2.7.1'
compile 'com.google.code.gson:gson:2.8.2'
compile 'org.jsoup:jsoup:1.10.3'
compile project(":api")
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'
}