Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions build-logic/src/main/kotlin/-KmpConfigurationExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import io.matthewnelson.kmp.configuration.extension.KmpConfigurationExtension
import io.matthewnelson.kmp.configuration.extension.container.target.KmpConfigurationContainerDsl
import org.gradle.api.Action
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

fun KmpConfigurationExtension.configureShared(
java9ModuleName: String? = null,
Expand Down Expand Up @@ -73,6 +74,15 @@ fun KmpConfigurationExtension.configureShared(

if (publish) kotlin { explicitApi() }

if (publish) kotlin {
@Suppress("DEPRECATION")
compilerOptions {
freeCompilerArgs.add("-Xsuppress-version-warnings")
apiVersion.set(KotlinVersion.KOTLIN_1_8)
languageVersion.set(KotlinVersion.KOTLIN_1_8)
}
}

action.execute(this)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
@file:Suppress("UNNECESSARY_SAFE_CALL")

package org.kotlincrypto.core

@InternalKotlinCryptoApi
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.
**/
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "UNUSED")

package org.kotlincrypto.core.digest

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.
**/
@file:Suppress("KotlinRedundantDiagnosticSuppress", "NOTHING_TO_INLINE")
@file:Suppress("NOTHING_TO_INLINE")

package org.kotlincrypto.core.digest.internal

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.
**/
@file:Suppress("KotlinRedundantDiagnosticSuppress", "NOTHING_TO_INLINE")
@file:Suppress("NOTHING_TO_INLINE")

package org.kotlincrypto.core.digest.internal

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.
**/
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "DeprecatedCallableAddReplaceWith")
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")

package org.kotlincrypto.core.digest

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.
**/
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "KotlinRedundantDiagnosticSuppress")
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")

package org.kotlincrypto.core.digest

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.
**/
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "UNUSED", "RedundantVisibilityModifier")

package org.kotlincrypto.core.mac

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.
**/
@file:Suppress("KotlinRedundantDiagnosticSuppress", "NOTHING_TO_INLINE")
@file:Suppress("NOTHING_TO_INLINE")

package org.kotlincrypto.core.mac.internal

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.
**/
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "DeprecatedCallableAddReplaceWith")
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "RedundantVisibilityModifier")

package org.kotlincrypto.core.mac

Expand Down Expand Up @@ -325,10 +325,11 @@ public actual abstract class Mac: javax.crypto.Mac, Algorithm, Copyable<Mac>, Re
public actual final override fun hashCode(): Int = 17 * 31 + code.hashCode()
}

private data object EmptyKey: KeySpec, SecretKey {
private object EmptyKey: KeySpec, SecretKey {
override fun getAlgorithm(): String = "org.kotlincrypto.core.mac.Mac.EmptyKey"
override fun getEncoded(): ByteArray? = null
override fun getFormat(): String = "RAW"
@Suppress("UNUSED")
private fun readResolve(): Any = EmptyKey
}

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.
**/
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "RedundantVisibilityModifier")

package org.kotlincrypto.core.mac

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.
**/
@file:Suppress("KotlinRedundantDiagnosticSuppress", "NOTHING_TO_INLINE")
@file:Suppress("NOTHING_TO_INLINE")

package org.kotlincrypto.core.xof

Expand Down Expand Up @@ -66,7 +66,7 @@ public sealed class Xof<A: XofAlgorithm>(

/**
* Helper to provide access to the instance backing [Xof], if said instance
* can be re-keyed (such as a [org.kotlincrypto.core.mac.Mac]).
* can be re-keyed (such as a `org.kotlincrypto.core.mac.Mac`).
*
* @throws [InvalidKeyException] if [newKey] is unacceptable.
* */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public interface XofAlgorithm: Algorithm

/**
* Extended functionality, specifically for a [Xof] who's backing instance
* is a [org.kotlincrypto.core.mac.Mac].
* is a `org.kotlincrypto.core.mac.Mac`.
*
*
* @see [Xof.Companion.reset]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
@file:Suppress("RedundantVisibilityModifier")

package org.kotlincrypto.core.xof

import org.kotlincrypto.core.*
Expand Down
Loading