apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.android.databinding'

android {
  compileSdkVersion 23
  buildToolsVersion "24.0.0 rc1"

  defaultConfig {
    applicationId "com.minimize.android.rxretrorealm"
    minSdkVersion 16
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
  }
  buildTypes {
    release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'),
          'proguard-rules.pro'
    }
  }
  sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
  }
}

dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:appcompat-v7:23.2.1'
  compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

  //Realm
  compile 'io.realm:realm-android:0.87.4'
  //RxAndroid
  compile 'io.reactivex:rxandroid:1.1.0'
  compile 'io.reactivex:rxjava:1.1.0'
  //RxBindings
  compile 'com.jakewharton.rxbinding:rxbinding:0.3.0'
  //Retrofit
  compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'
  //Retrofit Adapter and Converter
  compile 'com.squareup.retrofit:adapter-rxjava:2.0.0-beta2'
  compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'
  //Glide
  compile 'com.github.bumptech.glide:glide:3.7.0'
  //Databinding and Realm Annotations
  kapt 'com.android.databinding:compiler:1.0-rc4'
  kapt "io.realm:realm-annotations:0.87.4"
  kapt "io.realm:realm-annotations-processor:0.87.4"



}

buildscript {
  ext.kotlin_version = '1.0.0'
  repositories {
    mavenCentral()
  }
  dependencies {
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  }
}
repositories {
  mavenCentral()
}


kapt {
  generateStubs = true
}



