build.gradle 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id("com.google.devtools.ksp") version "1.9.10-1.0.13"//引入ksp插件
  5. id 'org.jetbrains.kotlin.kapt'
  6. }
  7. android {
  8. namespace 'com.adealink.frame'
  9. compileSdk libs.versions.compileSdk.get().toInteger()
  10. defaultConfig {
  11. // applicationId "com.partyjoy.weparty"
  12. minSdk libs.versions.minSdk.get().toInteger()
  13. targetSdk libs.versions.targetSdk.get().toInteger()
  14. versionCode 1
  15. versionName "1.0"
  16. multiDexEnabled true
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. consumerProguardFiles "consumer-rules.pro"
  19. }
  20. packagingOptions {
  21. pickFirst 'META-INF/INDEX.LIST'
  22. pickFirst 'META-INF/DEPENDENCIES'
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. compileOptions {
  31. targetCompatibility JavaVersion.VERSION_17
  32. sourceCompatibility JavaVersion.VERSION_17
  33. coreLibraryDesugaringEnabled true
  34. }
  35. kotlinOptions {
  36. jvmTarget = JavaVersion.VERSION_17.majorVersion
  37. }
  38. buildFeatures {
  39. viewBinding true
  40. }
  41. lintOptions {
  42. abortOnError false
  43. }
  44. configurations.configureEach {
  45. exclude group: 'com.facebook.fresco', module: 'drawee'
  46. }
  47. // configurations.configureEach {
  48. // exclude group: 'com.google.code.gson', module: 'gson'
  49. // }
  50. }
  51. dependencies {
  52. api fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
  53. //kotlin
  54. implementation libs.kotlin.stdlib
  55. coreLibraryDesugaring libs.desugar.jdk.libs
  56. //androidx
  57. implementation libs.androidx.core
  58. implementation libs.androidx.core.ktx
  59. implementation libs.androidx.appcompat
  60. // android
  61. implementation libs.android.material
  62. implementation project(":frame:zero")
  63. implementation project(":frame:base")
  64. implementation project(":frame:aab")
  65. implementation project(":frame:oss")
  66. implementation project(":frame:coroutine")
  67. implementation project(":frame:debug")
  68. implementation project(":frame:deviceid")
  69. implementation project(":frame:network")
  70. implementation project(":frame:sound")
  71. implementation project(":frame:statistics")
  72. implementation project(":frame:log")
  73. implementation project(":frame:storage")
  74. implementation project(":frame:util")
  75. implementation project(":frame:download")
  76. implementation project(":frame:effect")
  77. implementation project(":frame:mvvm")
  78. implementation project(":frame:data")
  79. implementation project(":frame:googleservice")
  80. implementation project(":frame:guide")
  81. implementation project(":frame:security")
  82. implementation project(":frame:spi")
  83. implementation project(":frame:game")
  84. implementation project(":frame:image")
  85. implementation project(":frame:apm")
  86. implementation project(":frame:asr")
  87. implementation project(":frame:audio")
  88. implementation project(":frame:crash")
  89. implementation project(":frame:dot")
  90. implementation project(":frame:locale")
  91. implementation project(":frame:push")
  92. implementation project(":frame:tceffect")
  93. implementation project(":frame:media")
  94. implementation project(":frame:agorartc")
  95. implementation project(":frame:trtc")
  96. implementation project(":frame:volcrtc")
  97. implementation project(":frame:zegortc")
  98. implementation project(":frame:room")
  99. implementation project(":frame:share")
  100. implementation project(":frame:startup")
  101. implementation project(":frame:effectpreview")
  102. implementation project(':frame:router:router-annotation')
  103. implementation project(':frame:router:router-api')
  104. kapt project(':frame:router:router-compiler')
  105. implementation project(':frame:cachebean:cache-bean-annotation')
  106. implementation project(':frame:cachebean:cache-bean-api')
  107. ksp project(':frame:cachebean:cache-bean-complier')
  108. implementation libs.androidx.room.runtime
  109. implementation libs.androidx.room.ktx
  110. kapt libs.androidx.room.compiler
  111. implementation project(":external:libcocos2dx")
  112. implementation project(":external:retrofit")
  113. implementation project(":external:SVGAPlayer")
  114. implementation project(":external:animplayer")
  115. implementation project(":external:drawee")
  116. implementation project(":external:AndroidAutoSize")
  117. implementation project(":external:tcturing")
  118. //test
  119. testImplementation libs.junit
  120. androidTestImplementation libs.androidx.junit
  121. androidTestImplementation libs.androidx.espresso.core
  122. }