build.gradle.kts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. plugins {
  2. alias(libs.plugins.androidApplication)
  3. alias(libs.plugins.jetbrainsKotlinAndroid)
  4. }
  5. android {
  6. namespace = "com.ys.imageProcess"
  7. compileSdk = 34
  8. defaultConfig {
  9. applicationId = "com.ys.imageProcess"
  10. minSdk = 29
  11. targetSdk = 34
  12. versionCode = 1
  13. versionName = "1.0"
  14. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  15. vectorDrawables {
  16. useSupportLibrary = true
  17. }
  18. ndk {
  19. abiFilters.add("arm64-v8a")
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. isMinifyEnabled = false
  25. proguardFiles(
  26. getDefaultProguardFile("proguard-android-optimize.txt"),
  27. "proguard-rules.pro"
  28. )
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility = JavaVersion.VERSION_11
  33. targetCompatibility = JavaVersion.VERSION_11
  34. }
  35. kotlinOptions {
  36. jvmTarget = "11"
  37. }
  38. buildFeatures {
  39. compose = true
  40. viewBinding = true
  41. }
  42. composeOptions {
  43. kotlinCompilerExtensionVersion = "1.5.1"
  44. }
  45. packaging {
  46. resources {
  47. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  48. }
  49. }
  50. externalNativeBuild {
  51. cmake {
  52. version = "3.22.1"
  53. path = file("src/main/jni/CMakeLists.txt")
  54. }
  55. }
  56. ndkVersion = "21.0.6113669"
  57. }
  58. dependencies {
  59. implementation(libs.androidx.core.ktx)
  60. implementation(libs.androidx.lifecycle.runtime.ktx)
  61. implementation(libs.androidx.activity.compose)
  62. implementation(platform(libs.androidx.compose.bom))
  63. implementation(libs.androidx.ui)
  64. implementation(libs.androidx.ui.graphics)
  65. implementation(libs.androidx.ui.tooling.preview)
  66. implementation(libs.androidx.material3)
  67. implementation(libs.androidx.navigation.runtime.ktx)
  68. implementation(libs.androidx.navigation.compose)
  69. implementation(libs.androidx.lifecycle.runtime.compose.android)
  70. testImplementation(libs.junit)
  71. androidTestImplementation(libs.androidx.junit)
  72. androidTestImplementation(libs.androidx.espresso.core)
  73. androidTestImplementation(platform(libs.androidx.compose.bom))
  74. androidTestImplementation(libs.androidx.ui.test.junit4)
  75. debugImplementation(libs.androidx.ui.tooling)
  76. debugImplementation(libs.androidx.ui.test.manifest)
  77. implementation(libs.gson)
  78. implementation (libs.coil.compose)
  79. }