Group compileOptions together

This commit is contained in:
Daniel Martí 2015-05-20 18:37:05 +02:00
parent c39e1cab6e
commit 3eab46d7f9

View File

@ -129,11 +129,6 @@ android {
compileSdkVersion 21 compileSdkVersion 21
buildToolsVersion '22.0.1' buildToolsVersion '22.0.1'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets { sourceSets {
main { main {
manifest.srcFile 'AndroidManifest.xml' manifest.srcFile 'AndroidManifest.xml'
@ -163,7 +158,18 @@ android {
} }
} }
compileOptions.encoding = "UTF-8" compileOptions {
compileOptions.encoding = "UTF-8"
// Use Java 1.7, requires minSdk 8
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
// Enable all Android lint warnings // Enable all Android lint warnings
gradle.projectsEvaluated { gradle.projectsEvaluated {
@ -172,10 +178,6 @@ android {
} }
} }
lintOptions {
abortOnError false
}
} }
// This person took the example code below from another blogpost online, however // This person took the example code below from another blogpost online, however