build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. ndk {
  16. abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. kotlinOptions {
  30. jvmTarget = '1.8'
  31. }
  32. buildFeatures {
  33. viewBinding = true
  34. dataBinding = true
  35. }
  36. buildFeatures {
  37. compose true
  38. }
  39. composeOptions {
  40. kotlinCompilerExtensionVersion compose_version
  41. }
  42. }
  43. dependencies {
  44. implementation project(':lib_common')
  45. implementation project(':lib_ad_core')
  46. implementation project(':lib_ad_admob')
  47. implementation project(':lib_ad_csj')
  48. implementation project(':lib_ad_gromore')
  49. implementation project(':lib_pdf_base')
  50. //compose依赖
  51. implementation "androidx.compose.ui:ui:$compose_version"
  52. implementation 'androidx.compose.material3:material3:1.0.0-alpha01'
  53. implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
  54. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
  55. implementation 'androidx.activity:activity-compose:1.5.1'
  56. implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
  57. // compose 图片加载
  58. implementation("io.coil-kt:coil-compose:2.1.0")
  59. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  60. implementation "com.google.accompanist:accompanist-insets:0.23.1"
  61. implementation "com.google.accompanist:accompanist-insets-ui:0.23.1"
  62. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  63. implementation "androidx.navigation:navigation-compose:2.5.1"
  64. implementation "androidx.compose.runtime:runtime-livedata:1.2.0"
  65. implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1"
  66. implementation 'androidx.appcompat:appcompat:1.5.0'
  67. implementation 'com.google.android.material:material:1.6.1'
  68. testImplementation 'junit:junit:4.13.2'
  69. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  70. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  71. androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
  72. debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
  73. debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
  74. }