-
Notifications
You must be signed in to change notification settings - Fork 278
/
Copy pathbuild.gradle
63 lines (56 loc) · 2 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
apply plugin: 'com.android.library'
android {
namespace 'org.runnerup'
compileSdk rootProject.ext.compileSdk
buildToolsVersion rootProject.ext.buildToolsVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdk rootProject.ext.minSdk
targetSdk rootProject.ext.targetSdk
// Default, needed by test
buildConfigField ('String', 'applicationIdFull', '"' + rootProject.ext.applicationId + '"')
}
buildTypes {
buildTypes {
debug {
// The applicationId for the Android app (needed in Wear app)
// This must be unique to allow Notification button intents to work independently
buildConfigField ('String', 'applicationIdFull', '"' + rootProject.ext.applicationId + '.debug"')
resValue "string", "applicationIdFull", rootProject.ext.applicationId + ".debug"
}
release {
debuggable false
buildConfigField ('String', 'applicationIdFull', '"' + rootProject.ext.applicationId + '"')
resValue "string", "applicationIdFull", rootProject.ext.applicationId
minifyEnabled false
}
}
}
lint {
showAll true
warning 'MissingTranslation'
baseline file('lint-baseline.xml')
lintConfig file('lint.xml')
checkReleaseBuilds true
lintConfig file('lint.xml')
//textOutput 'stdout'
textReport true
}
namespace 'org.runnerup.common'
buildFeatures {
buildConfig true
}
}
repositories {
google()
mavenCentral()
}
dependencies {
implementation "androidx.annotation:annotation:${rootProject.ext.annotation_version}"
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
testImplementation "org.mockito:mockito-core:${rootProject.ext.mockitoVersion}"
}