build.gradle 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. namespace 'com.pan_american.android'
  7. compileSdk 34
  8. buildFeatures {
  9. viewBinding true
  10. }
  11. defaultConfig {
  12. applicationId "com.pan_american.android"
  13. minSdk 24
  14. targetSdk 34
  15. versionCode 8
  16. versionName "1.0.7"
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. }
  19. signingConfigs {
  20. release {
  21. storeFile file('Pan-American KeyStore.jks')
  22. storePassword('PanAmerican')
  23. keyAlias('Pan-American')
  24. keyPassword('PanAmerican')
  25. }
  26. }
  27. buildTypes {
  28. release {
  29. //启用代码混淆
  30. // minifyEnabled true
  31. // 启用资源压缩
  32. // shrinkResources true
  33. //混淆规则配置文件
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. signingConfig signingConfigs.release
  36. }
  37. }
  38. compileOptions {
  39. sourceCompatibility JavaVersion.VERSION_1_8
  40. targetCompatibility JavaVersion.VERSION_1_8
  41. }
  42. kotlinOptions {
  43. jvmTarget = '1.8'
  44. }
  45. }
  46. dependencies {
  47. implementation 'com.android.tools:r8:8.3.37'
  48. implementation 'androidx.core:core-ktx:1.13.1'
  49. implementation 'androidx.appcompat:appcompat:1.7.0'
  50. implementation 'com.google.android.material:material:1.10.0'
  51. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  52. implementation 'androidx.recyclerview:recyclerview:1.3.1'
  53. implementation 'androidx.activity:activity:1.9.0'
  54. testImplementation 'junit:junit:4.13.2'
  55. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  56. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  57. //底部导航栏实现
  58. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  59. implementation 'androidx.recyclerview:recyclerview:1.3.1'
  60. //日历组件
  61. implementation 'com.haibin:calendarview:3.7.1'
  62. //Retrofit2
  63. implementation 'com.squareup.retrofit2:retrofit:2.11.0'
  64. implementation 'com.squareup.retrofit2:converter-gson:2.11.0'
  65. //SmartRefreshLayout
  66. implementation 'io.github.scwang90:refresh-layout-kernel:2.1.0'
  67. implementation 'io.github.scwang90:refresh-header-classics:2.1.0' //经典刷新头
  68. implementation 'io.github.scwang90:refresh-footer-classics:2.1.0' //经典加载
  69. //EventBus
  70. implementation 'org.greenrobot:eventbus:3.3.1'
  71. //SignalR
  72. implementation 'com.microsoft.signalr:signalr:1.0.0'
  73. //表格组件
  74. implementation 'com.github.huangyanbin:SmartTable:2.2.0'
  75. //扇形图组件
  76. implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  77. //url/uri 图片展示组件
  78. implementation 'com.squareup.picasso:picasso:2.8'
  79. //图片选择框架
  80. implementation 'io.github.leavesczy:matisse:2.1.0'
  81. }