From 86231d3d25bfa60c2719e8b35e861bf98cc139da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C9=91rry=20Shiv=C9=91m?= Date: Thu, 20 Jun 2024 12:37:20 +0530 Subject: [PATCH] docs: readme: Add jitpack badge and update some links --- README.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1d674ee..c970493 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,11 @@

GitHub + GitHub code size in bytes + Version Badge coverage badge - GitHub code size in bytes - tests - version + tests Project Status: Active – The project has reached a stable, usable state and is being actively developed. -

**KtScheduler** is a lightweight task/job scheduling library for Kotlin, powered by Kotlin coroutines! The design of @@ -25,18 +24,18 @@ keeping things simple and easy to use. Add the Jitpack repository in your build configuration: -```groovy +```kotlin repositories { ... - maven { url 'https://www.jitpack.io' } + maven("https://jitpack.io") } ``` Add the dependency: -```groovy +```kotlin dependencies { - implementation 'com.github.Pool-Of-Tears:KtScheduler:Tag' + implementation("com.github.Pool-Of-Tears:KtScheduler:version") } ``` @@ -65,9 +64,7 @@ val job = Job( // Coroutine dispatcher in which the job should be executed. dispatcher = Dispatchers.Default, // Callback function that will be executed when the job is triggered. - callback = { - println("OneTime Job executed at ${ZonedDateTime.now(timeZone)}") - } + callback = { println("OneTime Job executed at ${ZonedDateTime.now(timeZone)}") } ) // ..or like this