2017-08-27 15:03:22 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion sdk_version
|
|
|
|
buildToolsVersion build_tools_version
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 9
|
|
|
|
targetSdkVersion sdk_version
|
|
|
|
|
2019-05-14 19:27:43 +02:00
|
|
|
versionCode 24
|
|
|
|
versionName '1.7.2'
|
2017-08-27 15:03:22 +02:00
|
|
|
|
2018-06-02 13:05:10 +02:00
|
|
|
// it's recommended to set this value to the lowest API level
|
|
|
|
// able to provide all the functionality
|
2019-05-05 23:41:27 +02:00
|
|
|
renderscriptTargetApi 24
|
2017-08-27 15:03:22 +02:00
|
|
|
renderscriptSupportModeEnabled true
|
2018-05-29 21:00:26 +02:00
|
|
|
|
|
|
|
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
|
|
|
|
}
|
|
|
|
|
2019-05-09 20:38:36 +02:00
|
|
|
signingConfigs {
|
|
|
|
config {
|
|
|
|
keyAlias System.getenv('ANDROID_KEY_ALIAS')
|
|
|
|
keyPassword System.getenv('ANDROID_KEY_PASSWORD')
|
|
|
|
storePassword System.getenv('ANDROID_STORE_PASSWORD')
|
|
|
|
def filePath = System.getenv('ANDROID_KEYFILE')
|
|
|
|
storeFile filePath ? file(filePath) : null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-29 21:00:26 +02:00
|
|
|
sourceSets {
|
2019-03-18 20:19:31 +01:00
|
|
|
main.java.srcDirs += 'src/main/kotlin'
|
2018-05-29 21:00:26 +02:00
|
|
|
androidTest.java.srcDirs += 'src/androidTest/kotlin'
|
2017-08-27 15:03:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
applicationIdSuffix '.debug'
|
|
|
|
}
|
|
|
|
|
|
|
|
release {
|
2019-03-18 21:57:05 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2017-08-27 15:03:22 +02:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2019-05-14 19:27:27 +02:00
|
|
|
signingConfig signingConfigs.config
|
2017-08-27 15:03:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2018-05-29 21:00:26 +02:00
|
|
|
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'
|
|
|
|
|
2018-05-29 19:47:28 +02:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
2019-03-06 23:44:07 +01:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.1"
|
2017-02-28 21:14:37 +01:00
|
|
|
implementation "com.android.support:appcompat-v7:$support_version"
|
|
|
|
implementation "com.android.support:design:$support_version"
|
2019-02-14 19:46:26 +01:00
|
|
|
implementation 'com.google.zxing:core:3.3.3'
|
2019-04-08 20:56:29 +02:00
|
|
|
implementation 'com.github.markusfisch:CameraView:1.8.3'
|
2017-08-27 15:03:22 +02:00
|
|
|
}
|