build.gradle 2.9 KB

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