build.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. id 'kotlin-android-extensions'
  5. id 'kotlin-kapt'
  6. }
  7. android {
  8. compileSdkVersion 30
  9. buildToolsVersion "30.0.2"
  10. defaultConfig {
  11. applicationId "com.doverfuelingsolutions.issp"
  12. minSdkVersion 25
  13. targetSdkVersion 30
  14. versionCode 1
  15. versionName "1.0.0"
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. }
  18. buildFeatures {
  19. dataBinding true
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. kotlinOptions {
  32. jvmTarget = '1.8'
  33. }
  34. }
  35. dependencies {
  36. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  37. implementation 'androidx.core:core-ktx:1.3.2'
  38. implementation 'androidx.appcompat:appcompat:1.2.0'
  39. implementation 'com.google.android.material:material:1.2.1'
  40. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  41. implementation 'androidx.preference:preference-ktx:1.1.1'
  42. testImplementation 'junit:junit:4.+'
  43. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  44. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  45. implementation project(':waynelib_')
  46. implementation project(':libserial')
  47. def retrofitVersion = '2.9.0'
  48. implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
  49. implementation "com.squareup.okio:okio:$retrofitVersion"
  50. implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
  51. def coroutineVersion = '1.4.2'
  52. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion"
  53. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion"
  54. def lifecycleVersion = '2.2.0'
  55. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
  56. implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
  57. implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
  58. def work_version = "2.4.0"
  59. implementation "androidx.work:work-runtime-ktx:$work_version"
  60. implementation 'androidx.startup:startup-runtime:1.0.0'
  61. implementation 'com.youth.banner:banner:2.1.0'
  62. def refresh_version = '2.0.1'
  63. implementation "com.scwang.smart:refresh-layout-kernel:$refresh_version"
  64. implementation "com.scwang.smart:refresh-header-classics:$refresh_version"
  65. implementation 'com.hjq:toast:8.8'
  66. }