build.gradle 3.1 KB

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