build.gradle 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 29
  4. defaultConfig {
  5. applicationId "com.ifastore.maintain"
  6. minSdkVersion 21
  7. targetSdkVersion 23
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. ndk {
  12. abiFilters "armeabi"//可以适当补填其他
  13. }
  14. }
  15. sourceSets {
  16. main {
  17. jniLibs.srcDirs = ['libs']
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility 1.8
  22. targetCompatibility 1.8
  23. }
  24. repositories {
  25. flatDir {
  26. dirs 'libs'
  27. }
  28. maven { url 'https://repo.eclipse.org/content/repositories/paho-snapshots/' }
  29. }
  30. }
  31. dependencies {
  32. implementation fileTree(dir: "libs", include: ["*.jar"])
  33. implementation 'androidx.appcompat:appcompat:1.2.0'
  34. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  35. implementation 'com.google.android.material:material:1.2.0'
  36. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  37. implementation 'androidx.navigation:navigation-fragment:2.1.0'
  38. implementation 'androidx.navigation:navigation-ui:2.1.0'
  39. implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
  40. testImplementation 'junit:junit:4.12'
  41. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  42. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  43. implementation 'de.hdodenhof:circleimageview:2.1.0'
  44. implementation 'com.jakewharton:butterknife:10.0.0'
  45. annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
  46. //flatbuffers 1.12.0
  47. // https://mvnrepository.com/artifact/com.google.flatbuffers/flatbuffers-java
  48. implementation group: 'com.google.flatbuffers', name: 'flatbuffers-java', version: '1.12.0'
  49. //viewmodel and livedata
  50. implementation "android.arch.lifecycle:extensions:1.1.1"
  51. annotationProcessor "android.arch.lifecycle:compiler:1.1.1"
  52. implementation 'com.squareup.retrofit2:retrofit:2.5.0'//导入retrofit
  53. implementation 'com.google.code.gson:gson:2.8.5'//Gson 库
  54. //retrofit日志拦截
  55. implementation 'com.squareup.okhttp3:logging-interceptor:3.13.1'
  56. implementation 'com.orhanobut:logger:2.1.0' // 打印日志
  57. //下面两个是RxJava 和 RxAndroid
  58. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  59. implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
  60. implementation 'com.squareup.retrofit2:converter-gson:2.5.0'//转换器,请求结果转换成Model
  61. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'//配合Rxjava 使用
  62. //room databases
  63. implementation "android.arch.persistence.room:runtime:1.1.1"
  64. annotationProcessor "android.arch.persistence.room:compiler:1.1.1"
  65. //loading view
  66. implementation project(':DialogUtilsLibrary')
  67. implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
  68. implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
  69. implementation 'com.github.inksnow:popuputils:1.0.9'
  70. //log
  71. /* implementation 'com.jakewharton.Timber:timber:4.7.1'
  72. implementation 'org.slf4j:slf4j-api:1.7.25'
  73. implementation 'com.github.tony19:logback-android:2.0.0'*/
  74. }