blob: dc8a93c9a755fb73513c13d6f0d02aa71543a72d [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 {
Alexander Martinz76e731a2021-05-05 16:20:25 +02008 classpath 'com.android.tools.build:gradle:4.2.1'
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 Martinz76e731a2021-05-05 16:20:25 +020025 gradleVersion = '7.0'
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
81 dexOptions {
82 dexInProcess true
83 preDexLibraries true
84 }
85
86 lintOptions {
87 baseline file("lint-baseline.xml")
88
89 abortOnError true
90 checkAllWarnings true
91 showAll true
92
93 warningsAsErrors true
94
95 // HTML report is enough (can be found inside build/reports/)
96 xmlReport false
97
98 // do not warn about translations
99 disable 'MissingTranslation', 'ExtraTranslation'
100 }
101
102 packagingOptions {
103 exclude 'META-INF/LICENSE.txt'
104 exclude 'META-INF/LICENSE-FIREBASE.txt'
105 exclude 'META-INF/NOTICE.txt'
106 exclude '.readme'
107 }
108
109 sourceSets {
110 main {
Joey00a6e302021-06-01 21:24:10 +0200111 manifest.srcFile 'AndroidManifest.xml'
Alexander Martinz0aec1972019-01-30 22:10:13 +0100112
113 aidl.srcDirs = ['src']
114 assets.srcDirs = ['assets']
115 java.srcDirs = ['src']
116 renderscript.srcDirs = ['src']
117 res.srcDirs = ['res']
118 resources.srcDirs = ['res']
119 }
120 }
121}
122
123dependencies {
Alexander Martinz05c8e902019-02-25 19:38:44 +0100124 // AndroidX - https://developer.android.com/jetpack/androidx/releases
Alexander Martinz0aec1972019-01-30 22:10:13 +0100125
Alexander Martinz05c8e902019-02-25 19:38:44 +0100126 // see https://developer.android.com/jetpack/androidx/releases/appcompat
Michael Wc9c82882021-02-08 23:23:52 +0100127 implementation "androidx.appcompat:appcompat:1.2.0"
Alexander Martinz05c8e902019-02-25 19:38:44 +0100128
129 // see https://developer.android.com/jetpack/androidx/releases/cardview
130 implementation "androidx.cardview:cardview:1.0.0"
131
132 // see https://developer.android.com/jetpack/androidx/releases/palette
133 implementation "androidx.palette:palette:1.0.0"
134
Alexander Martinzbb1a94d2019-02-27 19:55:07 +0100135 // see https://developer.android.com/jetpack/androidx/releases/preference
Michael Wc9c82882021-02-08 23:23:52 +0100136 implementation "androidx.preference:preference:1.1.1"
Alexander Martinzbb1a94d2019-02-27 19:55:07 +0100137
Alexander Martinz05c8e902019-02-25 19:38:44 +0100138 // see https://developer.android.com/jetpack/androidx/releases/recyclerview
Michael Wc9c82882021-02-08 23:23:52 +0100139 implementation "androidx.recyclerview:recyclerview:1.1.0"
Alexander Martinz05c8e902019-02-25 19:38:44 +0100140
141 // see https://developer.android.com/jetpack/androidx/releases/constraintlayout
Michael Wc9c82882021-02-08 23:23:52 +0100142 implementation "androidx.constraintlayout:constraintlayout:2.0.4"
Joey95a7c9e2019-02-26 21:27:19 +0100143
144 // see https://github.com/material-components/material-components-android/releases
Michael Wc9c82882021-02-08 23:23:52 +0100145 implementation "com.google.android.material:material:1.3.0"
Alexander Martinz05c8e902019-02-25 19:38:44 +0100146}