Skip to content

Commit 953fed7

Browse files
authored
Bump dependencies to latest stable versions (#42)
1 parent b7ce615 commit 953fed7

File tree

11 files changed

+46
-465
lines changed

11 files changed

+46
-465
lines changed

.github/workflows/CI.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,23 @@ jobs:
4646
uses: actions/setup-java@v3.4.0
4747
with:
4848
distribution: 'zulu'
49-
java-version: 11
49+
java-version: 17
5050

5151
- name: Run macOS Tests
5252
if: matrix.os == 'macos-latest'
5353
run: >
5454
./gradlew check --stacktrace
55-
-PKMP_TARGETS="JVM,JS,IOS_ARM32,IOS_ARM64,IOS_X64,IOS_SIMULATOR_ARM64,MACOS_ARM64,MACOS_X64,TVOS_ARM64,TVOS_X64,TVOS_SIMULATOR_ARM64,WATCHOS_ARM32,WATCHOS_ARM64,WATCHOS_DEVICE_ARM64,WATCHOS_X64,WATCHOS_X86,WATCHOS_SIMULATOR_ARM64,WASM,WASM_32"
55+
-PKMP_TARGETS="JVM,JS,IOS_ARM64,IOS_X64,IOS_SIMULATOR_ARM64,MACOS_ARM64,MACOS_X64,TVOS_ARM64,TVOS_X64,TVOS_SIMULATOR_ARM64,WATCHOS_ARM32,WATCHOS_ARM64,WATCHOS_DEVICE_ARM64,WATCHOS_X64,WATCHOS_SIMULATOR_ARM64,WASM_JS,WASM_WASI"
5656
- name: Run Linux Tests
5757
if: matrix.os == 'ubuntu-latest'
5858
run: >
5959
./gradlew check --stacktrace
60-
-PKMP_TARGETS="JVM,JS,ANDROID_ARM32,ANDROID_ARM64,ANDROID_X64,ANDROID_X86,LINUX_ARM32HFP,LINUX_ARM64,LINUX_MIPS32,LINUX_MIPSEL32,LINUX_X64,WASM,WASM_32"
60+
-PKMP_TARGETS="JVM,JS,ANDROID,ANDROID_ARM32,ANDROID_ARM64,ANDROID_X64,ANDROID_X86,LINUX_ARM64,LINUX_X64,WASM_JS,WASM_WASI"
6161
- name: Run Windows Tests
6262
if: matrix.os == 'windows-latest'
6363
run: >
6464
./gradlew check --stacktrace
65-
-PKMP_TARGETS="JVM,JS,MINGW_X64,MINGW_X86,WASM,WASM_32"
65+
-PKMP_TARGETS="JVM,JS,MINGW_X64,WASM_JS,WASM_WASI"
6666
6767
emulator:
6868
runs-on: macos-latest

.kotlin-js-store/yarn.lock

+13-423
Large diffs are not rendered by default.

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

+4-10
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ fun KmpConfigurationExtension.configureShared(
3333
}
3434

3535
js()
36-
// wasm()
37-
wasmNativeAll()
36+
// wasmJs {}
37+
// wasmWasi {}
3838

3939
androidNativeAll()
4040

@@ -47,9 +47,7 @@ fun KmpConfigurationExtension.configureShared(
4747
mingwAll()
4848

4949
common {
50-
if (publish) {
51-
pluginIds("publication")
52-
}
50+
if (publish) { pluginIds("publication") }
5351

5452
sourceSetTest {
5553
dependencies {
@@ -58,11 +56,7 @@ fun KmpConfigurationExtension.configureShared(
5856
}
5957
}
6058

61-
if (explicitApi) {
62-
kotlin {
63-
explicitApi()
64-
}
65-
}
59+
if (explicitApi) { kotlin { explicitApi() } }
6660

6761
action.execute(this)
6862
}

build-logic/src/main/kotlin/configuration.gradle.kts

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
1717
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
1818
import org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
1919
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
20+
import org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR
21+
import org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT
2022
import org.gradle.api.tasks.testing.logging.TestLogEvent.STARTED
2123

2224
plugins {
2325
id("io.matthewnelson.kmp.configuration")
2426
}
2527

26-
tasks.withType<Test> {
28+
tasks.withType<AbstractTestTask> {
2729
testLogging {
2830
exceptionFormat = TestExceptionFormat.FULL
29-
events(STARTED, PASSED, SKIPPED, FAILED)
31+
events(STARTED, PASSED, SKIPPED, FAILED, STANDARD_ERROR, STANDARD_OUT)
3032
showStandardStreams = true
33+
showStackTraces = true
3134
}
3235
}

build-logic/src/main/kotlin/publication.gradle.kts

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.gradle.plugins.signing.SigningExtension
2-
31
/*
42
* Copyright (c) 2023 Matthew Nelson
53
*
@@ -15,6 +13,8 @@ import org.gradle.plugins.signing.SigningExtension
1513
* See the License for the specific language governing permissions and
1614
* limitations under the License.
1715
**/
16+
import org.gradle.plugins.signing.SigningExtension
17+
1818
plugins {
1919
id("com.vanniktech.maven.publish")
2020
}
@@ -24,3 +24,8 @@ if (!version.toString().endsWith("-SNAPSHOT")) {
2424
useGpgCmd()
2525
}
2626
}
27+
28+
tasks.withType<AbstractArchiveTask>().configureEach {
29+
isPreserveFileTimestamps = false
30+
isReproducibleFileOrder = true
31+
}

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
1717
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
1818
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
1919

20-
@Suppress("DSL_SCOPE_VIOLATION")
2120
plugins {
2221
alias(libs.plugins.multiplatform) apply(false)
2322
alias(libs.plugins.android.library) apply(false)
@@ -82,6 +81,7 @@ tasks.withType<DependencyUpdatesTask> {
8281
// Example 3: using the full syntax
8382
resolutionStrategy {
8483
componentSelection {
84+
@Suppress("RedundantSamConstructor")
8585
all(Action {
8686
if (isNonStable(candidate.version) && !isNonStable(currentVersion)) {
8787
reject("Release candidate")

gradle.properties

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ org.gradle.caching=true
44

55
android.useAndroidX=true
66
android.enableJetifier=true
7-
android.disableAutomaticComponentCreation=true
87

98
kotlin.code.style=official
10-
kotlin.js.compiler=both
11-
kotlin.mpp.androidSourceSetLayoutVersion=2
12-
kotlin.mpp.enableCompatibilityMetadataVariant=true
9+
kotlin.mpp.applyDefaultHierarchyTemplate=false
1310
kotlin.mpp.stability.nowarn=true
14-
kotlin.native.binary.memoryModel=experimental
1511
kotlin.native.ignoreDisabledTargets=true
1612

1713
SONATYPE_HOST=S01

gradle/libs.versions.toml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[versions]
2-
android = "7.4.2"
2+
android = "8.1.4"
33
androidxTestRunner = "1.5.2"
44
binaryCompat = "0.13.2"
55
bouncyCastle = "1.73"
6-
configuration = "0.1.1"
7-
cryptoCore = "0.3.0"
8-
cryptoHash = "0.3.0"
9-
encoding = "2.0.0"
10-
gradleVersions = "0.46.0"
11-
kotlin = "1.8.21"
12-
publish = "0.25.2"
6+
configuration = "0.1.5"
7+
cryptoCore = "0.4.0"
8+
cryptoHash = "0.4.0"
9+
encoding = "2.1.0"
10+
gradleVersions = "0.50.0"
11+
kotlin = "1.9.21"
12+
publish = "0.25.3"
1313

1414
[libraries]
1515
kotlincrypto-core-digest = { module = "org.kotlincrypto.core:digest", version.ref = "cryptoCore" }

gradle/wrapper/gradle-wrapper.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ zipStorePath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55

66
# https://gradle.org/release-checksums/
7-
distributionSha256Sum=5625a0ae20fe000d9225d000b36909c7a0e0e8dda61c19b12da769add847c975
8-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip
7+
distributionSha256Sum=f2b9ed0faf8472cbe469255ae6c86eddb77076c75191741b4a462f33128dd419
8+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip

test-android/build.gradle.kts

+1-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repositories {
2222
}
2323

2424
kmpConfiguration {
25-
this.configure {
25+
configure {
2626
androidLibrary {
2727
kotlinJvmTarget = JavaVersion.VERSION_11
2828
compileSourceCompatibility = JavaVersion.VERSION_11
@@ -37,12 +37,6 @@ kmpConfiguration {
3737

3838
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3939
}
40-
41-
libraryVariants.all {
42-
generateBuildConfigProvider.configure {
43-
enabled = false
44-
}
45-
}
4640
}
4741

4842
sourceSetTestInstrumented {

tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ abstract class MacUnitTest {
8585
val copy = mac.copy()
8686
copy.reset()
8787

88-
assertNotEquals(copy, mac)
8988
assertEquals(expectedResetSmallHash, copy.doFinal().encodeToString(TestData.base16))
9089
assertEquals(expectedUpdateSmallHash, mac.doFinal().encodeToString(TestData.base16))
9190
}

0 commit comments

Comments
 (0)