forked from ruleant/getback_gps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (85 loc) · 2.48 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Example : http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Goals-of-the-new-Build-System
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
dependencies {
classpath 'com.vanniktech:gradle-android-javadoc-plugin:0.3.0'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.vanniktech.android.javadoc'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src/java']
resources.srcDirs = ['src/java']
aidl.srcDirs = ['src/java']
renderscript.srcDirs = ['src/java']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// instrumentTest.setRoot('test')
}
lintOptions {
// if true, stop the gradle build if errors are found
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
implementation('de.keyboardsurfer.android.widget:crouton:1.8.1') {
// exclusion is not necessary, but generally a good idea.
exclude group: 'com.google.android', module: 'support-v4'
}
// android support libraries (android.support.*)
implementation "androidx.legacy:legacy-support-core-utils:1.0.0"
}
// Unit tests
// temporarily disable unit tests issue #172
// sourceSets {
// unitTest {
// java.srcDir file('src/test')
// resources.srcDir file('src/test/resources')
// }
//}
//
//dependencies {
// unitTestCompile files("$project.buildDir/classes/debug")
// unitTestCompile 'org.robolectric:robolectric:2.2'
// unitTestCompile 'junit:junit:4.11', 'org.mockito:mockito-core:1.9.5'
// unitTestCompile 'com.google.android:android:4.1.1.4'
//}
//
//configurations {
// unitTestCompile.extendsFrom runtime
// unitTestRuntime.extendsFrom unitTestCompile
//}
//
//task unitTest(type:Test, dependsOn: assemble) {
// description = "run unit tests"
// testClassesDir = project.sourceSets.unitTest.output.classesDir
// classpath = project.sourceSets.unitTest.runtimeClasspath
//}
//
//check.dependsOn unitTest