build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. id 'kotlin-android-extensions'
  5. id 'kotlin-kapt'
  6. }
  7. android {
  8. signingConfigs {
  9. debug {
  10. storeFile file('C:\\myFiles\\code\\androidProjects\\issp\\signature.jks')
  11. storePassword '123456'
  12. keyAlias 'isspt'
  13. keyPassword '123456'
  14. }
  15. }
  16. compileSdkVersion 30
  17. buildToolsVersion "30.0.2"
  18. defaultConfig {
  19. applicationId "com.doverfuelingsolutions.issp"
  20. minSdkVersion 22
  21. targetSdkVersion 26
  22. versionCode 23
  23. versionName "1.2.10"
  24. archivesBaseName = versionName + "." + getTime()
  25. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  26. ndk {
  27. // 设置支持的SO库架构
  28. abiFilters 'armeabi', 'armeabi-v7a' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
  29. }
  30. }
  31. buildFeatures {
  32. dataBinding true
  33. }
  34. buildTypes {
  35. debug {
  36. minifyEnabled false
  37. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. }
  39. release {
  40. minifyEnabled false
  41. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  42. }
  43. }
  44. compileOptions {
  45. sourceCompatibility JavaVersion.VERSION_1_8
  46. targetCompatibility JavaVersion.VERSION_1_8
  47. }
  48. kotlinOptions {
  49. jvmTarget = '1.8'
  50. }
  51. }
  52. dependencies {
  53. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  54. implementation 'androidx.core:core-ktx:1.3.2'
  55. implementation 'androidx.appcompat:appcompat:1.2.0'
  56. implementation 'com.google.android.material:material:1.2.1'
  57. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  58. implementation 'androidx.preference:preference-ktx:1.1.1'
  59. testImplementation 'junit:junit:4.+'
  60. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  61. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  62. implementation project(':waynelib_')
  63. implementation project(':libserial')
  64. def retrofitVersion = '2.9.0'
  65. implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
  66. implementation "com.squareup.okio:okio:$retrofitVersion"
  67. implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
  68. def coroutineVersion = '1.4.2'
  69. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion"
  70. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion"
  71. def lifecycleVersion = '2.2.0'
  72. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
  73. implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
  74. implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
  75. def work_version = "2.4.0"
  76. implementation "androidx.work:work-runtime-ktx:$work_version"
  77. implementation 'androidx.startup:startup-runtime:1.0.0'
  78. implementation 'com.youth.banner:banner:2.1.0'
  79. def refresh_version = '2.0.1'
  80. implementation "com.scwang.smart:refresh-layout-kernel:$refresh_version"
  81. implementation "com.scwang.smart:refresh-header-classics:$refresh_version"
  82. implementation 'com.hjq:toast:8.8'
  83. implementation 'com.moos:Material-ProgressView:1.0.6'
  84. implementation 'com.tencent.bugly:crashreport_upgrade:1.5.0'
  85. implementation 'com.tencent.bugly:nativecrashreport:3.7.700'
  86. def leakcanaryVersion = '1.6.3'
  87. debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanaryVersion"
  88. releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanaryVersion"
  89. //zxing 二维码相关
  90. // implementation 'com.google.zxing:core:3.3.0'
  91. implementation 'com.google.zxing:android-core:3.3.0'
  92. implementation 'com.blankj:utilcode:1.29.0'
  93. }
  94. static String getTime() {
  95. return new Date().format("yyyyMMddHHmmss")
  96. }