build.gradle 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * DSBDirect
  3. * Copyright (C) 2019 Fynn Godau
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. *
  18. * This software is not affiliated with heinekingmedia GmbH, the
  19. * developer of the DSB platform.
  20. */
  21. apply plugin: 'com.android.application'
  22. apply plugin: 'kotlin-android'
  23. android {
  24. compileSdkVersion 34
  25. defaultConfig {
  26. applicationId "godau.fynn.dsbdirect"
  27. namespace "godau.fynn.dsbdirect"
  28. minSdkVersion 14
  29. targetSdkVersion 34
  30. versionCode 43
  31. versionName "3.4.2"
  32. vectorDrawables.useSupportLibrary = true
  33. multiDexEnabled true
  34. }
  35. buildTypes {
  36. debug {
  37. versionNameSuffix " debug"
  38. applicationIdSuffix ".debug"
  39. }
  40. release {
  41. minifyEnabled false
  42. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  43. }
  44. }
  45. flavorDimensions "store"
  46. productFlavors {
  47. fdroid {
  48. dimension "store"
  49. }
  50. notabug {
  51. versionNameSuffix " notabug"
  52. dimension "store"
  53. }
  54. play {
  55. applicationId "ga.testapp.dsbdirect"
  56. versionNameSuffix " play"
  57. dimension "store"
  58. }
  59. }
  60. compileOptions {
  61. coreLibraryDesugaringEnabled true
  62. sourceCompatibility JavaVersion.VERSION_1_8
  63. targetCompatibility JavaVersion.VERSION_1_8
  64. }
  65. kotlinOptions {
  66. jvmTarget = '1.8'
  67. }
  68. buildFeatures {
  69. buildConfig true
  70. }
  71. androidResources {
  72. generateLocaleConfig true
  73. }
  74. }
  75. dependencies {
  76. implementation 'com.google.guava:guava:33.1.0-android' // explicit dependency declaration to prevent Duplicate class error
  77. implementation 'com.android.support:multidex:1.0.3'
  78. implementation 'androidx.appcompat:appcompat:1.6.1'
  79. implementation 'com.google.android.material:material:1.11.0'
  80. implementation 'com.wefika:horizontal-picker:1.1.1'
  81. implementation 'org.jsoup:jsoup:1.17.2'
  82. implementation 'com.github.mfornos:humanize-slim:1.2.2'
  83. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  84. implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  85. implementation 'androidx.cardview:cardview:1.0.0'
  86. implementation "androidx.recyclerview:recyclerview:1.3.2"
  87. implementation 'com.github.MikeOrtiz:TouchImageView:3.0.1'
  88. implementation 'org.sufficientlysecure:html-textview:4.0' // ToDo: This is still only on jcenter!!!
  89. implementation 'com.github.DASAR:ShiftColorPicker:v0.5'
  90. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  91. implementation 'com.squareup.picasso:picasso:2.71828'
  92. implementation 'androidx.fragment:fragment-ktx:1.6.2'
  93. implementation 'org.codeberg.fynngodau:librariesDirect:e9a69852ec'
  94. implementation 'org.conscrypt:conscrypt-android:2.5.2'
  95. implementation 'androidx.preference:preference-ktx:1.2.1'
  96. implementation 'de.bixilon:eltern-portal.org:1.1' // implementation 'de.bixilon.bixilon:eltern-portal.org-api:1.0'
  97. coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
  98. testImplementation 'junit:junit:4.13.2'
  99. }