-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
83 lines (71 loc) · 2.21 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
buildscript {
ext.kotlin_version = '1.9.23'
ext.signal_version = '2.8.1'
ext.protoc_version = '4.26.1'
ext.desugarJdk = '2.0.4'
repositories {
google()
mavenCentral()
maven { url 'https://maven.google.com' }
maven { url 'https://jitpack.io' }
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:8.4.0'
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.1"
classpath 'com.google.gms:google-services:4.4.0'
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.3.1")
}
}
ext {
commonPlugins = new File(projectDir, 'common-plugins.gradle')
internalScript = new File(projectDir, 'internal.gradle')
enableTestCodeCoverage = true
compileSdkVersion = 34
targetSdkVersion = 34
minSdkVersion = 23
androidAnnotationsVersion = '4.8.0'
androidAnnotationsAPIVersion = '4.8.0'
buildToolsVersion = '34.0.0'
buildNumber = 'dev'
espressoVersion = '3.5.0'
supportTestVersion = '1.0'
lanternDir = projectDir.parentFile.parentFile
qualityScript = new File(lanternDir, 'quality.gradle')
deployScript = new File(lanternDir, 'deploy.gradle')
libs = fileTree(dir: 'libs', include: ['*.jar'])
mavenAntTasks = 'org.apache.maven:maven-ant-tasks:2.1.3'
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
// This code fixes a 'namespace not specified' error upgrading AGP to >= 8.x.x.
subprojects {
afterEvaluate { project ->
if (project.hasProperty('android')) {
project.android {
if (namespace == null) {
namespace project.group
}
}
}
}
}
apply plugin: "org.jlleitschuh.gradle.ktlint"
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}