build.gradle.kts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
  2. plugins {
  3. alias(libs.plugins.androidApplication)
  4. alias(libs.plugins.kotlinAndroid)
  5. alias(libs.plugins.google.ksp)
  6. alias(libs.plugins.google.hilt)
  7. }
  8. android {
  9. namespace = "com.codeskraps.sbrowser"
  10. compileSdk = 34
  11. defaultConfig {
  12. applicationId = "com.codeskraps.sbrowser_new"
  13. minSdk = 26
  14. targetSdk = 34
  15. versionCode = 6
  16. versionName = "3.3"
  17. setProperty("archivesBaseName", "sBrowser-v$versionName.$versionCode")
  18. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  19. vectorDrawables {
  20. useSupportLibrary = true
  21. }
  22. }
  23. buildTypes {
  24. release {
  25. isMinifyEnabled = true
  26. proguardFiles(
  27. getDefaultProguardFile("proguard-android-optimize.txt"),
  28. "proguard-rules.pro"
  29. )
  30. }
  31. debug {
  32. isMinifyEnabled = false
  33. applicationIdSuffix = ".debug"
  34. versionNameSuffix = "-DEBUG"
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility = JavaVersion.VERSION_17
  39. targetCompatibility = JavaVersion.VERSION_17
  40. }
  41. kotlinOptions {
  42. jvmTarget = "17"
  43. }
  44. buildFeatures {
  45. compose = true
  46. }
  47. composeOptions {
  48. kotlinCompilerExtensionVersion = "1.5.7"
  49. }
  50. packaging {
  51. resources {
  52. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  53. }
  54. }
  55. }
  56. dependencies {
  57. implementation(libs.core.ktx)
  58. implementation(libs.lifecycle.runtime.ktx)
  59. implementation(libs.lifecycle.runtime.compose)
  60. implementation(libs.activity.compose)
  61. implementation(platform(libs.compose.bom))
  62. implementation(libs.ui)
  63. implementation(libs.ui.graphics)
  64. implementation(libs.ui.tooling.preview)
  65. implementation(libs.material3)
  66. //Dagger - Hilt
  67. implementation(libs.hilt.android)
  68. implementation(libs.hilt.navigation.compose)
  69. ksp(libs.hilt.android.compiler)
  70. // Room
  71. implementation(libs.room.runtime)
  72. implementation(libs.room.ktx)
  73. annotationProcessor(libs.room.compiler)
  74. ksp(libs.room.compiler)
  75. implementation(libs.jsoup)
  76. implementation(libs.media3.exoplayer)
  77. implementation(libs.media3.ui)
  78. testImplementation(libs.junit)
  79. androidTestImplementation(libs.androidx.test.ext.junit)
  80. androidTestImplementation(libs.espresso.core)
  81. androidTestImplementation(platform(libs.compose.bom))
  82. androidTestImplementation(libs.ui.test.junit4)
  83. debugImplementation(libs.ui.tooling)
  84. debugImplementation(libs.ui.test.manifest)
  85. }