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 { |
Alexander Martinz | 76e731a | 2021-05-05 16:20:25 +0200 | [diff] [blame] | 8 | classpath 'com.android.tools.build:gradle:4.2.1' |
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 | 76e731a | 2021-05-05 16:20:25 +0200 | [diff] [blame] | 25 | gradleVersion = '7.0' |
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 | |
| 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 { |
Joey | 00a6e30 | 2021-06-01 21:24:10 +0200 | [diff] [blame^] | 111 | manifest.srcFile 'AndroidManifest.xml' |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 112 | |
| 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 | |
| 123 | dependencies { |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 124 | // AndroidX - https://developer.android.com/jetpack/androidx/releases |
Alexander Martinz | 0aec197 | 2019-01-30 22:10:13 +0100 | [diff] [blame] | 125 | |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 126 | // see https://developer.android.com/jetpack/androidx/releases/appcompat |
Michael W | c9c8288 | 2021-02-08 23:23:52 +0100 | [diff] [blame] | 127 | implementation "androidx.appcompat:appcompat:1.2.0" |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 128 | |
| 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 Martinz | bb1a94d | 2019-02-27 19:55:07 +0100 | [diff] [blame] | 135 | // see https://developer.android.com/jetpack/androidx/releases/preference |
Michael W | c9c8288 | 2021-02-08 23:23:52 +0100 | [diff] [blame] | 136 | implementation "androidx.preference:preference:1.1.1" |
Alexander Martinz | bb1a94d | 2019-02-27 19:55:07 +0100 | [diff] [blame] | 137 | |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 138 | // see https://developer.android.com/jetpack/androidx/releases/recyclerview |
Michael W | c9c8288 | 2021-02-08 23:23:52 +0100 | [diff] [blame] | 139 | implementation "androidx.recyclerview:recyclerview:1.1.0" |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 140 | |
| 141 | // see https://developer.android.com/jetpack/androidx/releases/constraintlayout |
Michael W | c9c8288 | 2021-02-08 23:23:52 +0100 | [diff] [blame] | 142 | implementation "androidx.constraintlayout:constraintlayout:2.0.4" |
Joey | 95a7c9e | 2019-02-26 21:27:19 +0100 | [diff] [blame] | 143 | |
| 144 | // see https://github.com/material-components/material-components-android/releases |
Michael W | c9c8288 | 2021-02-08 23:23:52 +0100 | [diff] [blame] | 145 | implementation "com.google.android.material:material:1.3.0" |
Alexander Martinz | 05c8e90 | 2019-02-25 19:38:44 +0100 | [diff] [blame] | 146 | } |