build.gradle.kts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. }
  4. android {
  5. namespace = "com.example.webapplication"
  6. compileSdk = 34
  7. defaultConfig {
  8. applicationId = "com.example.webapplication"
  9. minSdk = 24
  10. targetSdk = 34
  11. versionCode = 1
  12. versionName = "1.0"
  13. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. isMinifyEnabled = false
  18. proguardFiles(
  19. getDefaultProguardFile("proguard-android-optimize.txt"),
  20. "proguard-rules.pro"
  21. )
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility = JavaVersion.VERSION_1_8
  26. targetCompatibility = JavaVersion.VERSION_1_8
  27. }
  28. buildFeatures {
  29. viewBinding = true
  30. }
  31. }
  32. dependencies {
  33. implementation(libs.appcompat)
  34. implementation(libs.material)
  35. implementation(libs.constraintlayout)
  36. implementation(libs.lifecycle.livedata.ktx)
  37. implementation(libs.lifecycle.viewmodel.ktx)
  38. implementation(libs.navigation.fragment)
  39. implementation(libs.navigation.ui)
  40. testImplementation(libs.junit)
  41. androidTestImplementation(libs.ext.junit)
  42. androidTestImplementation(libs.espresso.core)
  43. implementation(libs.blakj)
  44. }