apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'net.ltgt.errorprone' configurations.errorprone { resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.19' } android { compileSdkVersion sdk_version buildToolsVersion build_tools_version defaultConfig { minSdkVersion 9 targetSdkVersion sdk_version versionCode 14 versionName '1.3.8' // it's recommended to set this value to the lowest API level // able to provide all the functionality renderscriptTargetApi 18 renderscriptSupportModeEnabled true testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner' } sourceSets { androidTest.java.srcDirs += 'src/androidTest/kotlin' } buildTypes { debug { applicationIdSuffix '.debug' } release { proguardFiles \ getDefaultProguardFile('proguard-android.txt'), \ 'proguard-rules.pro' minifyEnabled true shrinkResources true } } lintOptions { // because at the time of writing, even the latest version // of RenderScript is raising this error no matter if // renderscriptTargetApi matches targetSdkVersion disable 'GradleCompatible' } } dependencies { androidTestImplementation ('com.android.support.test:runner:1.0.2') { exclude module: 'support-annotations' } androidTestImplementation ('com.android.support.test:rules:1.0.2') { exclude module: 'support-annotations' } testImplementation 'junit:junit:4.12' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "com.android.support:appcompat-v7:$support_version" implementation "com.android.support:design:$support_version" implementation 'com.google.zxing:core:3.3.3' implementation 'com.github.markusfisch:CameraView:1.8.1' }