Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.

Commit e05507c

Browse files
author
Zachary Sweigart
committed
Added tools to android components
1 parent 6a0b4ae commit e05507c

File tree

2 files changed

+14
-38
lines changed

2 files changed

+14
-38
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ subprojects {
3636
}
3737

3838
task wrapper(type: Wrapper) {
39-
gradleVersion = '4.5.1'
39+
gradleVersion = '4.6'
4040
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
4141
}
4242

sample/build.gradle

Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -14,47 +14,23 @@
1414
* limitations under the License.
1515
*/
1616

17-
buildscript {
18-
dependencies {
19-
classpath deps.build.gradlePlugins.android
20-
}
17+
plugins {
18+
id 'com.android.application'
2119
}
2220

23-
apply plugin: 'com.android.application'
24-
2521
android {
26-
compileSdkVersion deps.build.compileSdkVersion
27-
buildToolsVersion deps.build.buildToolsVersion
28-
29-
defaultConfig {
30-
applicationId "com.uber.myapplication"
31-
minSdkVersion deps.build.minSdkVersion
32-
targetSdkVersion deps.build.targetSdkVersion
33-
versionCode 1
34-
versionName "1.0"
35-
}
36-
compileOptions {
37-
sourceCompatibility JavaVersion.VERSION_1_7
38-
targetCompatibility JavaVersion.VERSION_1_7
39-
}
40-
41-
// Setup a simple lint config for an android app/library.
42-
lintOptions {
43-
abortOnError true
44-
lintConfig rootProject.file('config/lint/lint.xml')
45-
disable 'InvalidPackage'
46-
}
47-
}
48-
49-
// This is required to run checkstyle on an android app/library.
50-
task checkstyle(type: Checkstyle) {
51-
source 'src'
52-
include '**/*.java'
53-
exclude '**/gen/**'
54-
55-
classpath = files()
22+
compileSdkVersion deps.build.compileSdkVersion
23+
buildToolsVersion deps.build.buildToolsVersion
24+
25+
defaultConfig {
26+
minSdkVersion deps.build.minSdkVersion
27+
targetSdkVersion deps.build.targetSdkVersion
28+
}
29+
compileOptions {
30+
sourceCompatibility JavaVersion.VERSION_1_7
31+
targetCompatibility JavaVersion.VERSION_1_7
32+
}
5633
}
57-
check.dependsOn 'checkstyle'
5834

5935

6036
dependencies {

0 commit comments

Comments
 (0)