build.gradle 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'kotlin-kapt'
  5. android {
  6. compileSdkVersion versions.compileSdk
  7. buildToolsVersion versions.buildTools
  8. defaultConfig {
  9. applicationId apps.applicationId
  10. minSdkVersion versions.minSdk
  11. targetSdkVersion versions.targetSdk
  12. versionCode versions.versionCode
  13. versionName versions.versionName
  14. manifestPlaceholders = [
  15. APP_NAME: apps.applicationName,
  16. APP_ID : apps.applicationId,
  17. ]
  18. buildConfigField("String", "APP_Name", "\"" + apps.applicationName + "\"")
  19. flavorDimensions "versioncode"
  20. }
  21. buildTypes {
  22. debug {
  23. minifyEnabled false
  24. signingConfig signingConfigs.debug
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. }
  27. release {
  28. minifyEnabled false
  29. signingConfig signingConfigs.debug
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. }
  33. applicationVariants.configureEach { variant ->
  34. variant.outputs.configureEach { output ->
  35. if ("debug" != variant.buildType.name) {
  36. def now = new Date()
  37. def path = "../../../../../apks/${variant.buildType.name}/v${defaultConfig.versionName}_" + now.format("yyyy.MM.dd_HH")
  38. outputFileName = path + "/${applicationId}.apk"
  39. }
  40. }
  41. }
  42. signingConfigs {
  43. debug {
  44. keyAlias 'livechat'
  45. keyPassword '123456'
  46. storeFile file('key.jks')
  47. storePassword '123456'
  48. }
  49. releaseConfig {}
  50. }
  51. sourceSets {
  52. main {
  53. jniLibs.srcDirs = ['libs']
  54. }
  55. }
  56. androidExtensions {
  57. experimental = true
  58. }
  59. namespace 'com.xuqinmin.android.app'
  60. }
  61. configurations.all {
  62. resolutionStrategy {
  63. force "androidx.lifecycle:lifecycle-viewmodel:2.5.1"
  64. force "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1"
  65. }
  66. }
  67. dependencies {
  68. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  69. implementation project(path: ':core')
  70. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  71. implementation 'com.android.support:appcompat-v7:28.0.0'
  72. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  73. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  74. implementation 'androidx.appcompat:appcompat:1.3.0'
  75. implementation 'com.google.android.material:material:1.3.0'
  76. implementation 'tp.xmaihh:serialport:2.1'
  77. implementation 'com.rabbitmq:amqp-client:5.15.0'
  78. implementation 'com.github.weidongjian:androidWheelView:1.0.0'
  79. // 声网
  80. implementation 'io.agora.rtc:full-sdk:4.2.3'
  81. //毛玻璃
  82. implementation 'com.github.centerzx:ShapeBlurView:1.0.5'
  83. // implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
  84. // implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
  85. //
  86. // implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
  87. // implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
  88. // implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
  89. // implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
  90. //
  91. // implementation 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.8'
  92. implementation 'com.github.leifzhang:IjkLib:0.4.3'
  93. // json 动画
  94. implementation 'com.airbnb.android:lottie:3.4.0'
  95. // 视频缓存
  96. implementation 'com.danikula:videocache:2.7.1'
  97. //eventbus
  98. implementation 'org.greenrobot:eventbus:3.1.1'
  99. implementation 'androidx.room:room-runtime:2.2.3'
  100. // annotationProcessor "androidx.room:room-compiler:2.2.3"
  101. kapt "androidx.room:room-compiler:2.2.3"
  102. implementation("com.android.billingclient:billing:6.2.0")
  103. // implementation("com.android.billingclient:billing-ktx:6.2.0")
  104. implementation("com.google.android.gms:play-services-base:18.5.0")
  105. implementation("com.google.android.gms:play-services-auth:21.2.0")
  106. }