Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'spoon'
  5. apply plugin: 'kotlin-kapt'
  6.  
  7. spoon {
  8. // for debug output
  9. debug = true
  10. }
  11.  
  12. android {
  13. compileSdkVersion 25
  14. buildToolsVersion '25.0.3'
  15.  
  16. defaultConfig {
  17. applicationId "pl.lizardproject.qe2017"
  18. minSdkVersion 15
  19. targetSdkVersion 25
  20. versionCode 1
  21. versionName "1.0"
  22. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. dataBinding {
  31. enabled = true
  32. version = "2.3.0"
  33. }
  34. sourceSets {
  35. main.java.srcDirs += 'src/main/kotlin'
  36. }
  37. }
  38.  
  39. dependencies {
  40. compile fileTree(dir: 'libs', include: ['*.jar'])
  41. compile 'com.android.support:appcompat-v7:25.3.1'
  42. compile 'com.android.support:recyclerview-v7:25.3.1'
  43. compile 'com.android.support:percent:25.3.1'
  44. compile 'com.android.support:design:25.3.1'
  45.  
  46. compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  47. compile 'io.reactivex:rxkotlin:1.0.0'
  48. compile 'io.reactivex:rxandroid:1.2.1'
  49. compile 'io.reactivex:rxjava:1.3.0'
  50.  
  51. kapt "com.android.databinding:compiler:$android.dataBinding.version"
  52.  
  53. compile 'io.requery:requery:1.3.2'
  54. compile 'io.requery:requery-kotlin:1.3.2'
  55. compile 'io.requery:requery-android:1.3.2'
  56. kapt 'io.requery:requery-processor:1.3.2'
  57. compile 'io.requery:sqlite-android:3.19.2'
  58.  
  59. compile 'com.f2prateek.dart:dart:2.0.2'
  60. kapt 'com.f2prateek.dart:dart-processor:2.0.2'
  61. compile 'com.f2prateek.dart:henson:2.0.2'
  62. kapt 'com.f2prateek.dart:henson-processor:2.0.2'
  63.  
  64. //Espresso
  65. androidTestCompile 'com.android.support:support-annotations:25.3.1'
  66. androidTestCompile 'com.android.support.test:runner:0.5'
  67. androidTestCompile 'com.android.support.test:rules:0.5'
  68. androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
  69. androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.2') {
  70. exclude module: 'support-annotations'
  71. exclude module: 'support-v4'
  72. exclude module: 'support-v13'
  73. exclude module: 'recyclerview-v7'
  74. exclude module: 'appcompat-v7'
  75. exclude module: 'design'
  76. }
  77. androidTestCompile 'com.android.support.test.espresso:espresso-idling-resource:2.2.2'
  78. androidTestCompile 'junit:junit:4.12'
  79. }
  80. kapt {
  81. generateStubs = true
  82. }
  83.  
  84. tasks.withType(com.android.build.gradle.internal.tasks.databinding.DataBindingExportBuildInfoTask) { task ->
  85. if (task.name.endsWith("AndroidTest")) {
  86. task.finalizedBy(tasks.create("${task.name}Workaround") << {
  87. task.output.deleteDir()
  88. })
  89. }
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement