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
|
2019-11-06 14:11:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-05 18:43:47 +00:00
|
|
|
plugins {
|
2020-02-24 07:14:07 +00:00
|
|
|
id 'com.github.ben-manes.versions' version '0.28.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
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
jcenter()
|
2020-03-24 13:03:40 +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
|
2020-04-15 15:12:28 +00:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2019-11-06 14:11:15 +00:00
|
|
|
}
|
|
|
|
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'
|
2020-04-16 10:20:45 +00:00
|
|
|
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
2019-11-26 18:18:18 +00:00
|
|
|
}
|
|
|
|
}
|
2019-11-06 14:11:15 +00:00
|
|
|
}
|
|
|
|
|
2020-05-12 09:17:08 +00:00
|
|
|
tasks.wrapper {
|
2020-05-31 07:42:15 +00:00
|
|
|
gradleVersion = "6.4"
|
2020-05-12 09:17:08 +00:00
|
|
|
distributionType = Wrapper.DistributionType.ALL
|
2020-05-31 07:42:15 +00:00
|
|
|
distributionSha256Sum = "d08f7e24d061910382c2fda9915e6ed42dd1480ae2e99211f92c70190cb697e0"
|
2019-11-06 14:11:15 +00:00
|
|
|
}
|