blob: d0ff37ffac31f612d87da618a208f980cd2afe17 [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 {
Alexander Martinz3a08a642021-12-31 11:12:13 +010034 compileSdkVersion 31
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
Alexander Martinz56ae82a2022-01-11 11:49:13 +010045 targetSdkVersion 31
Alexander Martinz0aec1972019-01-30 22:10:13 +010046
lopez056565bd2fda2022-04-14 01:15:56 +010047 versionCode 411
48 versionName '4.1.1'
Alexander Martinz0aec1972019-01-30 22:10:13 +010049 }
50
51 buildTypes {
52 debug {
53 applicationIdSuffix ".dev"
54
55 debuggable true
56 minifyEnabled false
57 shrinkResources false
58 zipAlignEnabled false
59 }
60 debugProguard {
61 applicationIdSuffix ".dev"
62
63 debuggable true
Alexander Martinz3fe31512021-04-20 17:18:42 +020064 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
Alexander Martinz0aec1972019-01-30 22:10:13 +010065 minifyEnabled true
66 shrinkResources true
67 zipAlignEnabled true
68 }
69 release {
70 debuggable false
Alexander Martinz3fe31512021-04-20 17:18:42 +020071 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
Alexander Martinz0aec1972019-01-30 22:10:13 +010072 minifyEnabled true
73 shrinkResources true
74 zipAlignEnabled true
75 }
76 }
77
Alexander Martinz0aec1972019-01-30 22:10:13 +010078 lintOptions {
79 baseline file("lint-baseline.xml")
80
81 abortOnError true
82 checkAllWarnings true
83 showAll true
84
85 warningsAsErrors true
86
87 // HTML report is enough (can be found inside build/reports/)
88 xmlReport false
89
90 // do not warn about translations
91 disable 'MissingTranslation', 'ExtraTranslation'
92 }
93
94 packagingOptions {
95 exclude 'META-INF/LICENSE.txt'
96 exclude 'META-INF/LICENSE-FIREBASE.txt'
97 exclude 'META-INF/NOTICE.txt'
98 exclude '.readme'
99 }
100
101 sourceSets {
102 main {
Joey00a6e302021-06-01 21:24:10 +0200103 manifest.srcFile 'AndroidManifest.xml'
Alexander Martinz0aec1972019-01-30 22:10:13 +0100104
105 aidl.srcDirs = ['src']
106 assets.srcDirs = ['assets']
107 java.srcDirs = ['src']
Alexander Martinz0aec1972019-01-30 22:10:13 +0100108 res.srcDirs = ['res']
109 resources.srcDirs = ['res']
110 }
111 }
112}
113
114dependencies {
Alexander Martinz05c8e902019-02-25 19:38:44 +0100115 // AndroidX - https://developer.android.com/jetpack/androidx/releases
Alexander Martinz0aec1972019-01-30 22:10:13 +0100116
Alexander Martinz05c8e902019-02-25 19:38:44 +0100117 // see https://developer.android.com/jetpack/androidx/releases/appcompat
Michael W9ca88ed2021-12-17 17:10:47 +0100118 implementation "androidx.appcompat:appcompat:1.4.0"
Alexander Martinz05c8e902019-02-25 19:38:44 +0100119
120 // see https://developer.android.com/jetpack/androidx/releases/cardview
121 implementation "androidx.cardview:cardview:1.0.0"
122
123 // see https://developer.android.com/jetpack/androidx/releases/palette
124 implementation "androidx.palette:palette:1.0.0"
125
Alexander Martinzbb1a94d2019-02-27 19:55:07 +0100126 // see https://developer.android.com/jetpack/androidx/releases/preference
Michael Wc9c82882021-02-08 23:23:52 +0100127 implementation "androidx.preference:preference:1.1.1"
Alexander Martinzbb1a94d2019-02-27 19:55:07 +0100128
Alexander Martinz05c8e902019-02-25 19:38:44 +0100129 // see https://developer.android.com/jetpack/androidx/releases/recyclerview
Michael W9ca88ed2021-12-17 17:10:47 +0100130 implementation "androidx.recyclerview:recyclerview:1.2.1"
Alexander Martinz05c8e902019-02-25 19:38:44 +0100131
132 // see https://developer.android.com/jetpack/androidx/releases/constraintlayout
Michael W9ca88ed2021-12-17 17:10:47 +0100133 implementation "androidx.constraintlayout:constraintlayout:2.1.2"
Joey95a7c9e2019-02-26 21:27:19 +0100134
135 // see https://github.com/material-components/material-components-android/releases
Michael W9ca88ed2021-12-17 17:10:47 +0100136 implementation "com.google.android.material:material:1.4.0"
Alexander Martinz05c8e902019-02-25 19:38:44 +0100137}