build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdk 31
  7. defaultConfig {
  8. applicationId "com.ys.bdtp.adm"
  9. minSdk 28
  10. targetSdk 31
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. vectorDrawables {
  15. useSupportLibrary true
  16. }
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. kotlinOptions {
  29. jvmTarget = '1.8'
  30. useIR = true
  31. }
  32. buildFeatures {
  33. compose true
  34. }
  35. composeOptions {
  36. kotlinCompilerExtensionVersion compose_version
  37. kotlinCompilerVersion '1.5.10'
  38. }
  39. packagingOptions {
  40. resources {
  41. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  42. }
  43. }
  44. }
  45. dependencies {
  46. implementation 'androidx.core:core-ktx:1.3.2'
  47. implementation 'androidx.appcompat:appcompat:1.2.0'
  48. implementation 'com.google.android.material:material:1.3.0'
  49. implementation "androidx.compose.ui:ui:$compose_version"
  50. implementation "androidx.compose.material:material:$compose_version"
  51. implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
  52. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
  53. implementation 'androidx.activity:activity-compose:1.3.0-alpha06'
  54. testImplementation 'junit:junit:4.+'
  55. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  56. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  57. androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
  58. debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
  59. }