2019-11-06 14:11:15 +00:00
|
|
|
/*
|
2020-01-29 19:30:20 +00:00
|
|
|
* Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
|
2019-11-06 14:11:15 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
*/
|
|
|
|
buildscript {
|
2019-11-26 18:18:18 +00:00
|
|
|
apply from: rootProject.file('dependencies.gradle')
|
2019-11-06 14:11:15 +00:00
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
2019-11-26 18:18:18 +00:00
|
|
|
classpath deps.gradle_plugin.android
|
|
|
|
classpath deps.gradle_plugin.kotlin
|
|
|
|
classpath deps.gradle_plugin.spotless
|
2019-11-06 14:11:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-05 18:43:47 +00:00
|
|
|
plugins {
|
2019-12-31 15:27:38 +00:00
|
|
|
id 'com.github.ben-manes.versions' version '0.27.0'
|
2019-11-06 14:11:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
2019-11-26 18:18:18 +00:00
|
|
|
apply from: rootProject.file('dependencies.gradle')
|
2019-11-06 14:11:15 +00:00
|
|
|
apply from: rootProject.file('spotless.gradle')
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
jcenter()
|
2019-12-31 15:27:38 +00:00
|
|
|
maven { url 'https://jitpack.io' }
|
2019-11-06 14:11:15 +00:00
|
|
|
}
|
2019-12-05 18:43:47 +00:00
|
|
|
pluginManager.withPlugin('kotlin-android') {
|
2019-11-06 14:11:15 +00:00
|
|
|
dependencies {
|
2019-12-05 18:43:47 +00:00
|
|
|
implementation deps.kotlin.stdlib8
|
2019-11-06 14:11:15 +00:00
|
|
|
}
|
|
|
|
}
|
2019-12-05 18:43:47 +00:00
|
|
|
if (name == 'app') {
|
2019-11-06 14:11:15 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
} else {
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
}
|
|
|
|
android {
|
|
|
|
compileSdkVersion versions.compileSdk
|
|
|
|
buildToolsVersion = versions.buildTools
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion versions.minSdk
|
|
|
|
targetSdkVersion versions.targetSdk
|
|
|
|
versionCode versions.versionCode
|
|
|
|
versionName versions.versionName
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
}
|
2019-11-26 18:18:18 +00:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << '-Xlint:unchecked'
|
|
|
|
options.deprecation = true
|
|
|
|
}
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
}
|
|
|
|
}
|
2019-11-06 14:11:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply from: rootProject.file('spotless.root.gradle')
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
wrapper {
|
|
|
|
distributionType = Wrapper.DistributionType.ALL
|
|
|
|
}
|
|
|
|
}
|