build.gradle 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. dependencies {
  62. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  63. implementation project(path: ':core')
  64. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  65. implementation 'com.android.support:appcompat-v7:28.0.0'
  66. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  67. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  68. implementation 'androidx.appcompat:appcompat:1.3.0'
  69. implementation 'com.google.android.material:material:1.3.0'
  70. implementation 'tp.xmaihh:serialport:2.1'
  71. implementation 'com.rabbitmq:amqp-client:5.15.0'
  72. implementation 'com.github.weidongjian:androidWheelView:1.0.0'
  73. // 声网
  74. implementation 'io.agora.rtc:full-sdk:4.2.3'
  75. //毛玻璃
  76. implementation 'com.github.centerzx:ShapeBlurView:1.0.5'
  77. // implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
  78. // implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
  79. //
  80. // implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
  81. // implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
  82. // implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
  83. // implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
  84. //
  85. // implementation 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.8'
  86. implementation 'com.github.leifzhang:IjkLib:0.4.3'
  87. // json 动画
  88. implementation 'com.airbnb.android:lottie:3.4.0'
  89. // 视频缓存
  90. implementation 'com.danikula:videocache:2.7.1'
  91. //eventbus
  92. implementation 'org.greenrobot:eventbus:3.1.1'
  93. implementation 'androidx.room:room-runtime:2.2.3'
  94. // annotationProcessor "androidx.room:room-compiler:2.2.3"
  95. kapt "androidx.room:room-compiler:2.2.3"
  96. implementation("com.android.billingclient:billing:6.2.0")
  97. // implementation("com.android.billingclient:billing-ktx:6.2.0")
  98. }