apply plugin: 'com.android.application'

android {
  compileSdkVersion 26
  buildToolsVersion '26.0.2'
  defaultConfig {
    applicationId "in.arjsna.permissionchecker"
    minSdkVersion 15
    targetSdkVersion 26
    versionCode 7
    versionName "2.2"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  }

  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }

  buildTypes {
    release {
      minifyEnabled true
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
  }
}

ext {
  supportLibraryVerion = "26.1.0"
  constraintLayoutVersion = "1.0.2"
  rxAndroidVersion = "2.0.1"
  rxJavaVersion = "2.1.0"
}

dependencies {
  implementation fileTree(dir: 'libs', include: ['*.jar'])
  androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
  })
  implementation "com.android.support:design:${supportLibraryVerion}"
  implementation "com.android.support:recyclerview-v7:${supportLibraryVerion}"

  implementation "com.android.support:appcompat-v7:${supportLibraryVerion}"
  implementation "com.android.support:cardview-v7:${supportLibraryVerion}"
  implementation "com.android.support.constraint:constraint-layout:${constraintLayoutVersion}"
  testCompile 'junit:junit:4.12'

  implementation "io.reactivex.rxjava2:rxandroid:${rxAndroidVersion}"
  implementation "io.reactivex.rxjava2:rxjava:${rxJavaVersion}"
  implementation 'com.jakewharton.rxbinding2:rxbinding:2.0.0'

  implementation 'com.google.dagger:dagger:2.11'
  annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
  implementation 'com.google.dagger:dagger-android:2.11'
  implementation 'com.google.dagger:dagger-android-support:2.11'
  annotationProcessor 'com.google.dagger:dagger-android-processor:2.11'

  implementation 'pub.devrel:easypermissions:1.0.1'
  implementation 'com.mindorks.nybus:nybus-android:1.0.0'
  implementation 'commons-io:commons-io:2.4'
  implementation 'com.github.fernandodev.easyratingdialog:easyratingdialog:1.1.2'
}
