Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 2.04 KB | None | 0 0
  1. //BUILD.GRADLE PROJECT
  2. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  3. buildscript {
  4.    
  5.     repositories {
  6.         google()
  7.         jcenter()
  8.     }
  9.     dependencies {
  10.         classpath 'com.android.tools.build:gradle:3.1.4'
  11.  
  12.         // NOTE: Do not place your application dependencies here; they belong
  13.         // in the individual module build.gradle files
  14.     }
  15. }
  16.  
  17. allprojects {
  18.     repositories {
  19.         google()
  20.         jcenter()
  21.     }
  22. }
  23.  
  24. task clean(type: Delete) {
  25.     delete rootProject.buildDir
  26. }
  27.  
  28. ext{
  29.     roomVersion = '1.1.1'
  30.     archLifecycleVersion = '1.1.1'
  31. }
  32.  
  33. //BUILD.GRADLE APP
  34.  
  35. apply plugin: 'com.android.application'
  36.  
  37. android {
  38.     compileSdkVersion 28
  39.     defaultConfig {
  40.         applicationId "br.com.eduardomaxwell.roomwordsample"
  41.         minSdkVersion 19
  42.         targetSdkVersion 28
  43.         versionCode 1
  44.         versionName "1.0"
  45.         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  46.     }
  47.     buildTypes {
  48.         release {
  49.             minifyEnabled false
  50.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  51.         }
  52.     }
  53. }
  54.  
  55. dependencies {
  56.     implementation fileTree(dir: 'libs', include: ['*.jar'])
  57.     implementation 'com.android.support:appcompat-v7:28.0.0-rc02'
  58.     implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  59.     implementation 'com.android.support:design:28.0.0-rc02'
  60.     testImplementation 'junit:junit:4.12'
  61.     androidTestImplementation 'com.android.support.test:runner:1.0.2'
  62.     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  63.  
  64. //    Room Components
  65.     implementation 'android.arch.persistence.room:runtime:1.1.1'
  66.     annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
  67.     androidTestImplementation 'android.arch.persistence.room:testing:1.1.1'
  68.  
  69.     implementation 'android.arch.lifecycle:extensions:1.1.1'
  70.     annotationProcessor 'android.arch.lifecycle:compiler:1.1.1'
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement