From 93199bd49edc177d05e3fe4f8572c0603891587e Mon Sep 17 00:00:00 2001 From: ReBlast Date: Sat, 6 Apr 2024 15:29:36 +0500 Subject: [PATCH] change package names --- README.md | 2 +- .../io/github/vyfor/kpresence/RichClient.kt | 16 ++++++++-------- .../io/github/vyfor/kpresence/ipc/Connection.kt | 2 +- .../io/github/vyfor/kpresence/rpc/Activity.kt | 2 +- .../io/github/vyfor/kpresence/rpc/ActivityDSL.kt | 2 +- .../io/github/vyfor/kpresence/rpc/Packet.kt | 2 +- .../io/github/vyfor/kpresence/utils/Utils.kt | 2 +- .../io/github/vyfor/kpresence/ClientTest.kt | 6 +++--- .../io/github/vyfor/kpresence/ipc/Connection.kt | 6 +++--- .../io/github/vyfor/kpresence/utils/Utils.kt | 2 +- .../io/github/vyfor/kpresence/ClientTest.kt | 4 ++-- .../io/github/vyfor/kpresence/ipc/Connection.kt | 6 +++--- .../io/github/vyfor/kpresence/utils/Utils.kt | 2 +- .../io/github/vyfor/kpresence/ipc/Connection.kt | 6 +++--- .../io/github/vyfor/kpresence/utils/Utils.kt | 2 +- .../io/github/vyfor/kpresence/ipc/Connection.kt | 6 +++--- .../io/github/vyfor/kpresence/utils/Utils.kt | 2 +- .../io/github/vyfor/kpresence/utils/Utils.kt | 2 +- 18 files changed, 36 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index d954131..53dfb8b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ```gradle dependencies { - implementation("io.github.reblast:kpresence:0.5.0") + implementation("io.github.vyfor:kpresence:0.5.0") } ``` diff --git a/src/commonMain/kotlin/io/github/vyfor/kpresence/RichClient.kt b/src/commonMain/kotlin/io/github/vyfor/kpresence/RichClient.kt index 8178e93..d3fac63 100644 --- a/src/commonMain/kotlin/io/github/vyfor/kpresence/RichClient.kt +++ b/src/commonMain/kotlin/io/github/vyfor/kpresence/RichClient.kt @@ -1,13 +1,13 @@ @file:Suppress("MemberVisibilityCanBePrivate", "unused") -package io.github.reblast.kpresence - -import io.github.reblast.kpresence.ipc.* -import io.github.reblast.kpresence.rpc.Activity -import io.github.reblast.kpresence.rpc.Packet -import io.github.reblast.kpresence.rpc.PacketArgs -import io.github.reblast.kpresence.utils.epochMillis -import io.github.reblast.kpresence.utils.getProcessId +package io.github.vyfor.kpresence + +import io.github.vyfor.kpresence.ipc.* +import io.github.vyfor.kpresence.rpc.Activity +import io.github.vyfor.kpresence.rpc.Packet +import io.github.vyfor.kpresence.rpc.PacketArgs +import io.github.vyfor.kpresence.utils.epochMillis +import io.github.vyfor.kpresence.utils.getProcessId import kotlinx.coroutines.* import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json diff --git a/src/commonMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt b/src/commonMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt index 809ae9a..a30f8e3 100644 --- a/src/commonMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt +++ b/src/commonMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt @@ -1,4 +1,4 @@ -package io.github.reblast.kpresence.ipc +package io.github.vyfor.kpresence.ipc expect class Connection() { fun open() diff --git a/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/Activity.kt b/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/Activity.kt index df36793..38fb767 100644 --- a/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/Activity.kt +++ b/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/Activity.kt @@ -1,6 +1,6 @@ @file:Suppress("ArrayInDataClass", "unused") -package io.github.reblast.kpresence.rpc +package io.github.vyfor.kpresence.rpc import kotlinx.serialization.KSerializer import kotlinx.serialization.SerialName diff --git a/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/ActivityDSL.kt b/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/ActivityDSL.kt index d595160..962ad9f 100644 --- a/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/ActivityDSL.kt +++ b/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/ActivityDSL.kt @@ -1,6 +1,6 @@ @file:Suppress("unused", "MemberVisibilityCanBePrivate") -package io.github.reblast.kpresence.rpc +package io.github.vyfor.kpresence.rpc @DslMarker annotation class ActivityDSL diff --git a/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/Packet.kt b/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/Packet.kt index 2a5542f..b1d93cf 100644 --- a/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/Packet.kt +++ b/src/commonMain/kotlin/io/github/vyfor/kpresence/rpc/Packet.kt @@ -1,4 +1,4 @@ -package io.github.reblast.kpresence.rpc +package io.github.vyfor.kpresence.rpc import kotlinx.serialization.Serializable diff --git a/src/commonMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt b/src/commonMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt index 69b8ab3..92adb98 100644 --- a/src/commonMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt +++ b/src/commonMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt @@ -1,4 +1,4 @@ -package io.github.reblast.kpresence.utils +package io.github.vyfor.kpresence.utils internal fun ByteArray.putInt(value: Int, offset: Int = 0) { this[offset] = (value shr 24).toByte() diff --git a/src/commonTest/kotlin/io/github/vyfor/kpresence/ClientTest.kt b/src/commonTest/kotlin/io/github/vyfor/kpresence/ClientTest.kt index 1f6e63c..70fea20 100644 --- a/src/commonTest/kotlin/io/github/vyfor/kpresence/ClientTest.kt +++ b/src/commonTest/kotlin/io/github/vyfor/kpresence/ClientTest.kt @@ -1,7 +1,7 @@ -package io.github.reblast.kpresence +package io.github.vyfor.kpresence -import io.github.reblast.kpresence.rpc.* -import io.github.reblast.kpresence.utils.epochMillis +import io.github.vyfor.kpresence.rpc.* +import io.github.vyfor.kpresence.utils.epochMillis import kotlin.test.Test class ClientTest { diff --git a/src/jvmMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt b/src/jvmMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt index 464505a..0797e9a 100644 --- a/src/jvmMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt +++ b/src/jvmMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt @@ -1,7 +1,7 @@ -package io.github.reblast.kpresence.ipc +package io.github.vyfor.kpresence.ipc -import io.github.reblast.kpresence.utils.putInt -import io.github.reblast.kpresence.utils.reverseBytes +import io.github.vyfor.kpresence.utils.putInt +import io.github.vyfor.kpresence.utils.reverseBytes import java.io.InputStream import java.io.OutputStream import java.io.RandomAccessFile diff --git a/src/jvmMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt b/src/jvmMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt index d9a8cc6..dd3fe3a 100644 --- a/src/jvmMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt +++ b/src/jvmMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt @@ -1,6 +1,6 @@ @file:JvmName("Utils") -package io.github.reblast.kpresence.utils +package io.github.vyfor.kpresence.utils actual fun epochMillis(): Long = System.currentTimeMillis() diff --git a/src/jvmTest/kotlin/io/github/vyfor/kpresence/ClientTest.kt b/src/jvmTest/kotlin/io/github/vyfor/kpresence/ClientTest.kt index f3e2ed6..8064e6c 100644 --- a/src/jvmTest/kotlin/io/github/vyfor/kpresence/ClientTest.kt +++ b/src/jvmTest/kotlin/io/github/vyfor/kpresence/ClientTest.kt @@ -1,6 +1,6 @@ -package io.github.reblast.kpresence +package io.github.vyfor.kpresence -import io.github.reblast.kpresence.rpc.* +import io.github.vyfor.kpresence.rpc.* import kotlin.random.Random import kotlin.test.Test diff --git a/src/linuxMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt b/src/linuxMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt index 81a024e..806aaf5 100644 --- a/src/linuxMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt +++ b/src/linuxMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt @@ -1,7 +1,7 @@ -package io.github.reblast.kpresence.ipc +package io.github.vyfor.kpresence.ipc -import io.github.reblast.kpresence.utils.putInt -import io.github.reblast.kpresence.utils.reverseBytes +import io.github.vyfor.kpresence.utils.putInt +import io.github.vyfor.kpresence.utils.reverseBytes import kotlinx.cinterop.* import platform.linux.sockaddr_un import platform.posix.* diff --git a/src/linuxMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt b/src/linuxMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt index 7465efa..d039eab 100644 --- a/src/linuxMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt +++ b/src/linuxMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt @@ -1,4 +1,4 @@ -package io.github.reblast.kpresence.utils +package io.github.vyfor.kpresence.utils import kotlinx.cinterop.* import platform.posix.* diff --git a/src/macosMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt b/src/macosMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt index c1280ca..d4e21c3 100644 --- a/src/macosMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt +++ b/src/macosMain/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt @@ -1,7 +1,7 @@ -package io.github.reblast.kpresence.ipc +package io.github.vyfor.kpresence.ipc -import io.github.reblast.kpresence.utils.putInt -import io.github.reblast.kpresence.utils.reverseBytes +import io.github.vyfor.kpresence.utils.putInt +import io.github.vyfor.kpresence.utils.reverseBytes import kotlinx.cinterop.* import platform.osx.sockaddr_un import platform.posix.* diff --git a/src/macosMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt b/src/macosMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt index 7465efa..d039eab 100644 --- a/src/macosMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt +++ b/src/macosMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt @@ -1,4 +1,4 @@ -package io.github.reblast.kpresence.utils +package io.github.vyfor.kpresence.utils import kotlinx.cinterop.* import platform.posix.* diff --git a/src/mingwX64Main/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt b/src/mingwX64Main/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt index f2ef895..1680df0 100644 --- a/src/mingwX64Main/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt +++ b/src/mingwX64Main/kotlin/io/github/vyfor/kpresence/ipc/Connection.kt @@ -1,7 +1,7 @@ -package io.github.reblast.kpresence.ipc +package io.github.vyfor.kpresence.ipc -import io.github.reblast.kpresence.utils.putInt -import io.github.reblast.kpresence.utils.reverseBytes +import io.github.vyfor.kpresence.utils.putInt +import io.github.vyfor.kpresence.utils.reverseBytes import kotlinx.cinterop.* import platform.windows.* diff --git a/src/mingwX64Main/kotlin/io/github/vyfor/kpresence/utils/Utils.kt b/src/mingwX64Main/kotlin/io/github/vyfor/kpresence/utils/Utils.kt index 1952622..2c5a455 100644 --- a/src/mingwX64Main/kotlin/io/github/vyfor/kpresence/utils/Utils.kt +++ b/src/mingwX64Main/kotlin/io/github/vyfor/kpresence/utils/Utils.kt @@ -1,4 +1,4 @@ -package io.github.reblast.kpresence.utils +package io.github.vyfor.kpresence.utils import kotlinx.cinterop.* import platform.posix.getpid diff --git a/src/nativeMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt b/src/nativeMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt index 66e15e7..25857fb 100644 --- a/src/nativeMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt +++ b/src/nativeMain/kotlin/io/github/vyfor/kpresence/utils/Utils.kt @@ -1,6 +1,6 @@ @file:Suppress("unused") -package io.github.reblast.kpresence.utils +package io.github.vyfor.kpresence.utils import kotlinx.cinterop.* import platform.posix.*