build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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_17
  40. targetCompatibility JavaVersion.VERSION_17
  41. }
  42. kotlinOptions {
  43. jvmTarget = "17"
  44. }
  45. }
  46. dependencies {
  47. implementation fileTree(dir: 'libs', include: ['*.jar'])
  48. implementation 'com.android.tools:r8:8.3.37'
  49. implementation 'androidx.core:core-ktx:1.13.1'
  50. implementation 'androidx.appcompat:appcompat:1.7.0'
  51. implementation 'com.google.android.material:material:1.10.0'
  52. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  53. implementation 'androidx.recyclerview:recyclerview:1.3.1'
  54. implementation 'androidx.activity:activity:1.9.0'
  55. testImplementation 'junit:junit:4.13.2'
  56. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  57. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  58. //底部导航栏实现
  59. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  60. implementation 'androidx.recyclerview:recyclerview:1.3.1'
  61. //日历组件
  62. implementation 'com.haibin:calendarview:3.7.1'
  63. //Retrofit2
  64. implementation 'com.squareup.retrofit2:retrofit:2.11.0'
  65. implementation 'com.squareup.retrofit2:converter-gson:2.11.0'
  66. //SmartRefreshLayout
  67. implementation 'io.github.scwang90:refresh-layout-kernel:2.1.0'
  68. implementation 'io.github.scwang90:refresh-header-classics:2.1.0' //经典刷新头
  69. implementation 'io.github.scwang90:refresh-footer-classics:2.1.0' //经典加载
  70. //EventBus
  71. implementation 'org.greenrobot:eventbus:3.3.1'
  72. //SignalR
  73. implementation 'com.microsoft.signalr:signalr:1.0.0'
  74. //表格组件
  75. implementation 'com.github.huangyanbin:SmartTable:2.2.0'
  76. //扇形图组件
  77. implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  78. //url/uri 图片展示组件
  79. implementation 'com.squareup.picasso:picasso:2.8'
  80. //图片选择框架
  81. implementation 'io.github.leavesczy:matisse:2.1.0'
  82. //地图API
  83. }