build.gradle 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. // id 'kotlin-parcelize'
  5. id 'kotlin-android'
  6. // id 'kotlin-android-extensions'
  7. }
  8. apply plugin: 'kotlin-kapt'
  9. apply plugin: 'kotlin-android-extensions'
  10. kapt {
  11. arguments {
  12. arg("AROUTER_MODULE_NAME", project.getName())
  13. }
  14. }
  15. android {
  16. compileSdkVersion rootProject.ext.android['compileSdkVersion']
  17. defaultConfig {
  18. minSdkVersion rootProject.ext.android.minSdkVersion
  19. targetSdkVersion rootProject.ext.android.targetSdkVersion
  20. versionCode rootProject.ext.android.versionCode
  21. versionName rootProject.ext.android.versionName
  22. ndk {
  23. abiFilters "armeabi-v7a", "arm64-v8a"
  24. }
  25. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. preRelease {
  33. minifyEnabled false
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. sourceSets {
  42. main {
  43. jniLibs.srcDirs = ['libs']
  44. }
  45. }
  46. buildFeatures {
  47. viewBinding = true
  48. }
  49. }
  50. dependencies {
  51. api fileTree(dir: 'libs', include: ['*.jar'])
  52. implementation 'androidx.appcompat:appcompat:1.3.0'
  53. implementation 'com.google.android.material:material:1.4.0'
  54. testImplementation 'junit:junit:4.13.2'
  55. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  56. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  57. implementation project(':BaseLibrary')
  58. implementation project(':usercenter')
  59. implementation project(':chatModule')
  60. //ARouter
  61. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  62. implementation 'com.alibaba:arouter-api:1.5.2'
  63. kapt 'com.alibaba:arouter-compiler:1.5.2'
  64. compileOnly files('libs/emoji-ios-release.aar')
  65. compileOnly files('libs/emoji-release.aar')
  66. api 'com.tencent.liteav:LiteAVSDK_Professional:11.7.0.13910'
  67. }