build.gradle 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion rootProject.ext.android.compileSdkVersion
  4. defaultConfig {
  5. applicationId rootProject.ext.android.applicationId
  6. minSdkVersion 21
  7. targetSdkVersion rootProject.ext.android.targetSdkVersion
  8. versionCode rootProject.ext.android.versionCode
  9. versionName rootProject.ext.android.versionName
  10. multiDexEnabled true
  11. ndk {
  12. abiFilters "armeabi-v7a", "arm64-v8a","armeabi"
  13. }
  14. packagingOptions{
  15. doNotStrip "/armeabi-v7a/.so"
  16. doNotStrip "/arm64-v8a/.so" }
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled true
  21. zipAlignEnabled true
  22. //移除无用资源
  23. shrinkResources false
  24. signingConfig signingConfigs.debug
  25. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  26. }
  27. debug {
  28. minifyEnabled false
  29. zipAlignEnabled true
  30. //移除无用资源
  31. shrinkResources false
  32. signingConfig signingConfigs.debug
  33. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  34. }
  35. }
  36. dataBinding {
  37. enabled true
  38. }
  39. lintOptions {
  40. checkReleaseBuilds false
  41. abortOnError false
  42. }
  43. compileOptions {
  44. sourceCompatibility JavaVersion.VERSION_1_8
  45. targetCompatibility JavaVersion.VERSION_1_8
  46. }
  47. configurations.all {
  48. resolutionStrategy {
  49. force 'androidx.core:core-ktx:1.6.0'
  50. force 'androidx.core:core:1.6.0'
  51. force 'androidx.appcompat:appcompat:1.2.0'
  52. force "androidx.activity:activity:1.3.1"
  53. force "androidx.fragment:fragment:1.3.1"
  54. }
  55. }
  56. sourceSets {
  57. main {
  58. jniLibs.srcDirs=['libs']
  59. }
  60. }
  61. signingConfigs {
  62. debug {
  63. storeFile file('keystore.jks')
  64. storePassword "123456"
  65. keyAlias "keystore"
  66. keyPassword "123456"
  67. }
  68. }
  69. }
  70. dependencies {
  71. implementation fileTree(include: ['*.jar'], dir: 'libs')
  72. //support
  73. implementation rootProject.ext.support["design"]
  74. //下拉刷新,上拉加载
  75. implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
  76. //底部tabBar
  77. implementation('me.majiajie:pager-bottom-tab-strip:2.2.5') {
  78. exclude group: 'com.android.support'
  79. }
  80. //MVVMHabit
  81. implementation project(':mvvmhabit')
  82. implementation project(':ocr_ui')
  83. implementation files('libs/ocrsdk.aar')
  84. implementation files('libs/faceplatform-ui-release-6.1.aar')
  85. implementation files('libs/lib-logic-1.0.3-release.aar')
  86. implementation files('libs/WbCloudFaceLiveSdk-v4.4.1.2-1f740b1e.aar')
  87. //2. 云common SDK
  88. implementation files('libs/WbCloudNormal-v5.1.0-f9eb035.aar')
  89. implementation files('libs/LiteAVSDK_Professional_9.5.11207.aar')
  90. implementation files('libs/lib-LiantianStaticLiteAes-3.6.0.4-release.aar')
  91. implementation 'androidx.appcompat:appcompat:1.2.0'
  92. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  93. implementation project(path: ':selector')
  94. // implementation rootProject.ext.dependencies.MVVMHabit
  95. //内存泄漏测试
  96. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
  97. // debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
  98. implementation 'com.google.android.exoplayer:exoplayer-core:2.10.5'
  99. implementation 'com.google.android.exoplayer:exoplayer-ui:2.10.5'
  100. implementation 'com.contrarywind:Android-PickerView:3.2.5'
  101. implementation 'com.github.mcxtzhang:SwipeDelMenuLayout:V1.2.5'
  102. implementation files('libs\\IPlaySDK.jar')
  103. }