apply plugin: 'com.android.application' apply plugin: 'realm-android' // Realm needs to be before Kotlin or the build will fail apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { applicationId "com.moez.QKSMS" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { applicationIdSuffix ".debug" } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile "android.arch.lifecycle:extensions:1.0.0-alpha9" compile "android.arch.lifecycle:runtime:1.0.0-alpha9" compile 'com.android.support:appcompat-v7:26.0.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.bugsnag:bugsnag-android:3.9.0' compile "com.google.dagger:dagger:2.9" compile 'com.karumi:dexter:4.1.0' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile "io.reactivex.rxjava2:rxjava:2.1.0" compile 'io.reactivex.rxjava2:rxkotlin:2.0.3' compile 'io.realm:android-adapters:1.3.0' compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" kapt "android.arch.lifecycle:compiler:1.0.0-alpha9" kapt "com.google.dagger:dagger-compiler:2.9" kapt 'io.realm:realm-annotations:3.3.1' kapt 'io.realm:realm-annotations-processor:3.3.1' provided 'javax.annotation:jsr250-api:1.0' } kapt { generateStubs = true }