-
Notifications
You must be signed in to change notification settings - Fork 60
/
build.gradle
95 lines (87 loc) · 3.54 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
81
82
83
84
85
86
87
88
89
90
91
92
93
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlinVersion = '1.8.10'
coroutinesVersion = "1.6.4"
archLifecycleVersion = "1.1.1"
gradleVersion = '8.0.0'
supportlibVersion = '1.6.1'
materialLibVersion = '1.9.0-beta01' // todo: permanent visible slider label is available from 1.6 (currently in beta) → https://github.com/material-components/material-components-android/releases
retrofitVersion = "2.9.0"
moshiKotlinVersion = '1.14.0'
okhttpVersion = '4.10.0'
dataBindingCompilerVersion = gradleVersion // Always need to be the same.
roomVersion = "2.5.1"
frescoVersion = "2.4.0"
//2.15.1 might be the highest, and yet it's still borked.
//2.11.4 was original version, it's heckin old.
exoplayerVersion = "2.18.5"
exoplayerExtensions = "master-SNAPSHOT" //YOLO
workVersion = '2.8.1'
junitVersion = '4.13.2'
androidxTestRunnerVersion = '1.5.0' //TODO: this needs to be split up, because there's newer versions of the rules
espressoVersion = '3.5.1'
androidxAnnotationVersion = "1.6.0"
lifecycleVersion = "2.6.1"
ossLicenseActivityVersion = "17.0.0"
androidXTestExtKotlinRunnerVersion = '1.1.5'
androidXTestCoreVersion = '1.5.0'
robolectricVersion = '4.4'
archTestingVersion = "2.2.0"
hamcrestVersion = "1.3"
mockKVersion = "1.10.0"
daggerVersion = '2.45'
localBroadcastManagerVersion = "1.1.0"
androidXCustomTabsVersion = "1.5.0"
swipeRefreshLayoutVersion = "1.1.0"
billingVersion = '4.0.0'
iapWrapperVersion = '1.2.2'
constraintLayoutVersion = '2.1.4'
kotlinResultVersion = '1.1.11'
timberVersion = "4.7.1"
seismicVersion = "1.0.3"
appCompatFragmentVersion = "1.5.6"
}
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.android.tools.build:gradle:$gradleVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.6'
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.3.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
ktlint {
debug.set(true)
disabledRules.set(["no-wildcard-imports"])
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Allow experimental kotlin features, like coroutines
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=io.ktor.locations.KtorExperimentalLocationsAPI"]
kotlinOptions.freeCompilerArgs += ["-Xallow-result-return-type"]
kotlinOptions.freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
kotlinOptions.freeCompilerArgs += ["-Xopt-in=kotlin.time.ExperimentalTime"]
kotlinOptions.freeCompilerArgs += ["-Xopt-in=kotlinx.coroutines.InternalCoroutinesApi"]
}
task installGitHook(type: Copy) {
from new File(rootProject.rootDir, 'pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
tasks.getByPath(':app:preBuild').dependsOn installGitHook