-
Notifications
You must be signed in to change notification settings - Fork 32
/
build.gradle
75 lines (66 loc) · 1.89 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.versions = [
'versionName' : '1.0.0',
'versionCode' : 1,
'compileSdk' : 34,
'targetSdk' : 28,
'minSdk' : 21,
'sourceCompatibility' : JavaVersion.VERSION_1_8,
'targetCompatibility' : JavaVersion.VERSION_1_8,
'jvmTarget' : "1.8"
]
ext {
abiArm = true
abiX86 = true
abiSplits = false
buildUniversalApk = true
}
ext.versions += [
'annotation' : '1.6.0',
'appcompat' : '1.6.1',
'constraintlayout' : '2.1.4',
'core_ktx' : '1.13.1',
'documentfile' : '1.0.1',
'drawerlayout' : '1.2.0',
'fragment_ktx' : '1.7.0',
'kotlin' : '1.9.20',
'material' : '1.12.0',
'preference' : '1.2.1',
'vectordrawable' : '1.2.0',
'webkit' : '1.11.0',
'kotlin_coroutines': '1.4.1',
'kotlin_coroutines_core': '1.3.7',
]
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
}
}
allprojects {
repositories {
mavenCentral()
google()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile).tap {
configureEach {
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
}
subprojects {
def androidHome
if ((androidHome = System.env.'ANDROID_HOME')
&& (androidHome = androidHome as File).exists()
&& androidHome.canWrite())
apply plugin: 'android-sdk-manager'
}
tasks.register('clean') {
delete File.getBuildDir()
}