build.gradle 3.0 KB

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