blob: 1f6ac798a5323d883278f53152ed6c9191562f65 [file] [log] [blame]
Alexander Martinz0aec1972019-01-30 22:10:13 +01001buildscript {
2 repositories {
3 google()
Alexander Martinz76e731a2021-05-05 16:20:25 +02004 mavenCentral()
Alexander Martinz0aec1972019-01-30 22:10:13 +01005 }
6
7 dependencies {
Michael Wa67157a2021-12-17 17:10:33 +01008 classpath 'com.android.tools.build:gradle:7.0.4'
Alexander Martinz0aec1972019-01-30 22:10:13 +01009
10 // NOTE: Do not place your application dependencies here; they belong
11 // in the individual module build.gradle files
12 }
13}
14
15allprojects {
16 repositories {
17 google()
Alexander Martinz76e731a2021-05-05 16:20:25 +020018 mavenCentral()
Alexander Martinz0aec1972019-01-30 22:10:13 +010019 }
20}
21
Alexander Martinz1ac38c42020-02-06 15:07:21 +010022tasks.register("updateGradleWrapper", Wrapper) {
Alexander Martinz0aec1972019-01-30 22:10:13 +010023 // https://docs.gradle.org/current/release-notes.html
24 // https://github.com/gradle/gradle/releases
Alexander Martinz86725002021-12-31 11:08:25 +010025 gradleVersion = '7.3.3'
Alexander Martinz0aec1972019-01-30 22:10:13 +010026 distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
27}
28
29//==================================================================================================
30
31apply plugin: 'com.android.application'
32
33android {
2bllw810366aa2021-04-06 11:44:18 +020034 compileSdkVersion 30
Alexander Martinz0aec1972019-01-30 22:10:13 +010035
36 compileOptions {
37 sourceCompatibility JavaVersion.VERSION_1_8
38 targetCompatibility JavaVersion.VERSION_1_8
39 }
40
41 defaultConfig {
42 applicationId "org.lineageos.eleven"
43
Alexander Martinz5aa000f2021-05-05 18:57:38 +020044 minSdkVersion 28
2bllw810366aa2021-04-06 11:44:18 +020045 targetSdkVersion 30
Alexander Martinz0aec1972019-01-30 22:10:13 +010046
Alexander Martinz1fa21532021-04-20 17:13:45 +020047 versionCode 401
48 versionName '4.0.1'
Alexander Martinz0aec1972019-01-30 22:10:13 +010049
50 renderscriptTargetApi 19
51 renderscriptSupportModeEnabled true
52 }
53
54 buildTypes {
55 debug {
56 applicationIdSuffix ".dev"
57
58 debuggable true
59 minifyEnabled false
60 shrinkResources false
61 zipAlignEnabled false
62 }
63 debugProguard {
64 applicationIdSuffix ".dev"
65
66 debuggable true
Alexander Martinz3fe31512021-04-20 17:18:42 +020067 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
Alexander Martinz0aec1972019-01-30 22:10:13 +010068 minifyEnabled true
69 shrinkResources true
70 zipAlignEnabled true
71 }
72 release {
73 debuggable false
Alexander Martinz3fe31512021-04-20 17:18:42 +020074 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
Alexander Martinz0aec1972019-01-30 22:10:13 +010075 minifyEnabled true
76 shrinkResources true
77 zipAlignEnabled true
78 }
79 }
80
Alexander Martinz0aec1972019-01-30 22:10:13 +010081 lintOptions {
82 baseline file("lint-baseline.xml")
83
84 abortOnError true
85 checkAllWarnings true
86 showAll true
87
88 warningsAsErrors true
89
90 // HTML report is enough (can be found inside build/reports/)
91 xmlReport false
92
93 // do not warn about translations
94 disable 'MissingTranslation', 'ExtraTranslation'
95 }
96
97 packagingOptions {
98 exclude 'META-INF/LICENSE.txt'
99 exclude 'META-INF/LICENSE-FIREBASE.txt'
100 exclude 'META-INF/NOTICE.txt'
101 exclude '.readme'
102 }
103
104 sourceSets {
105 main {
Joey00a6e302021-06-01 21:24:10 +0200106 manifest.srcFile 'AndroidManifest.xml'
Alexander Martinz0aec1972019-01-30 22:10:13 +0100107
108 aidl.srcDirs = ['src']
109 assets.srcDirs = ['assets']
110 java.srcDirs = ['src']
111 renderscript.srcDirs = ['src']
112 res.srcDirs = ['res']
113 resources.srcDirs = ['res']
114 }
115 }
116}
117
118dependencies {
Alexander Martinz05c8e902019-02-25 19:38:44 +0100119 // AndroidX - https://developer.android.com/jetpack/androidx/releases
Alexander Martinz0aec1972019-01-30 22:10:13 +0100120
Alexander Martinz05c8e902019-02-25 19:38:44 +0100121 // see https://developer.android.com/jetpack/androidx/releases/appcompat
Michael W9ca88ed2021-12-17 17:10:47 +0100122 implementation "androidx.appcompat:appcompat:1.4.0"
Alexander Martinz05c8e902019-02-25 19:38:44 +0100123
124 // see https://developer.android.com/jetpack/androidx/releases/cardview
125 implementation "androidx.cardview:cardview:1.0.0"
126
127 // see https://developer.android.com/jetpack/androidx/releases/palette
128 implementation "androidx.palette:palette:1.0.0"
129
Alexander Martinzbb1a94d2019-02-27 19:55:07 +0100130 // see https://developer.android.com/jetpack/androidx/releases/preference
Michael Wc9c82882021-02-08 23:23:52 +0100131 implementation "androidx.preference:preference:1.1.1"
Alexander Martinzbb1a94d2019-02-27 19:55:07 +0100132
Alexander Martinz05c8e902019-02-25 19:38:44 +0100133 // see https://developer.android.com/jetpack/androidx/releases/recyclerview
Michael W9ca88ed2021-12-17 17:10:47 +0100134 implementation "androidx.recyclerview:recyclerview:1.2.1"
Alexander Martinz05c8e902019-02-25 19:38:44 +0100135
136 // see https://developer.android.com/jetpack/androidx/releases/constraintlayout
Michael W9ca88ed2021-12-17 17:10:47 +0100137 implementation "androidx.constraintlayout:constraintlayout:2.1.2"
Joey95a7c9e2019-02-26 21:27:19 +0100138
139 // see https://github.com/material-components/material-components-android/releases
Michael W9ca88ed2021-12-17 17:10:47 +0100140 implementation "com.google.android.material:material:1.4.0"
Alexander Martinz05c8e902019-02-25 19:38:44 +0100141}