Skip to content

Commit b683cd0

Browse files
authored
Lower supported KotlinVersion to 1.8 (#128)
1 parent 397d1fa commit b683cd0

File tree

14 files changed

+28
-13
lines changed

14 files changed

+28
-13
lines changed

build-logic/src/main/kotlin/-KmpConfigurationExtension.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import io.matthewnelson.kmp.configuration.extension.KmpConfigurationExtension
1717
import io.matthewnelson.kmp.configuration.extension.container.target.KmpConfigurationContainerDsl
1818
import org.gradle.api.Action
1919
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
20+
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
2021

2122
fun KmpConfigurationExtension.configureShared(
2223
java9ModuleName: String? = null,
@@ -73,6 +74,15 @@ fun KmpConfigurationExtension.configureShared(
7374

7475
if (publish) kotlin { explicitApi() }
7576

77+
if (publish) kotlin {
78+
@Suppress("DEPRECATION")
79+
compilerOptions {
80+
freeCompilerArgs.add("-Xsuppress-version-warnings")
81+
apiVersion.set(KotlinVersion.KOTLIN_1_8)
82+
languageVersion.set(KotlinVersion.KOTLIN_1_8)
83+
}
84+
}
85+
7686
action.execute(this)
7787
}
7888
}

library/core/src/jvmMain/kotlin/org/kotlincrypto/core/-AndroidSdkInt.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("UNNECESSARY_SAFE_CALL")
17+
1618
package org.kotlincrypto.core
1719

1820
@InternalKotlinCryptoApi

library/digest/src/commonMain/kotlin/org/kotlincrypto/core/digest/Digest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16-
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
16+
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "UNUSED")
1717

1818
package org.kotlincrypto.core.digest
1919

library/digest/src/commonMain/kotlin/org/kotlincrypto/core/digest/internal/-Buffer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16-
@file:Suppress("KotlinRedundantDiagnosticSuppress", "NOTHING_TO_INLINE")
16+
@file:Suppress("NOTHING_TO_INLINE")
1717

1818
package org.kotlincrypto.core.digest.internal
1919

library/digest/src/commonMain/kotlin/org/kotlincrypto/core/digest/internal/-CommonPlatform.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16-
@file:Suppress("KotlinRedundantDiagnosticSuppress", "NOTHING_TO_INLINE")
16+
@file:Suppress("NOTHING_TO_INLINE")
1717

1818
package org.kotlincrypto.core.digest.internal
1919

library/digest/src/jvmMain/kotlin/org/kotlincrypto/core/digest/Digest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16-
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "DeprecatedCallableAddReplaceWith")
16+
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
1717

1818
package org.kotlincrypto.core.digest
1919

library/digest/src/nonJvmMain/kotlin/org/kotlincrypto/core/digest/Digest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16-
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "KotlinRedundantDiagnosticSuppress")
16+
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
1717

1818
package org.kotlincrypto.core.digest
1919

library/mac/src/commonMain/kotlin/org/kotlincrypto/core/mac/Mac.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16-
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
16+
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "UNUSED", "RedundantVisibilityModifier")
1717

1818
package org.kotlincrypto.core.mac
1919

library/mac/src/commonMain/kotlin/org/kotlincrypto/core/mac/internal/-CommonPlatform.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16-
@file:Suppress("KotlinRedundantDiagnosticSuppress", "NOTHING_TO_INLINE")
16+
@file:Suppress("NOTHING_TO_INLINE")
1717

1818
package org.kotlincrypto.core.mac.internal
1919

library/mac/src/jvmMain/kotlin/org/kotlincrypto/core/mac/Mac.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16-
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "DeprecatedCallableAddReplaceWith")
16+
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "RedundantVisibilityModifier")
1717

1818
package org.kotlincrypto.core.mac
1919

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

328-
private data object EmptyKey: KeySpec, SecretKey {
328+
private object EmptyKey: KeySpec, SecretKey {
329329
override fun getAlgorithm(): String = "org.kotlincrypto.core.mac.Mac.EmptyKey"
330330
override fun getEncoded(): ByteArray? = null
331331
override fun getFormat(): String = "RAW"
332+
@Suppress("UNUSED")
332333
private fun readResolve(): Any = EmptyKey
333334
}
334335

0 commit comments

Comments
 (0)