build.gradle 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdk 34
  7. defaultConfig {
  8. applicationId "com.dlc.eboard"
  9. minSdkVersion 21
  10. targetSdkVersion 34
  11. versionCode 12
  12. versionName "1.1.2-alpha-kuangda"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. ndk {
  15. abiFilters "armeabi-v7a"/*, "arm64-v8a", "x86"*/
  16. }
  17. }
  18. signingConfigs {
  19. signing {
  20. keyAlias 'winds'
  21. keyPassword '039468'
  22. storeFile file('../config/winds.jks')
  23. storePassword '039468'
  24. }
  25. }
  26. buildTypes {
  27. debug {
  28. minifyEnabled false
  29. multiDexEnabled true
  30. signingConfig signingConfigs.signing
  31. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  32. }
  33. release {
  34. // minifyEnabled true
  35. // multiDexEnabled true
  36. // signingConfig signingConfigs.signing
  37. // proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. }
  39. }
  40. compileOptions {
  41. sourceCompatibility JavaVersion.VERSION_1_8
  42. targetCompatibility JavaVersion.VERSION_1_8
  43. }
  44. kotlinOptions {
  45. jvmTarget = '1.8'
  46. }
  47. // kotlin {
  48. // experimental {
  49. // coroutines 'enable'
  50. // }
  51. // }
  52. viewBinding {
  53. enabled = true
  54. }
  55. repositories {
  56. flatDir {
  57. dirs 'libs'
  58. }
  59. }
  60. namespace 'com.dlc.eboard'
  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}release.apk"
  67. }
  68. }
  69. }
  70. dependencies {
  71. implementation fileTree(dir: 'libs', include: ['*.jar'])
  72. implementation project(':HttpCoreLibrary')
  73. implementation project(':RcCore')
  74. implementation "org.jetbrains.kotlin:kotlin-stdlib:1.9.0"
  75. implementation "androidx.core:core-ktx:1.3.1"
  76. implementation "androidx.appcompat:appcompat:1.2.0"
  77. implementation "androidx.constraintlayout:constraintlayout:2.0.1"
  78. implementation "com.google.android.material:material:1.2.1"
  79. implementation "androidx.localbroadcastmanager:localbroadcastmanager:1.0.0"
  80. implementation "com.github.tbruyelle:rxpermissions:0.11"
  81. implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
  82. implementation "com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4"
  83. implementation "com.github.bumptech.glide:glide:4.11.0"
  84. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7"
  85. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.1"
  86. implementation "com.android.support:multidex:1.0.3"
  87. implementation "com.tencent.bugly:crashreport:3.4.4"
  88. implementation "com.tencent.bugly:nativecrashreport:3.9.2"
  89. implementation "org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0"
  90. implementation "org.greenrobot:eventbus:3.2.0"
  91. implementation "com.github.bingoogolapple.BGAQRCode-Android:zxing:1.3.8"
  92. implementation "com.joanzapata.pdfview:android-pdfview:1.0.4@aar"
  93. implementation 'androidx.activity:activity:1.8.0'
  94. implementation files('libs\\smdt.jar')
  95. // CameraX core library using the camera2 implementation
  96. def camerax_version = "1.4.0-rc01"
  97. // The following line is optional, as the core library is included indirectly by camera-camera2
  98. implementation "androidx.camera:camera-core:${camerax_version}"
  99. implementation "androidx.camera:camera-camera2:${camerax_version}"
  100. // If you want to additionally use the CameraX Lifecycle library
  101. implementation "androidx.camera:camera-lifecycle:${camerax_version}"
  102. // If you want to additionally use the CameraX VideoCapture library
  103. implementation "androidx.camera:camera-video:${camerax_version}"
  104. // If you want to additionally use the CameraX View class
  105. implementation "androidx.camera:camera-view:${camerax_version}"
  106. // If you want to additionally add CameraX ML Kit Vision Integration
  107. implementation "androidx.camera:camera-mlkit-vision:${camerax_version}"
  108. // If you want to additionally use the CameraX Extensions library
  109. implementation "androidx.camera:camera-extensions:${camerax_version}"
  110. // implementation "com.squareup.leakcanary:leakcanary-android:2.14"
  111. implementation "com.github.NodeMedia:NodeMediaClient-Android:2.9.23"
  112. implementation(name: 'facedetector-1.0.0', ext: 'aar')
  113. implementation 'io.fotoapparat:fotoapparat:2.7.0'
  114. implementation(name: 'flowlayout-1.0.0', ext: 'aar')
  115. implementation 'com.blankj:utilcodex:1.31.1'
  116. // implementation 'com.google.mlkit:face-detection:16.1.7'
  117. // implementation 'com.otaliastudios:cameraview:2.7.2'
  118. //公共库 (*必须)
  119. implementation 'com.github.jenly1314.MLKit:mlkit-common:2.2.1'
  120. //条码识别 (可选)
  121. implementation 'com.github.jenly1314.MLKit:mlkit-barcode-scanning:2.2.1'
  122. //人脸检测 (可选)
  123. implementation 'com.github.jenly1314.MLKit:mlkit-face-detection:2.2.1'
  124. }