mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Compare commits
9 Commits
06090e238a
...
46fe683d71
| Author | SHA1 | Date | |
|---|---|---|---|
| 46fe683d71 | |||
|
7f6248123c
|
|||
|
2024277ebe
|
|||
| c216fb01d6 | |||
|
7cb32f486b
|
|||
|
093591fbaf
|
|||
|
985234cdf3
|
|||
|
|
10074ded32 | ||
|
|
25cff3d9b0 |
1
build.sh
1
build.sh
@@ -64,6 +64,7 @@ fail() {
|
||||
core_build() {
|
||||
log_info "Building uhabits-core..."
|
||||
$GRADLE ktlintCheck || fail
|
||||
$GRADLE lintDebug || fail
|
||||
$GRADLE :uhabits-core:build || fail
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,12 @@ android {
|
||||
buildFeatures {
|
||||
viewBinding = true
|
||||
}
|
||||
|
||||
lint {
|
||||
baseline = file("lint-baseline.xml")
|
||||
disable += "GradleDependency"
|
||||
warningsAsErrors = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
8252
uhabits-android/lint-baseline.xml
Normal file
8252
uhabits-android/lint-baseline.xml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -120,10 +120,15 @@ class DateUtilsTest : BaseUnitTest() {
|
||||
|
||||
@Test
|
||||
fun getWeekdaysInMonth() {
|
||||
val february = GregorianCalendar(2018, Calendar.FEBRUARY, 1)
|
||||
val leapFebruary = GregorianCalendar(2020, Calendar.FEBRUARY, 1)
|
||||
val month = GregorianCalendar(2020, Calendar.APRIL, 1)
|
||||
val longMonth = GregorianCalendar(2020, Calendar.AUGUST, 1)
|
||||
fun getCalendarUTC(year: Int, month: Int, dayOfMonth: Int) =
|
||||
GregorianCalendar(year, month, dayOfMonth).apply {
|
||||
timeZone = TimeZone.getTimeZone("UTC")
|
||||
}
|
||||
|
||||
val february = getCalendarUTC(2018, Calendar.FEBRUARY, 1)
|
||||
val leapFebruary = getCalendarUTC(2020, Calendar.FEBRUARY, 1)
|
||||
val month = getCalendarUTC(2020, Calendar.APRIL, 1)
|
||||
val longMonth = getCalendarUTC(2020, Calendar.AUGUST, 1)
|
||||
|
||||
assertThat(
|
||||
arrayOf(4, 4, 4, 4, 4, 4, 4),
|
||||
|
||||
Reference in New Issue
Block a user