build.gradle 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 28
  6. defaultConfig {
  7. applicationId "com.makeit.callservice"
  8. minSdkVersion 21
  9. targetSdkVersion 28
  10. versionCode 5
  11. versionName "1.0.5"
  12. ndk {
  13. // 设置支持的SO库架构
  14. abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'//'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
  15. }
  16. multiDexEnabled = true
  17. }
  18. android.applicationVariants.all { variant ->
  19. variant.outputs.all {
  20. def releaseTime = new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
  21. outputFileName = "医院呼叫机V" + defaultConfig.versionName + "_" + releaseTime + ".apk"
  22. // output.outputFile = new File(file.parent, filename)
  23. }
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  29. }
  30. debug {
  31. minifyEnabled false
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. }
  34. }
  35. compileOptions {
  36. sourceCompatibility JavaVersion.VERSION_1_8
  37. targetCompatibility JavaVersion.VERSION_1_8
  38. }
  39. sourceSets {
  40. main {
  41. jniLibs.srcDirs = ['libs']
  42. }
  43. }
  44. buildToolsVersion '28.0.3'
  45. }
  46. dependencies {
  47. implementation fileTree(exclude: '*.zip', dir: 'libs')
  48. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  49. implementation 'androidx.leanback:leanback:1.0.0'
  50. implementation 'androidx.appcompat:appcompat:1.0.2'
  51. implementation 'com.github.bumptech.glide:glide:3.8.0'
  52. implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
  53. implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
  54. implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
  55. implementation 'com.squareup.okhttp3:okhttp:3.14.4'
  56. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  57. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  58. implementation 'com.squareup.retrofit2:retrofit:2.4.0'
  59. implementation 'com.github.NaikSoftware:StompProtocolAndroid:1.6.4'
  60. implementation 'org.java-websocket:Java-WebSocket:1.3.0'
  61. api "com.tencent.bugly:crashreport_upgrade:1.3.3"
  62. api "org.greenrobot:eventbus:3.1.1"
  63. api 'com.android.support:multidex:1.0.3'
  64. }