Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 1 | buildscript { |
| 2 | repositories { |
| 3 | google() |
Alexander Martinz | 76e731a | 2021-05-05 16:20:25 +0200 | [diff] [blame] | 4 | mavenCentral() |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 5 | } |
| 6 | |
| 7 | dependencies { |
Michael W | a67157a | 2021-12-17 17:10:33 +0100 | [diff] [blame] | 8 | classpath 'com.android.tools.build:gradle:7.0.4' |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 9 | |
| 10 | // NOTE: Do not place your application dependencies here; they belong |
| 11 | // in the individual module build.gradle files |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | allprojects { |
| 16 | repositories { |
| 17 | google() |
Alexander Martinz | 76e731a | 2021-05-05 16:20:25 +0200 | [diff] [blame] | 18 | mavenCentral() |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 19 | } |
| 20 | } |
| 21 | |
Alexander Martinz | 1ac38c4 | 2020-02-06 15:07:21 +0100 | [diff] [blame] | 22 | tasks.register("updateGradleWrapper", Wrapper) { |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 23 | // https://docs.gradle.org/current/release-notes.html |
| 24 | // https://github.com/gradle/gradle/releases |
Alexander Martinz | 8672500 | 2021-12-31 11:08:25 +0100 | [diff] [blame] | 25 | gradleVersion = '7.3.3' |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 26 | distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip" |
| 27 | } |
| 28 | |
| 29 | //================================================================================================== |
| 30 | |
| 31 | apply plugin: 'com.android.application' |
| 32 | |
| 33 | android { |
2bllw8 | 10366aa | 2021-04-06 11:44:18 +0200 | [diff] [blame] | 34 | compileSdkVersion 30 |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 35 | |
| 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 Martinz | 5aa000f | 2021-05-05 18:57:38 +0200 | [diff] [blame] | 44 | minSdkVersion 28 |
2bllw8 | 10366aa | 2021-04-06 11:44:18 +0200 | [diff] [blame] | 45 | targetSdkVersion 30 |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 46 | |
Alexander Martinz | 1fa2153 | 2021-04-20 17:13:45 +0200 | [diff] [blame] | 47 | versionCode 401 |
| 48 | versionName '4.0.1' |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 49 | |
| 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 Martinz | 3fe3151 | 2021-04-20 17:18:42 +0200 | [diff] [blame] | 67 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg' |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 68 | minifyEnabled true |
| 69 | shrinkResources true |
| 70 | zipAlignEnabled true |
| 71 | } |
| 72 | release { |
| 73 | debuggable false |
Alexander Martinz | 3fe3151 | 2021-04-20 17:18:42 +0200 | [diff] [blame] | 74 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg' |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 75 | minifyEnabled true |
| 76 | shrinkResources true |
| 77 | zipAlignEnabled true |
| 78 | } |
| 79 | } |
| 80 | |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 81 | 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 { |
Joey | 00a6e30 | 2021-06-01 21:24:10 +0200 | [diff] [blame] | 106 | manifest.srcFile 'AndroidManifest.xml' |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 107 | |
| 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 | |
| 118 | dependencies { |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 119 | // AndroidX - https://developer.android.com/jetpack/androidx/releases |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 120 | |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 121 | // see https://developer.android.com/jetpack/androidx/releases/appcompat |
Michael W | 9ca88ed | 2021-12-17 17:10:47 +0100 | [diff] [blame^] | 122 | implementation "androidx.appcompat:appcompat:1.4.0" |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 123 | |
| 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 Martinz | bb1a94d | 2019-02-27 19:55:07 +0100 | [diff] [blame] | 130 | // see https://developer.android.com/jetpack/androidx/releases/preference |
Michael W | c9c8288 | 2021-02-08 23:23:52 +0100 | [diff] [blame] | 131 | implementation "androidx.preference:preference:1.1.1" |
Alexander Martinz | bb1a94d | 2019-02-27 19:55:07 +0100 | [diff] [blame] | 132 | |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 133 | // see https://developer.android.com/jetpack/androidx/releases/recyclerview |
Michael W | 9ca88ed | 2021-12-17 17:10:47 +0100 | [diff] [blame^] | 134 | implementation "androidx.recyclerview:recyclerview:1.2.1" |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 135 | |
| 136 | // see https://developer.android.com/jetpack/androidx/releases/constraintlayout |
Michael W | 9ca88ed | 2021-12-17 17:10:47 +0100 | [diff] [blame^] | 137 | implementation "androidx.constraintlayout:constraintlayout:2.1.2" |
Joey | 95a7c9e | 2019-02-26 21:27:19 +0100 | [diff] [blame] | 138 | |
| 139 | // see https://github.com/material-components/material-components-android/releases |
Michael W | 9ca88ed | 2021-12-17 17:10:47 +0100 | [diff] [blame^] | 140 | implementation "com.google.android.material:material:1.4.0" |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 141 | } |