build.gradle.kts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.kotlin.compose)
  4. }
  5. android {
  6. namespace = "com.xuqm.sample"
  7. compileSdk = libs.versions.compileSdk.get().toInt()
  8. defaultConfig {
  9. applicationId = "com.xuqm.sample"
  10. minSdk = libs.versions.minSdk.get().toInt()
  11. targetSdk = libs.versions.targetSdk.get().toInt()
  12. versionCode = 1
  13. versionName = "0.1.0"
  14. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  15. manifestPlaceholders["authProviderAuthority"] = "com.xuqm.sample.auth"
  16. manifestPlaceholders["sharedCacheAuthority"] = "com.xuqm.sample.sdk.cache.provider"
  17. manifestPlaceholders["coreFileProviderAuthority"] = "com.xuqm.sample.sdk.fileprovider"
  18. buildConfigField("String", "UPDATE_SERVER_BASE_URL", "\"http://192.168.116.9:3000/\"")
  19. }
  20. buildTypes {
  21. release {
  22. isMinifyEnabled = false
  23. proguardFiles(
  24. getDefaultProguardFile("proguard-android-optimize.txt"),
  25. "proguard-rules.pro",
  26. )
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility = JavaVersion.VERSION_21
  31. targetCompatibility = JavaVersion.VERSION_21
  32. }
  33. buildFeatures {
  34. compose = true
  35. buildConfig = true
  36. }
  37. }
  38. kotlin {
  39. jvmToolchain(21)
  40. }
  41. dependencies {
  42. implementation(project(":commonsdk-core"))
  43. implementation(project(":commonsdk-compose"))
  44. implementation(project(":lib-szyx"))
  45. implementation(libs.androidx.core.ktx)
  46. implementation(libs.androidx.lifecycle.runtime.ktx)
  47. implementation(libs.androidx.lifecycle.runtime.compose)
  48. implementation(libs.androidx.activity.compose)
  49. implementation(platform(libs.androidx.compose.bom))
  50. implementation(libs.bundles.compose)
  51. testImplementation(libs.junit4)
  52. androidTestImplementation(libs.androidx.junit)
  53. androidTestImplementation(libs.androidx.espresso.core)
  54. androidTestImplementation(platform(libs.androidx.compose.bom))
  55. androidTestImplementation(libs.androidx.ui.test.junit4)
  56. debugImplementation(libs.bundles.compose.debug)
  57. }