build.gradle 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'realm-android'
  3. android {
  4. compileSdkVersion 26
  5. defaultConfig {
  6. applicationId "com.philisense.rdgo"
  7. minSdkVersion 21
  8. targetSdkVersion 26
  9. versionCode 39
  10. versionName "4.0"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. lintOptions {
  20. checkReleaseBuilds false
  21. abortOnError false
  22. }
  23. compileOptions {
  24. sourceCompatibility JavaVersion.VERSION_1_8
  25. targetCompatibility JavaVersion.VERSION_1_8
  26. }
  27. realm {
  28. syncEnabled = true;
  29. }
  30. // dataBinding 加入
  31. dataBinding {
  32. enabled = true
  33. }
  34. }
  35. dependencies {
  36. implementation fileTree(include: ['*.jar'], dir: 'libs')
  37. implementation 'com.android.support:appcompat-v7:26.1.0'
  38. implementation 'com.android.support:support-v4:26.1.0'
  39. implementation 'com.android.support:design:26.1.0'
  40. implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  41. // Testing
  42. testImplementation 'junit:junit:4.12'
  43. testImplementation 'org.robolectric:robolectric:3.3.2'
  44. testImplementation 'org.mockito:mockito-core:1.10.19'
  45. testImplementation 'org.robolectric:shadows-support-v4:3.0'
  46. testImplementation 'org.powermock:powermock-module-junit4:1.6.5'
  47. testImplementation 'org.powermock:powermock-module-junit4-rule:1.6.5'
  48. testImplementation 'org.powermock:powermock-api-mockito:1.6.5'
  49. testImplementation 'org.powermock:powermock-classloading-xstream:1.6.5'
  50. androidTestImplementation 'com.android.support.test:runner:1.0.1'
  51. // Set this dependency to use JUnit 4 rules
  52. androidTestImplementation 'com.android.support.test:rules:1.0.1'
  53. // Set this dependency to build and run Espresso tests
  54. androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
  55. implementation project(':http')
  56. implementation project(':xrecyclerview')
  57. implementation project(':zoomlibrary')
  58. compile 'com.quinny898.library.persistentsearch:library:1.1.0-SNAPSHOT'
  59. compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
  60. compile 'com.android.support:cardview-v7:26.1.0'
  61. compile 'com.github.bmelnychuk:atv:1.2.+'
  62. compile 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
  63. compile 'com.borax12.materialdaterangepicker:library:1.9'
  64. implementation files('libs/ScanDecode.jar')
  65. // bugly
  66. compile 'com.tencent.bugly:crashreport:latest.release'
  67. // pgy
  68. compile 'com.pgyersdk:sdk:2.8.1'
  69. }