Skip to content

Commit

Permalink
Remove unnecessary package name usage (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
05nelsonm authored Jan 5, 2024
1 parent c88eaaa commit dcd20ec
Show file tree
Hide file tree
Showing 27 changed files with 472 additions and 470 deletions.
848 changes: 424 additions & 424 deletions library/runtime-api/api/runtime-api.api

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Matthew Nelson
* Copyright (c) 2024 Matthew Nelson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,25 +15,23 @@
**/
@file:Suppress("ClassName", "FunctionName")

package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import io.matthewnelson.kmp.file.*
import io.matthewnelson.kmp.tor.core.api.annotation.InternalKmpTorApi
import io.matthewnelson.kmp.tor.core.api.annotation.KmpTorDsl
import io.matthewnelson.kmp.tor.core.resource.immutableSetOf
import io.matthewnelson.kmp.tor.core.resource.toImmutableMap
import io.matthewnelson.kmp.tor.core.resource.toImmutableSet
import io.matthewnelson.kmp.tor.runtime.api.ThisBlock
import io.matthewnelson.kmp.tor.runtime.api.apply
import io.matthewnelson.kmp.tor.runtime.api.address.IPAddress
import io.matthewnelson.kmp.tor.runtime.api.address.IPAddress.V4.Companion.toIPAddressV4
import io.matthewnelson.kmp.tor.runtime.api.address.IPAddress.V6.Companion.toIPAddressV6
import io.matthewnelson.kmp.tor.runtime.api.address.Port
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig.Keyword.Attribute
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig.LineItem.Companion.toLineItem
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig.Setting.Companion.filterByAttribute
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig.Setting.Companion.filterByKeyword
import io.matthewnelson.kmp.tor.runtime.api.config.builders.*
import io.matthewnelson.kmp.tor.runtime.api.TorConfig.Keyword.Attribute
import io.matthewnelson.kmp.tor.runtime.api.TorConfig.LineItem.Companion.toLineItem
import io.matthewnelson.kmp.tor.runtime.api.TorConfig.Setting.Companion.filterByAttribute
import io.matthewnelson.kmp.tor.runtime.api.TorConfig.Setting.Companion.filterByKeyword
import io.matthewnelson.kmp.tor.runtime.api.builder.*
import io.matthewnelson.kmp.tor.runtime.api.internal.IsAndroidHost
import io.matthewnelson.kmp.tor.runtime.api.internal.IsUnixLikeHost
import io.matthewnelson.kmp.tor.runtime.api.internal.toByte
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
**/
@file:Suppress("SpellCheckingInspection")

package io.matthewnelson.kmp.tor.runtime.api.event
package io.matthewnelson.kmp.tor.runtime.api

import io.matthewnelson.kmp.tor.core.api.annotation.InternalKmpTorApi
import io.matthewnelson.kmp.tor.core.resource.SynchronizedObject
import io.matthewnelson.kmp.tor.core.resource.synchronized
import io.matthewnelson.kmp.tor.runtime.api.ItBlock
import kotlin.jvm.JvmField

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
**/
@file:Suppress("FunctionName", "PropertyName")

package io.matthewnelson.kmp.tor.runtime.api.config.builders
package io.matthewnelson.kmp.tor.runtime.api.builder

import io.matthewnelson.kmp.tor.core.api.annotation.InternalKmpTorApi
import io.matthewnelson.kmp.tor.core.api.annotation.KmpTorDsl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
**/
@file:Suppress("FunctionName", "PropertyName")

package io.matthewnelson.kmp.tor.runtime.api.config.builders
package io.matthewnelson.kmp.tor.runtime.api.builder

import io.matthewnelson.kmp.tor.core.api.annotation.KmpTorDsl
import io.matthewnelson.kmp.tor.runtime.api.ThisBlock
import io.matthewnelson.kmp.tor.runtime.api.apply
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig
import io.matthewnelson.kmp.tor.runtime.api.TorConfig
import kotlin.jvm.JvmField
import kotlin.jvm.JvmSynthetic

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config.builders
package io.matthewnelson.kmp.tor.runtime.api.builder

import io.matthewnelson.kmp.tor.core.api.annotation.InternalKmpTorApi
import io.matthewnelson.kmp.tor.core.api.annotation.KmpTorDsl
import io.matthewnelson.kmp.tor.runtime.api.ThisBlock
import io.matthewnelson.kmp.tor.runtime.api.address.Port
import io.matthewnelson.kmp.tor.runtime.api.apply
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig
import io.matthewnelson.kmp.tor.runtime.api.TorConfig
import kotlin.jvm.JvmField
import kotlin.jvm.JvmName
import kotlin.jvm.JvmSynthetic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
**/
@file:Suppress("FunctionName", "PropertyName")

package io.matthewnelson.kmp.tor.runtime.api.config.builders
package io.matthewnelson.kmp.tor.runtime.api.builder

import io.matthewnelson.kmp.tor.core.api.annotation.InternalKmpTorApi
import io.matthewnelson.kmp.tor.core.api.annotation.KmpTorDsl
import io.matthewnelson.kmp.tor.runtime.api.ThisBlock
import io.matthewnelson.kmp.tor.runtime.api.apply
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig
import io.matthewnelson.kmp.tor.runtime.api.TorConfig
import kotlin.jvm.JvmField
import kotlin.jvm.JvmSynthetic

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config.builders
package io.matthewnelson.kmp.tor.runtime.api.builder

import io.matthewnelson.kmp.file.*
import io.matthewnelson.kmp.tor.core.api.annotation.InternalKmpTorApi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Matthew Nelson
* Copyright (c) 2024 Matthew Nelson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import io.matthewnelson.kmp.file.toFile
import io.matthewnelson.kmp.tor.runtime.api.address.Port.Companion.toPort
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Matthew Nelson
* Copyright (c) 2024 Matthew Nelson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Matthew Nelson
* Copyright (c) 2024 Matthew Nelson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import kotlin.test.Test
import kotlin.test.assertFailsWith
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Matthew Nelson
* Copyright (c) 2024 Matthew Nelson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import io.matthewnelson.kmp.file.File
import io.matthewnelson.kmp.file.resolve
import io.matthewnelson.kmp.file.toFile
import io.matthewnelson.kmp.tor.runtime.api.address.Port.Companion.toPort
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig.Setting.Companion.filterByAttribute
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig.Setting.Companion.filterByKeyword
import io.matthewnelson.kmp.tor.runtime.api.TorConfig.Setting.Companion.filterByAttribute
import io.matthewnelson.kmp.tor.runtime.api.TorConfig.Setting.Companion.filterByKeyword
import io.matthewnelson.kmp.tor.runtime.api.internal.UnixSocketsNotSupportedMessage
import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Matthew Nelson
* Copyright (c) 2024 Matthew Nelson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig.LineItem.Companion.toLineItem
import io.matthewnelson.kmp.tor.runtime.api.TorConfig.LineItem.Companion.toLineItem
import kotlin.test.Test
import kotlin.test.assertNotNull
import kotlin.test.assertNull
Expand All @@ -28,7 +28,8 @@ class LineItemUnitTest {

assertNull(TorConfig.__ControlPort.toLineItem(" "))
assertNull(TorConfig.__ControlPort.toLineItem(null))
assertNull(TorConfig.__ControlPort.toLineItem("""auto
assertNull(
TorConfig.__ControlPort.toLineItem("""auto
""".trimMargin()))
}
Expand All @@ -38,7 +39,8 @@ class LineItemUnitTest {
assertNotNull(TorConfig.__ControlPort.toLineItem("auto", mutableSetOf("extra")))

assertNull(TorConfig.__ControlPort.toLineItem("auto", mutableSetOf(" ")))
assertNull(TorConfig.__ControlPort.toLineItem("auto", mutableSetOf("""extra
assertNull(
TorConfig.__ControlPort.toLineItem("auto", mutableSetOf("""extra
""".trimIndent())))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import io.matthewnelson.kmp.file.toFile
import io.matthewnelson.kmp.tor.runtime.api.address.Port.Companion.toPort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import io.matthewnelson.kmp.file.toFile
import io.matthewnelson.kmp.tor.runtime.api.address.Port.Proxy.Companion.toPortProxy
import io.matthewnelson.kmp.tor.runtime.api.config.TorConfig.Setting.Companion.filterByKeyword
import io.matthewnelson.kmp.tor.runtime.api.TorConfig.Setting.Companion.filterByKeyword
import io.matthewnelson.kmp.tor.runtime.api.internal.toByte
import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import io.matthewnelson.kmp.tor.runtime.api.internal.IsUnixLikeHost
import kotlin.test.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config
package io.matthewnelson.kmp.tor.runtime.api

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config.builders
package io.matthewnelson.kmp.tor.runtime.api.builder

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config.builders
package io.matthewnelson.kmp.tor.runtime.api.builder

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config.builders
package io.matthewnelson.kmp.tor.runtime.api.builder

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package io.matthewnelson.kmp.tor.runtime.api.config.builders
package io.matthewnelson.kmp.tor.runtime.api.builder

import io.matthewnelson.kmp.file.SysPathSep
import io.matthewnelson.kmp.file.path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
**/
package io.matthewnelson.kmp.tor.runtime.api.config.builders

import io.matthewnelson.kmp.tor.runtime.api.builder.UnixSocketBuilderBaseTest
import io.matthewnelson.kmp.tor.runtime.api.internal.UnixSocketsNotSupportedMessage
import kotlin.test.Test

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
**/
package io.matthewnelson.kmp.tor.runtime.api.config.builders

import io.matthewnelson.kmp.tor.runtime.api.builder.UnixSocketBuilderBaseTest
import io.matthewnelson.kmp.tor.runtime.api.internal.UnixSocketsNotSupportedMessage
import kotlin.test.Test

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
**/
package io.matthewnelson.kmp.tor.runtime.api.config.builders

import io.matthewnelson.kmp.tor.runtime.api.builder.UnixSocketBuilderBaseTest
import kotlin.test.Test

class UnixSocketBuilderUnixUnitTest: UnixSocketBuilderBaseTest() {
Expand Down

0 comments on commit dcd20ec

Please sign in to comment.