-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
146 lines (114 loc) · 3.92 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
tasks.register("updateGradleWrapper", Wrapper) {
// https://docs.gradle.org/current/release-notes.html
// https://github.com/gradle/gradle/releases
gradleVersion = '7.0'
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}
//==================================================================================================
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "org.lineageos.eleven"
minSdkVersion 28
targetSdkVersion 30
versionCode 401
versionName '4.0.1'
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
}
buildTypes {
debug {
applicationIdSuffix ".dev"
debuggable true
minifyEnabled false
shrinkResources false
zipAlignEnabled false
}
debugProguard {
applicationIdSuffix ".dev"
debuggable true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
minifyEnabled true
shrinkResources true
zipAlignEnabled true
}
release {
debuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
minifyEnabled true
shrinkResources true
zipAlignEnabled true
}
}
dexOptions {
dexInProcess true
preDexLibraries true
}
lintOptions {
baseline file("lint-baseline.xml")
abortOnError true
checkAllWarnings true
showAll true
warningsAsErrors true
// HTML report is enough (can be found inside build/reports/)
xmlReport false
// do not warn about translations
disable 'MissingTranslation', 'ExtraTranslation'
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE.txt'
exclude '.readme'
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
aidl.srcDirs = ['src']
assets.srcDirs = ['assets']
java.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
resources.srcDirs = ['res']
}
}
}
dependencies {
// AndroidX - https://developer.android.com/jetpack/androidx/releases
// see https://developer.android.com/jetpack/androidx/releases/appcompat
implementation "androidx.appcompat:appcompat:1.4.0"
// see https://developer.android.com/jetpack/androidx/releases/cardview
implementation "androidx.cardview:cardview:1.0.0"
// see https://developer.android.com/jetpack/androidx/releases/palette
implementation "androidx.palette:palette:1.0.0"
// see https://developer.android.com/jetpack/androidx/releases/preference
implementation "androidx.preference:preference:1.1.1"
// see https://developer.android.com/jetpack/androidx/releases/recyclerview
implementation "androidx.recyclerview:recyclerview:1.2.1"
// see https://developer.android.com/jetpack/androidx/releases/constraintlayout
implementation "androidx.constraintlayout:constraintlayout:2.1.2"
// see https://github.com/material-components/material-components-android/releases
implementation "com.google.android.material:material:1.4.0"
}