| buildscript { |
| repositories { |
| google() |
| jcenter() |
| } |
| |
| dependencies { |
| classpath "com.android.tools.build:gradle:3.3.1" |
| |
| // NOTE: Do not place your application dependencies here; they belong |
| // in the individual module build.gradle files |
| } |
| } |
| |
| allprojects { |
| repositories { |
| google() |
| jcenter() |
| } |
| } |
| |
| task updateGradleWrapper(type: Wrapper) { |
| // https://docs.gradle.org/current/release-notes.html |
| // https://github.com/gradle/gradle/releases |
| gradleVersion = '5.1.1' |
| distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip" |
| } |
| |
| //================================================================================================== |
| |
| apply plugin: 'com.android.application' |
| |
| android { |
| compileSdkVersion 28 |
| |
| compileOptions { |
| sourceCompatibility JavaVersion.VERSION_1_8 |
| targetCompatibility JavaVersion.VERSION_1_8 |
| } |
| |
| defaultConfig { |
| applicationId "org.lineageos.eleven" |
| |
| minSdkVersion 26 |
| targetSdkVersion 28 |
| |
| versionCode 3 |
| versionName '3.0' |
| |
| renderscriptTargetApi 19 |
| renderscriptSupportModeEnabled true |
| } |
| |
| buildTypes { |
| debug { |
| applicationIdSuffix ".dev" |
| |
| debuggable true |
| minifyEnabled false |
| shrinkResources false |
| zipAlignEnabled false |
| } |
| debugProguard { |
| applicationIdSuffix ".dev" |
| |
| debuggable true |
| proguardFiles 'proguard.cfg', 'proguard-debug.cfg' |
| minifyEnabled true |
| shrinkResources true |
| zipAlignEnabled true |
| } |
| release { |
| debuggable false |
| proguardFiles 'proguard.cfg' |
| minifyEnabled true |
| shrinkResources true |
| zipAlignEnabled true |
| } |
| } |
| |
| dexOptions { |
| dexInProcess true |
| preDexLibraries true |
| } |
| |
| lintOptions { |
| baseline file("lint-baseline.xml") |
| |
| abortOnError true |
| checkAllWarnings true |
| showAll true |
| |
| warningsAsErrors true |
| |
| // HTML report is enough (can be found inside build/reports/) |
| xmlReport false |
| |
| // do not warn about translations |
| disable 'MissingTranslation', 'ExtraTranslation' |
| } |
| |
| packagingOptions { |
| exclude 'META-INF/LICENSE.txt' |
| exclude 'META-INF/LICENSE-FIREBASE.txt' |
| exclude 'META-INF/NOTICE.txt' |
| exclude '.readme' |
| } |
| |
| sourceSets { |
| main { |
| manifest.srcFile 'AndroidManifest-gradle.xml' |
| |
| aidl.srcDirs = ['src'] |
| assets.srcDirs = ['assets'] |
| java.srcDirs = ['src'] |
| renderscript.srcDirs = ['src'] |
| res.srcDirs = ['res'] |
| resources.srcDirs = ['res'] |
| } |
| } |
| } |
| |
| dependencies { |
| // see https://developer.android.com/topic/libraries/support-library/revisions.html |
| implementation "com.android.support:appcompat-v7:28.0.0" |
| implementation "com.android.support:cardview-v7:28.0.0" |
| implementation "com.android.support:palette-v7:28.0.0" |
| implementation "com.android.support:recyclerview-v7:28.0.0" |
| } |
| |