build.gradle.kts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 = 4
  16. versionName = "3.2"
  17. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  18. vectorDrawables {
  19. useSupportLibrary = true
  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_17
  33. targetCompatibility = JavaVersion.VERSION_17
  34. }
  35. kotlinOptions {
  36. jvmTarget = "17"
  37. }
  38. buildFeatures {
  39. compose = true
  40. }
  41. composeOptions {
  42. kotlinCompilerExtensionVersion = "1.5.7"
  43. }
  44. packaging {
  45. resources {
  46. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  47. }
  48. }
  49. }
  50. dependencies {
  51. implementation(libs.core.ktx)
  52. implementation(libs.lifecycle.runtime.ktx)
  53. implementation(libs.lifecycle.runtime.compose)
  54. implementation(libs.activity.compose)
  55. implementation(platform(libs.compose.bom))
  56. implementation(libs.ui)
  57. implementation(libs.ui.graphics)
  58. implementation(libs.ui.tooling.preview)
  59. implementation(libs.material3)
  60. //Dagger - Hilt
  61. implementation(libs.hilt.android)
  62. implementation(libs.hilt.navigation.compose)
  63. ksp(libs.hilt.android.compiler)
  64. // Room
  65. implementation(libs.room.runtime)
  66. implementation(libs.room.ktx)
  67. annotationProcessor(libs.room.compiler)
  68. ksp(libs.room.compiler)
  69. implementation(libs.jsoup)
  70. implementation(libs.media3.exoplayer)
  71. implementation(libs.media3.ui)
  72. testImplementation(libs.junit)
  73. androidTestImplementation(libs.androidx.test.ext.junit)
  74. androidTestImplementation(libs.espresso.core)
  75. androidTestImplementation(platform(libs.compose.bom))
  76. androidTestImplementation(libs.ui.test.junit4)
  77. debugImplementation(libs.ui.tooling)
  78. debugImplementation(libs.ui.test.manifest)
  79. }