build.gradle 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. buildToolsVersion "28.0.3"
  5. defaultConfig {
  6. applicationId "org.fox.ttrss"
  7. buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"
  8. buildConfigField "boolean", "ENABLE_TRIAL", "true"
  9. minSdkVersion 16
  10. targetSdkVersion 28 // we're not targeting SDK 25 because of this: https://issuetracker.google.com/issues/37103380#makechanges
  11. }
  12. signingConfigs {
  13. fdroid {
  14. if (project.hasProperty("FDROID_STORE_FILE")) {
  15. storeFile file(FDROID_STORE_FILE)
  16. storePassword FDROID_STORE_PASSWORD
  17. keyAlias FDROID_KEY_ALIAS
  18. keyPassword FDROID_KEY_PASSWORD
  19. }
  20. }
  21. }
  22. lintOptions {
  23. abortOnError false
  24. checkReleaseBuilds false
  25. disable 'MissingTranslation'
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  31. }
  32. fdroid {
  33. minifyEnabled false
  34. versionNameSuffix "-fdroid"
  35. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  36. buildConfigField "boolean", "ENABLE_TRIAL", "false"
  37. signingConfig signingConfigs.fdroid
  38. matchingFallbacks = ['release']
  39. }
  40. }
  41. }
  42. dependencies {
  43. implementation files('libs/dashclock-api-r1.1.jar')
  44. implementation 'com.squareup.okhttp3:okhttp:3.10.0'
  45. implementation('com.github.bumptech.glide:okhttp3-integration:1.5.0') {
  46. exclude group: 'glide-parent'
  47. }
  48. implementation 'org.jsoup:jsoup:1.10.2'
  49. implementation 'com.bogdwellers:pinchtozoom:0.1'
  50. implementation 'com.github.bumptech.glide:glide:3.8.0'
  51. implementation 'jp.wasabeef:glide-transformations:2.0.2'
  52. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  53. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  54. implementation 'androidx.appcompat:appcompat:1.0.2'
  55. implementation 'androidx.browser:browser:1.0.0'
  56. implementation 'com.google.android.material:material:1.0.0'
  57. implementation 'com.google.code.gson:gson:2.8.2'
  58. implementation 'com.shamanland:fab:0.0.8'
  59. implementation 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:[email protected]'
  60. implementation 'me.relex:circleindicator:[email protected]'
  61. implementation 'com.viewpagerindicator:library:2.4.1'
  62. implementation 'com.nineoldandroids:library:2.4.0'
  63. implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
  64. implementation 'frankiesardo:icepick:3.2.0'
  65. compileOnly 'frankiesardo:icepick-processor:3.2.0'
  66. annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
  67. implementation 'com.github.livefront:bridge:v1.1.1'
  68. implementation files('libs/YouTubeAndroidPlayerApi.jar')
  69. }