Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2.  
  3. android {
  4. compileSdkVersion 26
  5. buildToolsVersion "26.0.2"
  6. defaultConfig {
  7. applicationId "br.ufpe.cin.if710.podcast"
  8. minSdkVersion 19
  9. targetSdkVersion 26
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13.  
  14.  
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  20. }
  21. }
  22.  
  23.  
  24. }
  25.  
  26. dependencies {
  27. compile fileTree(include: ['*.jar'], dir: 'libs')
  28. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  29. exclude group: 'com.android.support', module: 'support-annotations'
  30. })
  31. debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.4'
  32. releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
  33. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  34. compile 'com.android.support:appcompat-v7:26.+'
  35. testCompile 'junit:junit:4.12'
  36. testCompile 'org.mockito:mockito-core:1.10.19'
  37. compile 'com.android.support:appcompat-v7:26.+'
  38. implementation "android.arch.persistence.room:runtime:$rootProject.roomVersion"
  39. implementation "android.arch.lifecycle:extensions:1.0.0"
  40. testImplementation "android.arch.core:core-testing:1.0.0"
  41. annotationProcessor "android.arch.persistence.room:compiler:$rootProject.roomVersion"
  42. androidTestImplementation "android.arch.persistence.room:testing:$rootProject.roomVersion"
  43. androidTestCompile 'com.android.support:support-annotations:26.+'
  44. androidTestCompile 'com.android.support:recyclerview-v7:26.+'
  45. androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.2.2'
  46. androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.2'
  47. androidTestCompile 'com.android.support.test:rules:0.5'
  48. }
  49.  
  50. configurations.all { config ->
  51. if (config.name.contains('UnitTest') || config.name.contains('AndroidTest')) {
  52. config.resolutionStrategy.eachDependency { details ->
  53. if (details.requested.group == 'com.squareup.leakcanary' && details.requested.name == 'leakcanary-android') {
  54. details.useTarget(group: details.requested.group, name: 'leakcanary-android-no-op', version: details.requested.version)
  55. }
  56. }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement