build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.jetbrains.kotlin.android)
  4. }
  5. android {
  6. namespace 'com.grkj.iscs'
  7. compileSdk 34
  8. viewBinding.enabled = true
  9. dataBinding {
  10. enabled true
  11. }
  12. defaultConfig {
  13. applicationId "com.grkj.iscs"
  14. minSdk 24
  15. targetSdk 34
  16. versionCode 1
  17. versionName "1.0"
  18. multiDexEnabled true
  19. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  20. }
  21. //签名配置signingConfigs一定要在buildTypes前
  22. signingConfigs {
  23. release {
  24. storeFile file('../ISCS.jks')
  25. storePassword "iscs123456"
  26. keyAlias "iscs"
  27. keyPassword "iscs123456"
  28. }
  29. }
  30. buildTypes {
  31. release {
  32. release {
  33. minifyEnabled true // 混淆
  34. zipAlignEnabled true // 进行压缩优化
  35. shrinkResources true // 移除无用的resource文件
  36. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  37. signingConfig signingConfigs.release
  38. android.applicationVariants.all { variant ->
  39. variant.outputs.all {
  40. outputFileName = "ISCS_v${versionName}_${versionCode}.apk"
  41. }
  42. }
  43. }
  44. }
  45. }
  46. compileOptions {
  47. sourceCompatibility JavaVersion.VERSION_1_8
  48. targetCompatibility JavaVersion.VERSION_1_8
  49. }
  50. kotlinOptions {
  51. jvmTarget = '1.8'
  52. }
  53. }
  54. dependencies {
  55. implementation libs.androidx.core.ktx
  56. implementation libs.androidx.appcompat
  57. implementation libs.material
  58. implementation libs.androidx.activity
  59. implementation libs.androidx.constraintlayout
  60. testImplementation libs.junit
  61. androidTestImplementation libs.androidx.junit
  62. androidTestImplementation libs.androidx.espresso.core
  63. // implementation libs.mvvmhabit
  64. implementation libs.okhttps
  65. implementation libs.okhttps.stomp
  66. implementation libs.log.interceptor
  67. implementation libs.autosize
  68. implementation libs.fastble
  69. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  70. // RV通用Adapter https://github.com/hongyangAndroid/base-adapter
  71. implementation 'com.zhy:base-rvadapter:3.0.3'
  72. // 日志工具 https://github.com/orhanobut/logger
  73. implementation 'com.orhanobut:logger:2.2.0'
  74. implementation 'androidx.multidex:multidex:2.0.1'
  75. //https://github.com/googlesamples/easypermissions
  76. implementation 'pub.devrel:easypermissions:3.0.0'
  77. // https://github.com/scwang90/SmartRefreshLayout
  78. implementation 'androidx.appcompat:appcompat:1.7.0' //必须 1.0.0 以上
  79. implementation 'io.github.scwang90:refresh-layout-kernel:2.1.0' //核心必须依赖
  80. implementation 'io.github.scwang90:refresh-header-classics:2.1.0' //经典刷新头
  81. implementation 'androidx.recyclerview:recyclerview:1.3.0'
  82. implementation 'com.leon:lfilepickerlibrary:1.8.0'
  83. implementation 'com.github.jzmanu:MDatePickerSample:v1.0.5'
  84. }