build.gradle.kts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 = 21
  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. implementation(libs.okhttp3)
  45. implementation(libs.okhttp3.logging.interceptor)
  46. }