-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
130 lines (110 loc) · 3.55 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id "com.android.application" apply false
id "org.jetbrains.kotlin.android" apply false
id "org.jetbrains.kotlin.plugin.serialization"
id "io.sentry.android.gradle"
id "com.automattic.android.configure"
}
allprojects {
apply plugin: 'checkstyle'
repositories {
maven {
url "https://a8c-libs.s3.amazonaws.com/android"
content {
includeGroup "com.automattic"
includeGroup "com.automattic.stories"
includeGroup "org.wordpress"
}
}
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
if (tasks.findByPath('checkstyle') == null) {
tasks.create(name: 'checkstyle', type: Checkstyle) {
source 'src'
include '**/*.java'
include '**/*.kt'
exclude '**/gen/**'
classpath = files()
}
checkstyle {
toolVersion = '8.3'
configFile file("${project.rootDir}/config/checkstyle.xml")
}
}
tasks.withType(KotlinCompile).all {
kotlinOptions {
allWarningsAsErrors = true
}
}
}
subprojects {
configurations {
ktlint
}
dependencies {
ktlint 'com.github.shyiko:ktlint:0.31.0'
}
if (tasks.findByPath('ktlint') == null) {
tasks.create(name: 'ktlint', type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "src/**/*.kt"
}
}
if (tasks.findByPath('ktlintFormat') == null) {
tasks.create(name: 'ktlintFormat', type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "-F", "src/**/*.kt"
}
}
if (tasks.findByPath('ciktlint') == null) {
tasks.create(name: 'ciktlint', type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "src/**/*.kt", "--reporter=checkstyle,output=${buildDir}/ktlint.xml"
}
}
}
ext {
minSdkVersion = 24
compileSdkVersion = 34
targetSdkVersion = 34
}
ext {
// debug
flipperVersion = '0.138.0'
soloaderVersion = '0.10.3'
// main
androidxAppcompatVersion = '1.0.2'
androidxCameraVersion = "1.0.0-alpha06" // check for updates
androidxConstraintlayoutVersion = '1.1.3'
androidxCoreVersion = '1.2.0'
androidxEmojiVersion = '1.0.0'
androidxLifecycleVersion = '2.2.0'
androidxNavigationVersion = '2.0.0'
androidxPreferenceVersion = '1.1.0'
androidxRecyclerviewVersion = '1.1.0'
chrisbanesPhotoviewVersion = '2.3.0'
eventBusVersion = '3.3.1'
glideVersion = '4.10.0'
glideTransformationsVersion = '4.3.0'
googleMaterialVersion = '1.2.1'
kotlinxCoroutinesVersion = '1.3.9'
kotlinxSerializationVersion = '1.0-M1-1.4.0-rc'
sentryAndroidVersion = "6.32.0"
slf4jVersion = '1.7.25'
// test
junitVersion = '4.13.2'
// other
wordPressLintVersion = '2.0.0'
// project
mp4composeProjectDependency = project.hasProperty("mp4composeVersion") ? "com.automattic.stories:mp4compose:${project.getProperty("mp4composeVersion")}" : project(":mp4compose")
photoEditorProjectDependency = project.hasProperty("photoEditorVersion") ? "com.automattic.stories:photoeditor:${project.getProperty("photoEditorVersion")}" : project(":photoeditor")
}
task clean(type: Delete) {
delete rootProject.buildDir
}