build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion env.compileSdkVersion
  7. buildToolsVersion env.buildToolsVersion
  8. defaultConfig {
  9. applicationId env.applicationId
  10. minSdkVersion env.minSdkVersion
  11. targetSdkVersion env.targetSdkVersion
  12. versionCode env.versionCode
  13. versionName env.versionName
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. ndk {
  16. abiFilters "armeabi-v7a"/*, "arm64-v8a", "x86"*/
  17. }
  18. }
  19. signingConfigs {
  20. signing {
  21. keyAlias 'winds'
  22. keyPassword '039468'
  23. storeFile file('../config/winds.jks')
  24. storePassword '039468'
  25. }
  26. }
  27. buildTypes {
  28. debug {
  29. minifyEnabled false
  30. multiDexEnabled true
  31. signingConfig signingConfigs.signing
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. }
  34. release {
  35. minifyEnabled true
  36. multiDexEnabled true
  37. signingConfig signingConfigs.signing
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. compileOptions {
  42. sourceCompatibility env.jdk_version
  43. targetCompatibility env.jdk_version
  44. }
  45. kotlinOptions {
  46. jvmTarget = '1.8'
  47. }
  48. kotlin {
  49. experimental {
  50. coroutines 'enable'
  51. }
  52. }
  53. viewBinding {
  54. enabled = true
  55. }
  56. repositories {
  57. flatDir {
  58. dirs 'libs'
  59. }
  60. }
  61. applicationVariants.all { variant ->
  62. // variant.getPackageApplication().outputDirectory = new File("${rootDir.absolutePath}/Apk")
  63. variant.outputs.all {
  64. def buildType = variant.buildType.name
  65. def buildTime = new Date().format("yyyyMMddHHmm", TimeZone.getDefault())
  66. outputFileName = "Eboard_${buildType}_v${variant.versionCode}_${variant.versionName}_${buildTime}.apk"
  67. }
  68. }
  69. }
  70. dependencies {
  71. implementation fileTree(dir: 'libs', include: ['*.jar'])
  72. implementation project(':HttpCoreLibrary')
  73. implementation project(':RcCore')
  74. implementation dep.kotlinStdlib
  75. implementation dep.androidxCoreKtx
  76. implementation dep.androidxAppCompat
  77. implementation dep.androidxConstraintlayout
  78. implementation dep.androidMaterial
  79. implementation dep.androidxLocalbroadcastmanager
  80. implementation dep.rxpermissions
  81. implementation dep.androidxSwipeRefreshLayout
  82. implementation dep.RecyclerViewAdapterHelper
  83. implementation dep.glide
  84. implementation dep.kotlinxCoroutinesCore
  85. implementation dep.kotlinxCoroutinesAndroid
  86. implementation dep.androidMultidex
  87. implementation dep.buglySDK
  88. implementation dep.buglyNDK
  89. implementation dep.mqttv3
  90. implementation dep.eventbus
  91. implementation dep.bgaZxing
  92. implementation 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar'
  93. // CameraX core library using the camera2 implementation
  94. def camerax_version = "1.0.1"
  95. // The following line is optional, as the core library is included indirectly by camera-camera2
  96. implementation "androidx.camera:camera-core:${camerax_version}"
  97. implementation "androidx.camera:camera-camera2:${camerax_version}"
  98. // If you want to additionally use the CameraX Lifecycle library
  99. implementation "androidx.camera:camera-lifecycle:${camerax_version}"
  100. // If you want to additionally use the CameraX View class
  101. implementation "androidx.camera:camera-view:1.0.0-alpha20"
  102. // If you want to additionally use the CameraX Extensions library
  103. implementation "androidx.camera:camera-extensions:1.0.0-alpha20"
  104. implementation 'com.github.NodeMedia:NodeMediaClient-Android:2.9.23'
  105. implementation(name: 'facedetector-1.0.0', ext: 'aar')
  106. implementation 'io.fotoapparat:fotoapparat:2.7.0'
  107. // implementation 'com.squareup.leakcanary:leakcanary-android:1.5.1'
  108. }