build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 27
  4. buildToolsVersion "27.0.2"
  5. defaultConfig {
  6. minSdkVersion 18
  7. targetSdkVersion 27
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. }
  19. dependencies {
  20. compile fileTree(dir: 'libs', include: ['*.jar'])
  21. compile 'com.android.support:appcompat-v7:27.1.0'
  22. testCompile 'junit:junit:4.12'
  23. androidTestCompile('com.android.support.test.espresso:espresso-core:3.0.2', {
  24. exclude group: 'com.android.support', module: 'support-annotations'
  25. })
  26. /* SQ全家桶 */
  27. compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
  28. compile 'com.squareup.retrofit2:retrofit:2.4.0'
  29. compile 'com.squareup.retrofit2:converter-gson:2.4.0'
  30. compile 'com.squareup.okhttp3:okhttp:3.10.0'
  31. /* 网络请求生命周期绑定 */
  32. compile 'com.trello:rxlifecycle:1.0'
  33. compile 'com.trello:rxlifecycle-components:1.0'
  34. /* RX全家桶 */
  35. compile 'io.reactivex.rxjava2:rxandroid:2.1.0'
  36. compile 'io.reactivex.rxjava2:rxjava:2.2.2'
  37. /* JSON解析 */
  38. compile 'com.google.code.gson:gson:2.8.2'
  39. /* 日志打印 */
  40. compile 'com.orhanobut:logger:2.2.0'
  41. /* 媒体选择 */
  42. compile 'com.zhihu.android:matisse:0.5.1'
  43. }