build.gradle 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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.convenient.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 fileTree(dir: 'libs', include: ['*.jar','*.aar'])
  45. // implementation 'com.google.android.gms:play-services-ads:21.3.0'
  46. // implementation 'com.pangle.cn:ads-sdk-pro:4.8.0.8'
  47. // implementation "com.gromore.cn:gromore-sdk:3.7.0.3"
  48. // implementation "com.gromore.cn:pangle-adapter:4.8.0.8.2"
  49. //mintegral
  50. // api("com.mbridge.msdk.support:videojs:16.2.27")
  51. // api("com.mbridge.msdk.support:mbjscommon:16.2.27")
  52. // api("com.mbridge.msdk.support:playercommon:16.2.27")
  53. // api("com.mbridge.msdk.support:reward:16.2.27")
  54. // api("com.mbridge.msdk.support:videocommon:16.2.27")
  55. // api("com.mbridge.msdk.support:chinasame:16.2.27")
  56. // api("com.mbridge.msdk.support:interstitialvideo:16.2.27")
  57. // api("com.mbridge.msdk.support:mbnative:16.2.27")
  58. // api("com.mbridge.msdk.support:nativeex:16.2.27")
  59. // api("com.mbridge.msdk.support:mbnativeadvanced:16.2.27")
  60. // api("com.mbridge.msdk.support:interstitial:16.2.27")
  61. // api("com.mbridge.msdk.support:mbbanner:16.2.27")
  62. // api("com.mbridge.msdk.support:mbsplash:16.2.27")
  63. // api("com.mbridge.msdk.support:mbbid:16.2.27")
  64. // api("com.mbridge.msdk.support:newinterstitial:16.2.27")
  65. implementation project(':lib_common')
  66. implementation project(':lib_ad_core')
  67. implementation project(':lib_ad_admob')
  68. implementation project(':lib_ad_csj')
  69. implementation project(':lib_ad_gromore')
  70. implementation project(':lib_pdf_base')
  71. //compose依赖
  72. implementation "androidx.compose.ui:ui:$compose_version"
  73. implementation 'androidx.compose.material3:material3:1.0.0-alpha01'
  74. implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
  75. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
  76. implementation 'androidx.activity:activity-compose:1.5.1'
  77. implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
  78. // compose 图片加载
  79. implementation("io.coil-kt:coil-compose:2.1.0")
  80. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  81. implementation "com.google.accompanist:accompanist-insets:0.23.1"
  82. implementation "com.google.accompanist:accompanist-insets-ui:0.23.1"
  83. implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1"
  84. implementation "androidx.navigation:navigation-compose:2.5.1"
  85. implementation "androidx.compose.runtime:runtime-livedata:1.2.0"
  86. implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1"
  87. implementation 'androidx.appcompat:appcompat:1.5.0'
  88. implementation 'com.google.android.material:material:1.6.1'
  89. testImplementation 'junit:junit:4.13.2'
  90. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  91. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  92. androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
  93. debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
  94. debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
  95. }