build.gradle 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'kotlin-kapt'
  5. configurations.all {
  6. resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  7. def requested = details.requested
  8. if (requested.group == "androidx") {
  9. if (!requested.name.startsWith("multidex")) {
  10. details.useVersion "${targetSdk}.+"
  11. }
  12. }
  13. }
  14. }
  15. android {
  16. compileSdkVersion 29
  17. buildToolsVersion "29.0.2"
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. kotlinOptions {
  23. jvmTarget = "1.8"
  24. }
  25. defaultConfig {
  26. applicationId "fr.forum_thalie.tsumugi"
  27. minSdkVersion 16
  28. targetSdkVersion 29
  29. versionCode 2
  30. versionName "1.1dev"
  31. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  32. vectorDrawables.useSupportLibrary = true
  33. }
  34. buildTypes {
  35. release {
  36. minifyEnabled false
  37. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. }
  39. }
  40. }
  41. dependencies {
  42. implementation fileTree(dir: 'libs', include: ['*.jar'])
  43. /*
  44. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  45. implementation 'androidx.appcompat:appcompat:1.1.0'
  46. implementation 'androidx.core:core-ktx:1.1.0'
  47. implementation 'com.google.android.material:material:1.0.0'
  48. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  49. implementation 'androidx.navigation:navigation-fragment-ktx:2.1.0'
  50. implementation 'androidx.navigation:navigation-ui-ktx:2.1.0'
  51. implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  52. implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
  53. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0'
  54. testImplementation 'junit:junit:4.12'
  55. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  56. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  57. */
  58. implementation "androidx.media:media:1.1.0"
  59. implementation 'com.google.android.exoplayer:exoplayer:2.10.6'
  60. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  61. implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
  62. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0'
  63. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  64. implementation 'androidx.preference:preference:1.1.0'
  65. // jsoup HTML parser library @ https://jsoup.org/
  66. // implementation 'org.jsoup:jsoup:1.12.1'
  67. // RSS parser library @ https://github.com/prof18/RSS-Parser
  68. implementation 'com.prof.rssparser:rssparser:2.0.4'
  69. def work_version = "2.2.0"
  70. implementation "androidx.work:work-runtime-ktx:$work_version"
  71. // new implems
  72. implementation deps.kotlin.stdlib
  73. implementation deps.support.app_compat
  74. implementation deps.support.design
  75. implementation deps.support.core_ktx
  76. implementation deps.constraint_layout
  77. implementation deps.arch_core.runtime
  78. // Navigation
  79. implementation deps.navigation.runtime_ktx
  80. implementation deps.navigation.fragment_ktx
  81. implementation deps.navigation.ui_ktx
  82. // Android Testing Support Library's runner and rules
  83. /*
  84. androidTestImplementation deps.atsl.runner
  85. androidTestImplementation deps.atsl.rules
  86. androidTestImplementation deps.room.testing
  87. androidTestImplementation deps.arch_core.testing
  88. */
  89. // Espresso UI Testing
  90. androidTestImplementation deps.espresso.core
  91. androidTestImplementation deps.espresso.contrib
  92. androidTestImplementation deps.espresso.intents
  93. }