build.gradle 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. namespace 'com.pan_american.android'
  7. compileSdk 33
  8. buildFeatures {
  9. viewBinding true
  10. }
  11. defaultConfig {
  12. applicationId "com.pan_american.android"
  13. minSdk 24
  14. targetSdk 33
  15. versionCode 6
  16. versionName "1.0.5"
  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.9.0'
  49. implementation 'androidx.appcompat:appcompat:1.6.1'
  50. implementation 'com.google.android.material:material:1.8.0'
  51. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  52. implementation 'androidx.recyclerview:recyclerview:1.3.1'
  53. testImplementation 'junit:junit:4.13.2'
  54. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  55. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  56. //底部导航栏实现
  57. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  58. implementation 'androidx.recyclerview:recyclerview:1.3.1'
  59. //日历组件
  60. implementation 'com.haibin:calendarview:3.7.1'
  61. //Retrofit2
  62. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  63. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  64. //SmartRefreshLayout
  65. implementation 'io.github.scwang90:refresh-layout-kernel:2.1.0'
  66. implementation 'io.github.scwang90:refresh-header-classics:2.1.0' //经典刷新头
  67. implementation 'io.github.scwang90:refresh-footer-classics:2.1.0' //经典加载
  68. //EventBus
  69. implementation 'org.greenrobot:eventbus:3.3.1'
  70. //SignalR
  71. implementation 'com.microsoft.signalr:signalr:1.0.0'
  72. //表格组件
  73. implementation 'com.github.huangyanbin:SmartTable:2.2.0'
  74. //扇形图组件
  75. implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  76. }