build.gradle 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion target_sdk_version
  4. buildToolsVersion build_tools_version
  5. defaultConfig {
  6. minSdkVersion min_sdk_version
  7. targetSdkVersion target_sdk_version
  8. versionCode app_version_code
  9. versionName app_version
  10. compileOptions {
  11. sourceCompatibility JavaVersion.VERSION_1_8
  12. targetCompatibility JavaVersion.VERSION_1_8
  13. }
  14. vectorDrawables.useSupportLibrary = true
  15. //ndk {
  16. // 设置支持的SO库架构
  17. // abiFilters 'armeabi-v7a', 'x86'//, 'arm64-v8a'
  18. //}
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  24. }
  25. debug {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. }
  31. dependencies {
  32. implementation fileTree(include: ['*.jar'], dir: 'libs')
  33. //implementation 'androidx.appcompat:appcompat:1.2.0'
  34. //implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  35. //implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  36. //implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  37. // navigation
  38. //implementation 'androidx.navigation:navigation-fragment:2.3.0'
  39. //implementation 'androidx.navigation:navigation-ui:2.3.0'
  40. //implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  41. implementation 'com.google.android.material:material:1.1.0'
  42. /**
  43. * Android基础依赖库
  44. */
  45. implementation "com.android.support:design:$support_library_version"
  46. implementation "com.android.support:support-v4:$support_library_version"
  47. implementation "com.android.support:cardview-v7:$support_library_version"
  48. implementation "com.android.support:appcompat-v7:$support_library_version"
  49. implementation "com.android.support.constraint:constraint-layout:1.1.0-beta5"
  50. implementation "com.android.support:support-vector-drawable:26.1.0"
  51. implementation "android.arch.lifecycle:extensions:1.0.0-alpha4"
  52. // 内存泄漏检测
  53. debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.1'
  54. implementation project(path: ':rtc-chat')
  55. // java
  56. implementation 'org.java-websocket:Java-WebSocket:1.4.0'
  57. compile 'com.alibaba:fastjson:1.2.23'
  58. //强大的弹窗库
  59. implementation 'com.lxj:xpopup:2.2.0'
  60. //eventbus
  61. //compile 'org.greenrobot:eventbus:3.1.1'
  62. compile 'com.blankj:utilcodex:1.30.5'
  63. compile project(':middleware')
  64. //通知提示弹出库
  65. api 'com.tapadoo.android:alerter:6.2.1'
  66. }