build.gradle 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. compileSdk 32
  7. defaultConfig {
  8. applicationId "com.common.android.lib"
  9. minSdk 21
  10. targetSdk 32
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. kotlinOptions {
  26. jvmTarget = '1.8'
  27. }
  28. buildFeatures {
  29. viewBinding = true
  30. dataBinding = true
  31. }
  32. buildFeatures {
  33. compose true
  34. }
  35. composeOptions {
  36. kotlinCompilerExtensionVersion compose_version
  37. }
  38. }
  39. dependencies {
  40. implementation project(':lib_common')
  41. implementation project(':lib_ad_core')
  42. implementation project(':lib_ad_admob')
  43. implementation project(':lib_ad_csj')
  44. implementation project(':lib_ad_gromore')
  45. //compose依赖
  46. implementation "androidx.compose.ui:ui:$compose_version"
  47. implementation 'androidx.compose.material3:material3:1.0.0-alpha01'
  48. implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
  49. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
  50. implementation 'androidx.activity:activity-compose:1.5.1'
  51. implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
  52. // compose 图片加载
  53. implementation("io.coil-kt:coil-compose:2.1.0")
  54. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  55. implementation "com.google.accompanist:accompanist-insets:0.23.1"
  56. implementation "com.google.accompanist:accompanist-insets-ui:0.23.1"
  57. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  58. implementation "androidx.navigation:navigation-compose:2.5.1"
  59. implementation "androidx.compose.runtime:runtime-livedata:1.2.0"
  60. implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1"
  61. implementation 'androidx.appcompat:appcompat:1.5.0'
  62. implementation 'com.google.android.material:material:1.6.1'
  63. testImplementation 'junit:junit:4.13.2'
  64. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  65. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  66. androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
  67. debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
  68. debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
  69. }