mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2025-12-23 05:15:43 +00:00
Compare commits
22 Commits
v2.1.2
...
9eb0364410
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9eb0364410 | ||
| 5ff02a2a9d | |||
| f56215ee10 | |||
| e66acb34de | |||
| 78ac446311 | |||
| 697b4e81b8 | |||
| d1288de032 | |||
| eb867e7366 | |||
| 4aa10e00cf | |||
| 170d443517 | |||
| d1aab7ccd6 | |||
| 58d758f141 | |||
| 71bd3f0eb4 | |||
| bd2a852b16 | |||
| 8e844b5875 | |||
| e0f7dddf42 | |||
| d64acc9806 | |||
| 58375452c7 | |||
| cbfbdc1b33 | |||
| 715d414f51 | |||
| 2ecd8c4292 | |||
| 1be8d947f7 |
5
.github/workflows/kdocs.yml
vendored
5
.github/workflows/kdocs.yml
vendored
@@ -10,10 +10,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 17
|
||||||
- name: Fix android 32.0.0 dx
|
|
||||||
continue-on-error: true
|
|
||||||
run: cd /usr/local/lib/android/sdk/build-tools/32.0.0/ && cp d8 dx && cd lib && cp d8.jar dx.jar
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./gradlew dokkaHtml
|
run: ./gradlew dokkaHtml
|
||||||
- name: Publish KDocs
|
- name: Publish KDocs
|
||||||
|
|||||||
2
.github/workflows/publishing_packages.yml
vendored
2
.github/workflows/publishing_packages.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 17
|
||||||
- name: Update version
|
- name: Update version
|
||||||
run: |
|
run: |
|
||||||
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
|
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
|
||||||
|
|||||||
34
CHANGELOG.md
34
CHANGELOG.md
@@ -1,5 +1,39 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.2.4
|
||||||
|
|
||||||
|
* `Versions`
|
||||||
|
* `Kotlin`: `1.9.21`
|
||||||
|
* `Serialization`: `1.6.1`
|
||||||
|
|
||||||
|
## 2.2.3
|
||||||
|
|
||||||
|
**THIS UPDATE CONTAINS UPGRADE OF USED JDK UP TO 17**
|
||||||
|
|
||||||
|
* Versions
|
||||||
|
* `Kotlin`: `1.9.20`
|
||||||
|
|
||||||
|
## 2.2.2
|
||||||
|
|
||||||
|
* Versions
|
||||||
|
* `Kotlin`: `1.9.20-RC`
|
||||||
|
* `Android` (min/target): `34`
|
||||||
|
|
||||||
|
## 2.2.1
|
||||||
|
|
||||||
|
* Potential fix of [#65](https://github.com/InsanusMokrassar/krontab/issues/65)
|
||||||
|
* Versions
|
||||||
|
* `Kotlin`: `1.9.20-Beta`
|
||||||
|
* `Klock`: `4.0.10`
|
||||||
|
* `Serialization`: `1.6.0`
|
||||||
|
|
||||||
|
## 2.2.0
|
||||||
|
|
||||||
|
* Versions
|
||||||
|
* `Kotlin`: `1.9.0`
|
||||||
|
* `Coroutines`: `1.7.3`
|
||||||
|
* `Klock`: `4.0.9`
|
||||||
|
|
||||||
## 2.1.2
|
## 2.1.2
|
||||||
|
|
||||||
* Versions
|
* Versions
|
||||||
|
|||||||
13
build.gradle
13
build.gradle
@@ -61,6 +61,7 @@ kotlin {
|
|||||||
}
|
}
|
||||||
linuxX64()
|
linuxX64()
|
||||||
mingwX64()
|
mingwX64()
|
||||||
|
linuxArm64()
|
||||||
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -97,7 +98,7 @@ kotlin {
|
|||||||
implementation kotlin('test-js')
|
implementation kotlin('test-js')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
androidTest {
|
androidUnitTest {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation kotlin('test-junit')
|
implementation kotlin('test-junit')
|
||||||
}
|
}
|
||||||
@@ -109,7 +110,7 @@ apply plugin: 'com.getkeepsafe.dexcount'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk "$android_compileSdkVersion".toInteger()
|
compileSdk "$android_compileSdkVersion".toInteger()
|
||||||
buildToolsVersion "$android_buildToolsVersion"
|
buildToolsVersion = "$android_buildToolsVersion"
|
||||||
namespace "${group}.${project.name}"
|
namespace "${group}.${project.name}"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
@@ -128,8 +129,8 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_17
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -141,6 +142,6 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ android.useAndroidX=true
|
|||||||
android.enableJetifier=false
|
android.enableJetifier=false
|
||||||
|
|
||||||
|
|
||||||
kotlin_version=1.8.22
|
kotlin_version=1.9.21
|
||||||
kotlin_coroutines_version=1.7.2
|
kotlin_coroutines_version=1.7.3
|
||||||
kotlin_serialization_version=1.5.1
|
kotlin_serialization_version=1.6.1
|
||||||
|
|
||||||
dokka_version=1.8.20
|
dokka_version=1.9.10
|
||||||
|
|
||||||
klockVersion=4.0.3
|
klockVersion=4.0.10
|
||||||
|
|
||||||
## Github reease
|
## Github reease
|
||||||
|
|
||||||
@@ -23,18 +23,18 @@ github_release_plugin_version=2.4.1
|
|||||||
|
|
||||||
## Android
|
## Android
|
||||||
|
|
||||||
android_gradle_version=7.4.2
|
android_gradle_version=8.1.2
|
||||||
android_minSdkVersion=21
|
android_minSdkVersion=21
|
||||||
android_compileSdkVersion=33
|
android_compileSdkVersion=34
|
||||||
android_buildToolsVersion=33.0.2
|
android_buildToolsVersion=34.0.0
|
||||||
dexcount_version=4.0.0
|
dexcount_version=4.0.0
|
||||||
junit_version=4.12
|
junit_version=4.12
|
||||||
test_ext_junit_version=1.1.3
|
test_ext_junit_version=1.1.3
|
||||||
espresso_core=3.4.0
|
espresso_core=3.4.0
|
||||||
|
|
||||||
androidx_work_version=2.8.1
|
androidx_work_version=2.9.0
|
||||||
|
|
||||||
## Common
|
## Common
|
||||||
|
|
||||||
version=2.1.2
|
version=2.2.4
|
||||||
android_code_version=29
|
android_code_version=34
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
task javadocsJar(type: Jar) {
|
task javadocsJar(type: Jar) {
|
||||||
classifier = 'javadoc'
|
archiveClassifier = 'javadoc'
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
@@ -96,4 +96,10 @@ if (project.hasProperty("signing.gnupg.keyName")) {
|
|||||||
dependsOn(it)
|
dependsOn(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Workaround to make android sign operations depend on signing tasks
|
||||||
|
project.getTasks().withType(AbstractPublishToMaven.class).configureEach {
|
||||||
|
def signingTasks = project.getTasks().withType(Sign.class)
|
||||||
|
mustRunAfter(signingTasks)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,13 +108,19 @@ internal fun NearDateTimeCalculatorDays(
|
|||||||
} else {
|
} else {
|
||||||
dateTime
|
dateTime
|
||||||
})
|
})
|
||||||
dateTime.copy(
|
val newDateTime = dateTime.copy(
|
||||||
dayOfMonth = min(dateTime.month.days(dateTime.year), newOne.toInt() + 1), // index1
|
dayOfMonth = min(dateTime.month.days(dateTime.year), newOne.toInt() + 1), // index1
|
||||||
hour = 0,
|
hour = 0,
|
||||||
minute = 0,
|
minute = 0,
|
||||||
second = 0,
|
second = 0,
|
||||||
milliseconds = 0
|
milliseconds = 0
|
||||||
)
|
)
|
||||||
|
// If day of month has not been changed, use old dateTime due to no changes required
|
||||||
|
if (newDateTime.dayOfMonth == dateTime.dayOfMonth) {
|
||||||
|
dateTime
|
||||||
|
} else {
|
||||||
|
newDateTime
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
Reference in New Issue
Block a user