ebook-android/app/build.gradle.kts
2024-12-13 13:40:13 +01:00

156 lines
5.3 KiB
Plaintext

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
id("com.google.devtools.ksp") version "1.9.22-1.0.17"
}
android {
namespace = "inhale.rip.epook"
compileSdk = 34
defaultConfig {
applicationId = "inhale.rip.epook"
minSdk = 26
targetSdk = 34
versionCode = 1
versionName = "1.0.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
isDebuggable = true
}
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
}
buildFeatures {
compose = true
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
configurations.all {
resolutionStrategy {
force("androidx.core:core:1.12.0")
force("androidx.versionedparcelable:versionedparcelable:1.1.1")
}
}
}
dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.activity.compose)
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.ui)
implementation(libs.androidx.ui.graphics)
implementation(libs.androidx.ui.tooling.preview)
implementation(libs.androidx.material3)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.ui.test.junit4)
debugImplementation(libs.androidx.ui.tooling)
debugImplementation(libs.androidx.ui.test.manifest)
// For image loading
implementation("io.coil-kt:coil-compose:2.6.0")
// Navigation
implementation("androidx.navigation:navigation-compose:2.7.7")
// DataStore for simple persistence
implementation("androidx.datastore:datastore-preferences:1.0.0")
// EPUB handling
implementation("com.positiondev.epublib:epublib-core:3.1") {
exclude(group = "org.slf4j", module = "slf4j-simple")
exclude(group = "xmlpull", module = "xmlpull")
}
implementation("org.slf4j:slf4j-android:1.7.36")
implementation("net.sf.kxml:kxml2:2.3.0")
// Add material icons extended for the settings icon
implementation("androidx.compose.material:material-icons-extended:1.6.1")
// Add Room dependencies
val roomVersion = "2.6.1"
implementation("androidx.room:room-runtime:$roomVersion")
implementation("androidx.room:room-ktx:$roomVersion")
ksp("androidx.room:room-compiler:$roomVersion")
// Add Timber for logging
implementation("com.jakewharton.timber:timber:5.0.1")
// Add Material Design Icons Extended
implementation("androidx.compose.material:material-icons-extended:1.6.1")
// Add Compose Animation libraries
implementation("androidx.compose.animation:animation:1.6.1")
implementation("androidx.compose.animation:animation-graphics:1.6.1")
// Add Accompanist for UI utilities
implementation("com.google.accompanist:accompanist-systemuicontroller:0.34.0")
implementation("com.google.accompanist:accompanist-placeholder-material:0.34.0")
// Add foundation dependency using BOM version management
implementation(platform(libs.androidx.compose.bom))
implementation("androidx.compose.foundation:foundation")
// Add Jsoup for HTML processing
implementation("org.jsoup:jsoup:1.16.2")
// Add epublib for epub handling
implementation("com.positiondev.epublib:epublib-core:3.1")
// Add Compose Animation dependencies
implementation(platform(libs.androidx.compose.bom))
implementation("androidx.compose.animation:animation")
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-tooling-preview")
debugImplementation("androidx.compose.ui:ui-tooling")
configurations.all {
resolutionStrategy {
// Exclude conflicting SLF4J implementations
exclude(group = "org.slf4j", module = "slf4j-simple")
// Exclude conflicting XML pull parser
exclude(group = "xmlpull", module = "xmlpull")
}
}
// Add Fuel dependencies explicitly
implementation("com.github.kittinunf.fuel:fuel:2.3.1")
implementation("com.github.kittinunf.fuel:fuel-android:2.3.1")
// Add explicit AndroidX dependencies
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.11.0")
implementation("androidx.recyclerview:recyclerview:1.3.2")
implementation("androidx.legacy:legacy-support-v4:1.0.0")
// Add these dependencies
implementation("org.json:json:20231013")
implementation("com.jakewharton.timber:timber:5.0.1")
}