mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-02-14 17:12:12 -05:00
This refactors the library so that Downloaders receive the IndexFile directly so that they get access to the IPFS CID, but also to the SHA256 hash and the file size. Mirrors can now be marked as IPFS gateways.
29 lines
699 B
Groovy
29 lines
699 B
Groovy
plugins {
|
|
id 'kotlin-android'
|
|
id 'com.android.library'
|
|
id "org.jlleitschuh.gradle.ktlint" version "10.2.1"
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
// not really an Android library, but index is not publishing for JVM at the moment
|
|
android {
|
|
compileSdkVersion 31
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(":libs:download")
|
|
implementation project(":libs:index")
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test'
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
|
|
}
|
|
|
|
apply from: "${rootProject.rootDir}/gradle/ktlint.gradle"
|