forked from aws/amazon-chime-sdk-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (68 loc) · 2.16 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.50'
ext.dokka_version = '0.10.1'
ext.jacocoVersion = '0.8.8'
repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.3.1"
classpath("org.jlleitschuh.gradle:ktlint-gradle:9.1.1")
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.2'
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.3.1"
id "org.jlleitschuh.gradle.ktlint" version "9.1.1"
}
apply plugin: 'io.gitlab.arturbosch.detekt'
apply plugin: 'org.jlleitschuh.gradle.ktlint'
def localPropertiesFile = new File(getRootDir(), "local.properties")
Properties localProperties = new Properties()
if (localPropertiesFile.exists()) {
localPropertiesFile.withInputStream { instr ->
localProperties.load(instr)
}
}
allprojects {
repositories {
google()
jcenter()
flatDir {
dirs '../amazon-chime-sdk/libs'
}
}
project.ext {
chimeBuildToolsVersion = "29.0.2"
chimeMinSdkVersion = 21
chimeTargetSdkVersion = 30
chimeCompileSdkVersion = 30
sdkDir = localProperties.getProperty('sdk.dir')
ndkDir = localProperties.getProperty('ndk.dir')
}
}
subprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task installGitHook(type: Copy) {
from new File(rootProject.rootDir, 'pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0744
}
tasks.withType(Test) {
exclude '**/DefaultActiveSpeakerDetectorTest'
}
tasks.getByPath(':app:preBuild').dependsOn installGitHook