forked from spacecowboy/Feeder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (79 loc) · 2.43 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
94
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = "1.5.10"
gradle_build_version = "7.0.0"
build_tools_version = "30.0.3"
multi_dex_version = "1.0.3"
// These should be upgraded in unison
okhttp_version = "4.9.1"
okio_version = "2.8.0"
conscrypt_version = "2.5.1"
kodeinVersion = "7.5.0"
// kodeinComposeVersion = "7.5.0"
coroutines_version = "1.5.0"
rome_version = "1.7.1-f4"
moshi_version = "1.5.0"
threetentest_version = "1.2.2"
threetenabp_version = "1.2.2"
jsoup_version = "1.7.3"
readability4j_version = "1.0.5"
androidx_core_version = "1.5.0"
androidx_testcore_version = "1.4.0"
workmanager_version = '2.4.0'
constraintlayout_version = "2.0.4"
recyclerview_version = "1.0.0"
legacy_support_version = "1.0.0"
appcompat_version = "1.3.0"
material_version = "1.1.0"
preference_version = "1.1.0"
test_runner_version = "1.4.0"
test_rules_version = "1.4.0"
lifecycle_version = "2.3.1"
savedstate_version = "1.1.0"
room_version = "2.3.0"
// Compose related below
nav_version = "2.4.0-alpha08"
activityComposeVersion = "1.3.0"
composeVersion = "1.0.0"
navigationComposeVersion = nav_version
pagingVersion = "3.0.0"
pagingComposeVersion = "1.0.0-alpha12"
accompanistCoilVersion = "0.12.0"
accompanistVersion = "0.17.0"
// Tests
espresso_version = "3.1.0"
uiautomator_version = "2.2.0"
test_ext_junit_version = "1.0.0"
mockk_version = "1.9.3"
mockito_version = "2.13.0"
}
repositories {
mavenCentral()
google()
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_build_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
tasks.withType(JavaCompile) {
options.incremental = true
options.encoding = 'UTF-8'
}
}
subprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
// Treat all Kotlin warnings as errors
allWarningsAsErrors = false
freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
freeCompilerArgs += '-Xopt-in=kotlin.Experimental'
// Set JVM target to 1.8
jvmTarget = "1.8"
}
}
}