OSDN Git Service

VisualizerView: pull in updates from system implementation
[android-x86/packages-apps-Eleven.git] / build.gradle
1 buildscript {
2     repositories {
3         google()
4         jcenter()
5     }
6
7     dependencies {
8         classpath "com.android.tools.build:gradle:3.3.1"
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()
18         jcenter()
19     }
20 }
21
22 task updateGradleWrapper(type: Wrapper) {
23     // https://docs.gradle.org/current/release-notes.html
24     // https://github.com/gradle/gradle/releases
25     gradleVersion = '5.1.1'
26     distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
27 }
28
29 //==================================================================================================
30
31 apply plugin: 'com.android.application'
32
33 android {
34     compileSdkVersion 28
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
44         minSdkVersion 26
45         targetSdkVersion 28
46
47         versionCode 3
48         versionName '3.0'
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
67             proguardFiles 'proguard.cfg', 'proguard-debug.cfg'
68             minifyEnabled true
69             shrinkResources true
70             zipAlignEnabled true
71         }
72         release {
73             debuggable false
74             proguardFiles 'proguard.cfg'
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 {
111             manifest.srcFile 'AndroidManifest-gradle.xml'
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 {
124     // see https://developer.android.com/topic/libraries/support-library/revisions.html
125     implementation "com.android.support:appcompat-v7:28.0.0"
126     implementation "com.android.support:cardview-v7:28.0.0"
127     implementation "com.android.support:palette-v7:28.0.0"
128     implementation "com.android.support:recyclerview-v7:28.0.0"
129 }
130