mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2025-12-22 21:05:47 +00:00
Compare commits
7 Commits
9ea8194d7d
...
v0.7.4
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f9b84ecc7 | |||
| 62c5a0f98d | |||
| dfd1a5a909 | |||
| 04390f0726 | |||
| d0f02e37ce | |||
| 681043db5a | |||
| f63ed1a873 |
@@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## 0.7.4
|
||||
|
||||
* Versions
|
||||
* `Coroutines`: `1.6.3`
|
||||
|
||||
## 0.7.3
|
||||
|
||||
* Versions
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
[](https://github.com/InsanusMokrassar/krontab/actions/workflows/publishing_packages.yml)
|
||||
[](https://krontab.inmo.dev/index.html)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
[](https://krontab.inmo.dev/index.html)
|
||||
[](https://bookstack.inmo.dev/books/krontab)
|
||||
|
||||
Library was created to give oppotunity to launch some things from time to time according to some schedule in
|
||||
runtime of applications.
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ android.enableJetifier=false
|
||||
|
||||
|
||||
kotlin_version=1.6.21
|
||||
kotlin_coroutines_version=1.6.1
|
||||
kotlin_coroutines_version=1.6.3
|
||||
|
||||
dokka_version=1.6.21
|
||||
|
||||
@@ -17,7 +17,7 @@ klockVersion=2.7.0
|
||||
|
||||
## Github reease
|
||||
|
||||
github_release_plugin_version=2.3.7
|
||||
github_release_plugin_version=2.4.1
|
||||
|
||||
## Android
|
||||
|
||||
@@ -33,5 +33,5 @@ androidx_work_version=2.7.1
|
||||
|
||||
## Common
|
||||
|
||||
version=0.7.3
|
||||
android_code_version=14
|
||||
version=0.7.4
|
||||
android_code_version=15
|
||||
|
||||
@@ -101,7 +101,7 @@ internal fun NearDateTimeCalculatorDays(
|
||||
times: Array<Byte>
|
||||
) = CommonNearDateTimeCalculator(
|
||||
times,
|
||||
{ (it.dayOfMonth - 1).toByte() },
|
||||
{ (it.dayOfMonth - 1).toByte() }, // index1, so, decrease
|
||||
{ dateTime, newOne ->
|
||||
val dateTime = (if (newOne < dateTime.dayOfMonth) {
|
||||
dateTime.plus(1.months)
|
||||
|
||||
@@ -5,9 +5,9 @@ import com.soywiz.klock.days
|
||||
import dev.inmo.krontab.buildSchedule
|
||||
import kotlin.test.*
|
||||
|
||||
class InfinityLoopCheckTest {
|
||||
class CheckMonthsAndDaysCorrectWork {
|
||||
@Test
|
||||
fun absenceOfInfinityLoopCheckTest() {
|
||||
fun checkMonthsAndDaysCorrectWork() {
|
||||
val now = DateTime.now().startOfYear.startOfDay
|
||||
for (i in 0 until now.year.days) {
|
||||
val scheduleDateTime = (now + i.days)
|
||||
Reference in New Issue
Block a user