build.gradle 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. namespace 'com.ethan.psbc'
  5. compileSdk libs.versions.compileSdk.get().toInteger()
  6. defaultConfig {
  7. applicationId "com.ethan.psbc"
  8. minSdk libs.versions.minSdk.get().toInteger()
  9. targetSdk libs.versions.compileSdk.get().toInteger()
  10. versionCode 50
  11. versionName "1.1.6"
  12. setProperty('archivesBaseName', "PSBC-$versionName-$versionCode-" + (new Date()).format('yyyyMMdd'))
  13. ndk { abiFilters "armeabi","x86","x86_64","armeabi-v7a","arm64-v8a" }
  14. }
  15. splits {
  16. abi {
  17. // enable true
  18. // reset()
  19. include "armeabi","x86","x86_64","armeabi-v7a","arm64-v8a"
  20. // universalApk false
  21. }
  22. }
  23. signingConfigs {
  24. release {
  25. storeFile file('..\\keystore\\psbc.jks')
  26. storePassword '123456'
  27. keyAlias 'psbc'
  28. keyPassword '123456'
  29. }
  30. debug{
  31. storeFile file('..\\keystore\\psbc.jks')
  32. storePassword '123456'
  33. keyAlias 'psbc'
  34. keyPassword '123456'
  35. }
  36. }
  37. buildTypes {
  38. release {
  39. signingConfig signingConfigs.release
  40. minifyEnabled false
  41. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  42. }
  43. debug {
  44. signingConfig signingConfigs.debug
  45. minifyEnabled false
  46. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  47. debuggable true
  48. testCoverageEnabled false
  49. }
  50. }
  51. compileOptions {
  52. sourceCompatibility JavaVersion.VERSION_1_8
  53. targetCompatibility JavaVersion.VERSION_1_8
  54. }
  55. kotlinOptions {
  56. jvmTarget = '1.8'
  57. }
  58. buildFeatures {
  59. viewBinding true
  60. dataBinding false
  61. buildConfig true
  62. }
  63. packagingOptions {
  64. exclude 'META-INF/*.txt'
  65. exclude 'META-INF/*.version'
  66. exclude 'META-INF/*.kotlin_module'
  67. exclude 'kotlin/*'
  68. exclude 'kotlin/**/*.kotlin_builtins'
  69. exclude 'androidsupportmultidexversion.txt'
  70. exclude 'okhttp3/**'
  71. exclude 'com/**'
  72. exclude 'org/**'
  73. exclude '/*.properties'
  74. exclude "DebugProbesKt.bin" // kotlin 协成调试
  75. exclude '/readme.md' // library pinyin
  76. exclude '/README.md' // library pinyin
  77. }
  78. }
  79. dependencies {
  80. implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
  81. // modules
  82. // android
  83. implementation libs.core.ktx
  84. implementation libs.appcompat
  85. implementation libs.material
  86. implementation libs.constraint.layout
  87. implementation libs.kotlin.extension
  88. implementation libs.background.library
  89. implementation libs.mpchart
  90. implementation libs.xpopup
  91. // implementation libs.richtext
  92. // implementation libs.richtext.html
  93. // bundles
  94. implementation libs.bundles.slf4j
  95. implementation libs.bundles.koin
  96. implementation libs.bundles.qmui
  97. implementation libs.bundles.okhttp
  98. implementation libs.bundles.retrofit
  99. implementation libs.bundles.rxjava
  100. // commons
  101. implementation libs.common.glide
  102. implementation libs.common.gson
  103. implementation libs.common.guava
  104. implementation libs.common.lang
  105. implementation libs.common.io
  106. implementation libs.common.zip
  107. implementation libs.common.joor
  108. implementation libs.common.lua
  109. implementation libs.common.hide
  110. implementation libs.common.live
  111. implementation libs.okhttp.download.api
  112. implementation libs.okhttp.download.factory
  113. // widgets
  114. implementation libs.widget.recycler
  115. //cameraX
  116. implementation libs.camera2
  117. implementation libs.camera.core
  118. implementation libs.camera.life
  119. implementation libs.camera.video
  120. implementation libs.camera.view
  121. implementation libs.camera.mlkit
  122. implementation libs.camera.ext
  123. // for debug
  124. // debugImplementation 'com.localebro:okhttpprofiler:1.0.8'
  125. // face
  126. implementation fileTree(dir: 'libs', include: ['CWFaceSDK.jar'])
  127. }