126 lines
4.0 KiB
Kotlin
126 lines
4.0 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("com.google.devtools.ksp")
|
|
id("com.google.dagger.hilt.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.panorama.stitcher"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.panorama.stitcher"
|
|
minSdk = 24
|
|
targetSdk = 34
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.14"
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
isIncludeAndroidResources = true
|
|
isReturnDefaultValues = true
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Core Android
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
|
|
implementation("androidx.activity:activity-compose:1.8.1")
|
|
implementation("androidx.documentfile:documentfile:1.0.1")
|
|
|
|
// Jetpack Compose
|
|
implementation(platform("androidx.compose:compose-bom:2023.10.01"))
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.ui:ui-graphics")
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
implementation("androidx.compose.material3:material3")
|
|
implementation("androidx.compose.material:material-icons-extended")
|
|
implementation("androidx.navigation:navigation-compose:2.7.5")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.6.2")
|
|
|
|
// Hilt Dependency Injection with KSP
|
|
implementation("com.google.dagger:hilt-android:2.51.1")
|
|
ksp("com.google.dagger:hilt-android-compiler:2.51.1")
|
|
implementation("androidx.hilt:hilt-navigation-compose:1.2.0")
|
|
|
|
// Kotlin Coroutines
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
|
|
|
|
// OpenCV for Android
|
|
// Note: OpenCV Android SDK needs to be manually downloaded and added
|
|
// Download from: https://github.com/opencv/opencv/releases
|
|
// For now, tests will mock OpenCV functionality
|
|
// implementation(files("libs/opencv-4.8.0.aar"))
|
|
|
|
// Testing
|
|
testImplementation("junit:junit:4.13.2")
|
|
testImplementation("io.kotest:kotest-runner-junit5:5.8.0")
|
|
testImplementation("io.kotest:kotest-assertions-core:5.8.0")
|
|
testImplementation("io.kotest:kotest-property:5.8.0")
|
|
testImplementation("io.mockk:mockk:1.13.8")
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
|
|
testImplementation("org.robolectric:robolectric:4.11.1")
|
|
|
|
// JUnit 5
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
|
|
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.10.1")
|
|
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
|
androidTestImplementation(platform("androidx.compose:compose-bom:2023.10.01"))
|
|
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
|
|
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
|
}
|
|
|
|
// KSP configuration
|
|
ksp {
|
|
arg("dagger.hilt.android.internal.disableAndroidSuperclassValidation", "true")
|
|
}
|