build.gradle 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. apply plugin: 'com.android.application'
  2. def app_version_code = 1
  3. def app_version_name = '1.0.1'
  4. android {
  5. compileSdkVersion 29
  6. buildToolsVersion "29.0.2"
  7. defaultConfig {
  8. applicationId "com.ht.gate"
  9. minSdkVersion 24
  10. targetSdkVersion 29
  11. versionCode app_version_code
  12. versionName app_version_name
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. javaCompileOptions {
  15. annotationProcessorOptions {
  16. includeCompileClasspath true
  17. }
  18. }
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_8
  28. targetCompatibility JavaVersion.VERSION_1_8
  29. }
  30. android.applicationVariants.all {
  31. variant ->
  32. variant.outputs.all {
  33. outputFileName = "会议预定-${variant.variantData.variantConfiguration.buildType.name}-${app_version_name}(${app_version_code}).apk"
  34. }
  35. }
  36. }
  37. dependencies {
  38. implementation fileTree(dir: 'libs', include: ['*.jar'])
  39. implementation 'androidx.appcompat:appcompat:1.1.0'
  40. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  41. testImplementation 'junit:junit:4.12'
  42. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  43. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  44. implementation "android.arch.lifecycle:extensions:1.1.3"
  45. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  46. implementation 'com.jakewharton:butterknife:10.2.0'
  47. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.0'
  48. implementation 'org.greenrobot:eventbus:3.1.1'
  49. implementation 'com.github.GrenderG:Toasty:1.4.2'
  50. implementation 'io.reactivex.rxjava2:rxjava:2.2.16'
  51. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  52. implementation 'com.squareup.retrofit2:retrofit:2.7.1'
  53. implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
  54. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.1'
  55. implementation "com.squareup.okhttp3:okhttp:3.14.4"
  56. implementation "com.squareup.okhttp3:logging-interceptor:3.10.0"
  57. implementation 'org.projectlombok:lombok:1.16.8'
  58. implementation 'org.glassfish:javax.annotation:10.0-b28'
  59. implementation 'com.squareup.picasso:picasso:2.71828'
  60. implementation 'com.zy.mocknet:mocknet:1.0'
  61. implementation 'cat.ereza:customactivityoncrash:2.2.0'
  62. implementation 'org.xutils:xutils:3.8.3'
  63. implementation 'com.blankj:utilcodex:1.28.4'
  64. implementation 'com.liulishuo.filedownloader:library:1.7.7'
  65. implementation group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
  66. implementation 'com.liulishuo.okdownload:okdownload:1.0.7'
  67. }