Advertisement
Guest User

Untitled

a guest
May 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.86 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2.  
  3. // Define versions
  4. def roomVersion = "1.1.1"
  5. def latestSupportLib = "28.0.0"
  6. def retrofitVersion = "2.5.0"
  7. def lifeCycleVersion = "1.1.1"
  8.  
  9. android {
  10.     compileSdkVersion 28
  11.     defaultConfig {
  12.         applicationId "com.bytebala.foodrecipes"
  13.         minSdkVersion 21
  14.         targetSdkVersion 28
  15.         versionCode 1
  16.         versionName "1.0"
  17.         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  18.     }
  19.     buildTypes {
  20.         release {
  21.             minifyEnabled false
  22.             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23.         }
  24.     }
  25. }
  26.  
  27. dependencies {
  28.     implementation fileTree(dir: 'libs', include: ['*.jar'])
  29.    
  30.     //Suppor Design Library
  31.     implementation "com.android.support:appcompat-v7:${latestSupportLib}"
  32.     implementation "com.android.support:recyclerview-v7:${latestSupportLib}"
  33.     implementation "com.android.support:cardview-v7:${latestSupportLib}"
  34.     implementation "com.android.support:design:${latestSupportLib}"
  35.     implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  36.  
  37.     testImplementation 'junit:junit:4.12'
  38.     androidTestImplementation 'com.android.support.test:runner:1.0.2'
  39.     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  40.  
  41.     //Retrofit
  42.     implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
  43.  
  44.     //GSON
  45.     implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
  46.  
  47.     // Room
  48.     implementation "android.arch.persistence.room:runtime:$roomVersion"
  49.     implementation "android.arch.persistence.room:rxjava2:$roomVersion"
  50.     annotationProcessor "android.arch.persistence.room:compiler:$roomVersion"
  51.  
  52.     // ViewModel and LiveData
  53.     implementation "android.arch.lifecycle:extensions:$lifeCycleVersion"
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement