-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
build.gradle
99 lines (85 loc) · 2.79 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
apply plugin: 'com.android.application'
android
{
compileSdkVersion 25
buildToolsVersion '27.0.3'
sourceSets
{
main
{
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/main/java']
res.srcDirs = ['src/main/res']
assets.srcDirs = ['assets']
}
}
defaultConfig
{
applicationId "com.forrestguice.suntimeswidget"
//noinspection MinSdkTooLow
minSdkVersion 10
//noinspection ExpiredTargetSdkVersion,OldTargetApi
targetSdkVersion 25
versionCode 113
versionName "0.15.16"
buildConfigField "String", "GIT_HASH", "\"${getGitHash()}\""
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes
{
release
{
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions
{
disable 'MissingTranslation','WrongRegion'
}
}
dependencies
{
implementation 'com.android.support:design:25.4.0'
implementation 'com.android.support:appcompat-v7:25.4.0'
implementation 'com.android.support:recyclerview-v7:25.4.0'
implementation 'com.android.support:cardview-v7:25.4.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.github.forrestguice:sunrisesunsetlib-java:SunriseSunsetCalculator-1.2-p0-fixdst'
implementation 'com.github.caarmen.SunriseSunset:lib-sunrise-sunset:1.1.0'
implementation group: 'net.time4j', name: 'time4j-android', version: '4.4.2-2019c'
implementation 'com.github.forrestguice:colorpicker:0.0.13post1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.jraska:falcon:1.0.4'
androidTestImplementation 'com.android.support:support-annotations:25.4.0'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test:rules:0.5'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
def getGitHash()
{
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}
tasks.withType(Test)
{
useJUnit {
excludeCategories 'com.forrestguice.suntimeswidget.UnlistedTest', 'com.forrestguice.suntimeswidget.FlakeyTest'
}
testLogging
{
exceptionFormat "full"
//events "started", "skipped", "passed", "failed"
//showStandardStreams true
events "failed"
showStandardStreams false
}
}