ReaderforSelfoss/app/build.gradle

155 lines
5.1 KiB
Groovy
Raw Normal View History

buildscript {
}
def gitVersion() {
2018-12-02 12:13:19 +00:00
def process
def maybeTagOfCurrentCommit = 'git describe --contains HEAD'.execute()
if (maybeTagOfCurrentCommit.text.isEmpty()) {
println "No tag on current commit. Will take the latest one."
process = "git for-each-ref refs/tags --sort=-authordate --format='%(refname:short)' --count=1".execute()
} else {
println "Tag found on current commit"
process = 'git describe --contains HEAD'.execute()
}
return process.text.replaceAll("'", "").substring(1).replaceAll("\\.", "").trim()
}
def versionCodeFromGit() {
println "version code " + gitVersion()
return gitVersion().toInteger()
}
def versionNameFromGit() {
println "version name " + gitVersion()
return gitVersion()
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
2021-01-09 14:01:59 +00:00
apply plugin: 'kotlin-kapt'
android {
2018-05-21 19:39:23 +00:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
2018-05-21 19:39:23 +00:00
}
2021-01-09 14:01:59 +00:00
compileSdkVersion 30
buildToolsVersion '30.0.3'
2021-03-17 16:50:44 +00:00
buildFeatures {
viewBinding true
}
defaultConfig {
applicationId "apps.amine.bou.readerforselfoss"
minSdkVersion 16
2021-01-09 14:01:59 +00:00
targetSdkVersion 30
versionCode versionCodeFromGit()
versionName versionNameFromGit()
// Enabling multidex support.
multiDexEnabled true
lintOptions {
abortOnError true
disable 'InvalidPackage'
}
vectorDrawables.useSupportLibrary = true
2017-06-11 10:04:39 +00:00
// tests
2018-10-12 18:36:18 +00:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation":
"$projectDir/schemas".toString()]
}
}
}
buildTypes {
release {
2017-09-10 07:19:28 +00:00
minifyEnabled true
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
2017-06-11 10:04:39 +00:00
debug {
}
}
flavorDimensions "build"
productFlavors {
githubConfig {
versionNameSuffix '-github'
dimension "build"
}
}
}
dependencies {
2017-06-11 10:04:39 +00:00
// Testing
2021-01-09 14:01:59 +00:00
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0-alpha02'
androidTestImplementation 'androidx.test:runner:1.3.1-alpha02'
2017-06-11 10:04:39 +00:00
// Espresso-contrib for DatePicker, RecyclerView, Drawer actions, Accessibility checks, CountingIdlingResource
2021-01-09 14:01:59 +00:00
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.4.0-alpha02'
2017-06-11 10:04:39 +00:00
// Espresso-intents for validation and stubbing of Intents
2021-01-09 14:01:59 +00:00
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.4.0-alpha02'
implementation fileTree(include: ['*.jar'], dir: 'libs')
2018-03-27 17:59:34 +00:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// Android Support
2021-01-09 14:01:59 +00:00
implementation "androidx.appcompat:appcompat:1.3.0-alpha02"
implementation 'com.google.android.material:material:1.3.0-beta01'
implementation 'androidx.recyclerview:recyclerview:1.2.0-beta01'
2018-10-12 18:51:36 +00:00
implementation "androidx.legacy:legacy-support-v4:$android_version"
2021-01-09 14:01:59 +00:00
implementation 'androidx.vectordrawable:vectordrawable:1.2.0-alpha02'
implementation "androidx.browser:browser:1.3.0"
2018-10-12 18:51:36 +00:00
implementation "androidx.cardview:cardview:$android_version"
2021-01-09 14:01:59 +00:00
implementation 'androidx.constraintlayout:constraintlayout:2.1.0-alpha2'
2020-12-22 17:02:03 +00:00
implementation 'org.jsoup:jsoup:1.13.1'
//multidex
2019-01-13 14:58:25 +00:00
implementation 'androidx.multidex:multidex:2.0.1'
// About
implementation('com.mikepenz:aboutlibraries:6.2.0@aar') {
transitive = true
}
// Retrofit + http logging + okhttp
2018-03-27 17:59:34 +00:00
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.burgstaller:okhttp-digest:1.12'
// Material-ish things
implementation 'com.ashokvarma.android:bottom-navigation-bar:2.1.0'
2018-10-12 18:51:36 +00:00
implementation 'com.github.jd-alexander:LikeButton:0.2.3'
2018-03-27 17:59:34 +00:00
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
// glide
2018-03-27 17:59:34 +00:00
implementation 'com.github.bumptech.glide:glide:4.1.1'
implementation 'com.github.bumptech.glide:okhttp3-integration:4.1.1'
2017-06-04 14:09:42 +00:00
// Drawer
implementation 'co.zsmb:materialdrawer-kt:2.0.2'
2017-06-04 14:09:42 +00:00
// Themes
2018-03-27 17:59:34 +00:00
implementation 'com.52inc:scoops:1.0.0'
2019-05-12 19:42:56 +00:00
implementation 'com.jaredrummler:colorpicker:1.0.2'
2018-03-27 17:59:34 +00:00
implementation 'com.github.rubensousa:floatingtoolbar:1.5.1'
2017-12-03 21:09:58 +00:00
// Pager
2018-10-12 18:51:36 +00:00
implementation 'me.relex:circleindicator:2.0.0@aar'
2017-12-10 19:00:09 +00:00
//PhotoView
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
2021-01-09 14:01:59 +00:00
implementation 'androidx.core:core-ktx:1.5.0-alpha05'
2018-02-07 20:16:51 +00:00
2021-01-09 14:01:59 +00:00
implementation "androidx.lifecycle:lifecycle-livedata:2.3.0-rc01"
implementation "androidx.lifecycle:lifecycle-common-java8:2.3.0-rc01"
2018-10-12 20:04:47 +00:00
2021-01-09 14:01:59 +00:00
implementation "androidx.room:room-runtime:2.3.0-alpha04"
kapt "androidx.room:room-compiler:2.3.0-alpha04"
2018-11-01 20:51:31 +00:00
implementation "android.arch.work:work-runtime-ktx:$work_version"
2020-12-22 17:02:03 +00:00
}