mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-08 01:58:52 -06:00
Compare commits
1 Commits
46fe683d71
...
hiqua-patc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e65c7de086 |
1
build.sh
1
build.sh
@@ -64,7 +64,6 @@ fail() {
|
|||||||
core_build() {
|
core_build() {
|
||||||
log_info "Building uhabits-core..."
|
log_info "Building uhabits-core..."
|
||||||
$GRADLE ktlintCheck || fail
|
$GRADLE ktlintCheck || fail
|
||||||
$GRADLE lintDebug || fail
|
|
||||||
$GRADLE :uhabits-core:build || fail
|
$GRADLE :uhabits-core:build || fail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,12 +91,6 @@ android {
|
|||||||
buildFeatures {
|
buildFeatures {
|
||||||
viewBinding = true
|
viewBinding = true
|
||||||
}
|
}
|
||||||
|
|
||||||
lint {
|
|
||||||
baseline = file("lint-baseline.xml")
|
|
||||||
disable += "GradleDependency"
|
|
||||||
warningsAsErrors = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -132,7 +132,7 @@ object CommonSteps : BaseUserInterfaceTest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun verifyOpensWebsite(url: String?) {
|
fun verifyOpensWebsite(url: String) {
|
||||||
var browserPkg = "org.chromium.webview_shell"
|
var browserPkg = "org.chromium.webview_shell"
|
||||||
if (SDK_INT <= Build.VERSION_CODES.M) {
|
if (SDK_INT <= Build.VERSION_CODES.M) {
|
||||||
browserPkg = "com.android.browser"
|
browserPkg = "com.android.browser"
|
||||||
|
|||||||
@@ -120,15 +120,10 @@ class DateUtilsTest : BaseUnitTest() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun getWeekdaysInMonth() {
|
fun getWeekdaysInMonth() {
|
||||||
fun getCalendarUTC(year: Int, month: Int, dayOfMonth: Int) =
|
val february = GregorianCalendar(2018, Calendar.FEBRUARY, 1)
|
||||||
GregorianCalendar(year, month, dayOfMonth).apply {
|
val leapFebruary = GregorianCalendar(2020, Calendar.FEBRUARY, 1)
|
||||||
timeZone = TimeZone.getTimeZone("UTC")
|
val month = GregorianCalendar(2020, Calendar.APRIL, 1)
|
||||||
}
|
val longMonth = GregorianCalendar(2020, Calendar.AUGUST, 1)
|
||||||
|
|
||||||
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(
|
assertThat(
|
||||||
arrayOf(4, 4, 4, 4, 4, 4, 4),
|
arrayOf(4, 4, 4, 4, 4, 4, 4),
|
||||||
|
|||||||
Reference in New Issue
Block a user