mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
95 lines
3.7 KiB
Groovy
95 lines
3.7 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'me.tatarka.retrolambda'
|
|
apply plugin: 'jacoco-android'
|
|
apply from: 'quality.gradle'
|
|
apply plugin: 'com.getkeepsafe.dexcount'
|
|
|
|
dependencies {
|
|
compile 'com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
|
|
compile 'fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
|
|
compile 'in.yuvi:http.fluent:1.3'
|
|
compile 'com.android.volley:volley:1.0.0'
|
|
compile 'ch.acra:acra:4.7.0'
|
|
compile 'org.mediawiki:api:1.3'
|
|
compile 'commons-codec:commons-codec:1.10'
|
|
compile "com.android.support:support-v4:${project.supportLibVersion}"
|
|
compile "com.android.support:appcompat-v7:${project.supportLibVersion}"
|
|
compile "com.android.support:design:${project.supportLibVersion}"
|
|
compile 'com.google.code.gson:gson:2.8.0'
|
|
compile "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
|
|
compile 'com.github.pedrovgs:renderers:3.3.3'
|
|
annotationProcessor "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"
|
|
compile 'com.jakewharton.timber:timber:4.5.1'
|
|
compile 'com.squareup.okhttp3:okhttp:3.8.1'
|
|
compile 'com.squareup.okio:okio:1.13.0'
|
|
compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:5.1.0@aar'){
|
|
transitive=true
|
|
}
|
|
|
|
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
|
|
// Because RxAndroid releases are few and far between, it is recommended you also
|
|
// explicitly depend on RxJava's latest version for bug fixes and new features.
|
|
compile 'io.reactivex.rxjava2:rxjava:2.1.2'
|
|
compile 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
|
|
compile 'com.jakewharton.rxbinding2:rxbinding-support-v4:2.0.0'
|
|
compile 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0'
|
|
compile 'com.jakewharton.rxbinding2:rxbinding-design:2.0.0'
|
|
|
|
compile 'com.facebook.fresco:fresco:1.3.0'
|
|
compile 'com.facebook.stetho:stetho:1.5.0'
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
testCompile 'org.robolectric:robolectric:3.3.2'
|
|
|
|
testCompile 'com.squareup.okhttp3:mockwebserver:3.8.1'
|
|
androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.8.1'
|
|
androidTestCompile "com.android.support:support-annotations:${project.supportLibVersion}"
|
|
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
|
|
|
|
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
|
|
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
|
|
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion project.compileSdkVersion
|
|
buildToolsVersion project.buildToolsVersion
|
|
|
|
useLibrary 'org.apache.http.legacy'
|
|
|
|
defaultConfig {
|
|
applicationId 'fr.free.nrw.commons'
|
|
versionCode 74
|
|
versionName '2.5.0'
|
|
minSdkVersion project.minSdkVersion
|
|
targetSdkVersion project.targetSdkVersion
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables.useSupportLibrary = true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false // See https://stackoverflow.com/questions/40232404/google-play-apk-and-android-studio-apk-usb-debug-behaving-differently - proguard.cfg modification alone insufficient.
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
}
|
|
debug {
|
|
testCoverageEnabled true
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
disable 'MissingTranslation'
|
|
disable 'ExtraTranslation'
|
|
abortOnError false
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
//FIXME: Temporary fix for https://github.com/commons-app/apps-android-commons/issues/709
|
|
configurations.all {
|
|
resolutionStrategy.force 'com.android.support:support-annotations:25.2.0'
|
|
}
|
|
}
|