build.gradle 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.ext.android.compileSdkVersion
  4. defaultConfig {
  5. minSdkVersion rootProject.ext.android.minSdkVersion
  6. targetSdkVersion rootProject.ext.android.targetSdkVersion
  7. versionCode rootProject.ext.android.versionCode
  8. versionName rootProject.ext.android.versionName
  9. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  10. ndk {
  11. abiFilters "armeabi-v7a", "arm64-v8a"
  12. }
  13. javaCompileOptions {
  14. annotationProcessorOptions {
  15. arguments = [AROUTER_MODULE_NAME: project.getName()]
  16. includeCompileClasspath = true
  17. }
  18. }
  19. multiDexEnabled true
  20. flavorDimensions "app"//多渠道打包维度不同问题
  21. }
  22. sourceSets {
  23. main {
  24. jniLibs.srcDirs = ['libs']
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. buildTypes {
  32. release {
  33. minifyEnabled true
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. }
  37. sourceSets {
  38. main {
  39. //控制两种模式下的资源和代码配置情况
  40. manifest.srcFile 'src/main/AndroidManifest.xml'
  41. //集成开发模式下排除debug文件夹中的所有Java文件
  42. java {
  43. exclude 'debug/**'
  44. }
  45. jniLibs.srcDirs = ['libs']
  46. }
  47. }
  48. buildFeatures{
  49. viewBinding = true
  50. }
  51. }
  52. dependencies {
  53. api fileTree(dir: 'libs', include: ['*.jar'])
  54. implementation 'androidx.appcompat:appcompat:1.1.0'
  55. implementation 'com.google.android.material:material:1.4.0'
  56. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  57. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  58. testImplementation 'junit:junit:4.12'
  59. androidTestImplementation 'androidx.test:runner:1.2.0'
  60. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  61. implementation 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha04'
  62. implementation 'androidx.lifecycle:lifecycle-viewmodel:2.1.0-alpha04'
  63. implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
  64. implementation 'com.github.duty-os:white-sdk-android:2.11.2'
  65. api project(path: ':rong_im:kit')
  66. api project(path: ':rong_im:live')
  67. api project(path: ':rong_im:sight')
  68. implementation project(path: ':usercenter')
  69. implementation project(path: ':BaseLibrary')
  70. implementation 'com.h6ah4i.android.widget.verticalseekbar:verticalseekbar:1.0.0'
  71. }