build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. plugins {
  2. id 'com.android.application'
  3. id 'ru.cleverpumpkin.proguard-dictionaries-generator'
  4. }
  5. android {
  6. compileSdkVersion rootProject.compileSdkVersion
  7. defaultConfig {
  8. applicationId "com.github.catvod.demo"
  9. minSdkVersion rootProject.miniSdkVersion
  10. targetSdkVersion rootProject.targetSdkVersion
  11. versionCode rootProject.appVersionCode
  12. versionName rootProject.appVersionName
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled true
  17. proguardFiles 'proguard-rules.pro'
  18. proguardDictionaries {
  19. dictionaryNames = [
  20. "build/class-dictionary",
  21. "build/package-dictionary",
  22. "build/obfuscation-dictionary"
  23. ]
  24. minLineLength 1
  25. maxLineLength 3
  26. linesCountInDictionary 100000
  27. }
  28. }
  29. }
  30. compileOptions {
  31. sourceCompatibility JavaVersion.VERSION_1_8
  32. targetCompatibility JavaVersion.VERSION_1_8
  33. }
  34. }
  35. dependencies {
  36. implementation "org.jsoup:jsoup:$jsoup_version"
  37. implementation "cn.wanghaomiao:JsoupXpath:$jsoupxpath_version"
  38. implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
  39. implementation ("com.github.liujingxing.rxhttp:rxhttp:$rxhttp_version") {
  40. exclude group: "com.squareup.okhttp3"
  41. }
  42. annotationProcessor "com.github.liujingxing.rxhttp:rxhttp-compiler:$rxhttp_version"
  43. }