build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion "29.0.3"
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 29
  8. versionCode 1
  9. versionName "1.0"
  10. multiDexEnabled true
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. javaCompileOptions {
  13. annotationProcessorOptions {
  14. arguments = [AROUTER_MODULE_NAME: project.getName()]
  15. }
  16. }
  17. externalNativeBuild {
  18. cmake {
  19. cppFlags "-std=c++11"
  20. arguments "-DANDROID_STL=c++_static",
  21. "-DANDROID_PLATFORM=android-15",
  22. "-DANDROID_TOOLCHAIN=clang",
  23. "-DANDROID_STL_FORCE_FEATURES=OFF",
  24. "-DANDROID_ARM_NEON=TRUE"
  25. }
  26. }
  27. }
  28. buildTypes {
  29. release {
  30. minifyEnabled true
  31. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  32. }
  33. debug {
  34. minifyEnabled false
  35. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  36. }
  37. }
  38. sourceSets {
  39. main {
  40. jniLibs.srcDirs = ['libs']
  41. }
  42. }
  43. }
  44. repositories {
  45. flatDir {
  46. dirs 'libs', '../libs'
  47. }
  48. }
  49. allprojects {
  50. repositories {
  51. maven { url uri('../../repo') }
  52. }
  53. }
  54. dependencies {
  55. implementation fileTree(include: ['*.jar'], dir: 'libs')
  56. implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
  57. testImplementation 'junit:junit:4.12'
  58. androidTestImplementation 'androidx.test:runner:1.2.0'
  59. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  60. //声网
  61. implementation 'io.agora.rtc:full-sdk:3.6.0.1'
  62. //美颜
  63. api(name: 'ti-sdk', ext: 'aar')
  64. api files('libs/video-capture.aar')
  65. // api files('libs/LiteAVSDK_Professional_9.5.11171.aar')
  66. api "com.tencent.liteav.tuikit:tuicore:latest.release"
  67. api 'com.tencent.liteav:LiteAVSDK_Professional:11.9.0.14445'
  68. //轩嗵云,key
  69. api(name: 'XtKey3.1.1', ext: 'aar')
  70. }