kiwix-android/buildSrc/build.gradle.kts
MohitMali 11c5b3caa2 Fixed URLConnection not adding headers to the request.
* In this update, we've replaced the `URLConnection` with the OkHttp library, and now headers are being correctly passed in the request. As a result, the Zim file is successfully downloading.
* To integrate OkHttp into our Gradle project, we've moved the OkHttp dependency to our `buildSrc` folder.
2023-10-14 12:48:02 +02:00

31 lines
988 B
Plaintext

plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
google()
maven {
setUrl("https://plugins.gradle.org/m2/")
}
maven { setUrl("https://jitpack.io") }
}
dependencies {
implementation("com.android.tools.build:gradle:7.4.2")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0")
implementation("org.jacoco:org.jacoco.core:0.8.8")
implementation("org.jlleitschuh.gradle:ktlint-gradle:10.3.0")
implementation("com.google.apis:google-api-services-androidpublisher:v3-rev20230406-2.0.0") {
exclude(group = "com.google.guava", module = "guava")
}
implementation("com.google.http-client:google-http-client-jackson2:1.40.0") {
exclude(group = "com.google.guava", module = "guava")
}
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0")
implementation("com.googlecode.json-simple:json-simple:1.1")
implementation("com.squareup.okhttp3:okhttp:4.9.0")
implementation(gradleApi())
implementation(localGroovy())
}