File tree Expand file tree Collapse file tree 8 files changed +34
-12
lines changed
build-logic/src/main/kotlin/ckbuild Expand file tree Collapse file tree 8 files changed +34
-12
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ val artifacts
1313 " cryptography-serialization-asn1" ,
1414 " cryptography-serialization-asn1-modules" ,
1515 " cryptography-core" ,
16+ " cryptography-provider-base" ,
1617 " cryptography-provider-jdk" ,
1718 " cryptography-provider-apple" ,
1819 " cryptography-provider-webcrypto" ,
Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ kotlin {
2727
2828 sourceSets.commonMain.dependencies {
2929 api(projects.cryptographyCore)
30- implementation(projects.cryptographySerializationPem)
31- implementation(projects.cryptographySerializationAsn1)
32- implementation(projects.cryptographySerializationAsn1Modules)
30+ implementation(projects.cryptographyProviderBase)
3331 }
3432}
3533
Original file line number Diff line number Diff line change 1+ # Module cryptography-provider-base
2+
3+ Shared implementation details for providers
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2023-2024 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
3+ */
4+
5+ import ckbuild.*
6+
7+ plugins {
8+ id(" ckbuild.multiplatform-library" )
9+ }
10+
11+ description = " cryptography-kotlin base provider"
12+
13+ kotlin {
14+ jvmTarget()
15+ jsTarget()
16+ nativeTargets()
17+ wasmTargets()
18+
19+ sourceSets.commonMain.dependencies {
20+ api(projects.cryptographyCore)
21+ api(projects.cryptographySerializationPem)
22+ api(projects.cryptographySerializationAsn1)
23+ api(projects.cryptographySerializationAsn1Modules)
24+ }
25+ }
Original file line number Diff line number Diff line change @@ -26,9 +26,7 @@ kotlin {
2626 sourceSets {
2727 jvmMain.dependencies {
2828 api(projects.cryptographyCore)
29- implementation(projects.cryptographySerializationPem)
30- implementation(projects.cryptographySerializationAsn1)
31- implementation(projects.cryptographySerializationAsn1Modules)
29+ implementation(projects.cryptographyProviderBase)
3230 }
3331 jvmTest.dependencies {
3432 implementation(libs.bouncycastle)
Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ kotlin {
3030
3131 sourceSets.commonMain.dependencies {
3232 api(projects.cryptographyCore)
33-
34- implementation(projects.cryptographySerializationAsn1)
35- implementation(projects.cryptographySerializationAsn1Modules)
33+ implementation(projects.cryptographyProviderBase)
3634 }
3735
3836 targets.withType<KotlinNativeTarget >().configureEach {
Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ kotlin {
2727
2828 sourceSets.commonMain.dependencies {
2929 api(projects.cryptographyCore)
30- implementation(projects.cryptographySerializationPem)
31- implementation(projects.cryptographySerializationAsn1)
32- implementation(projects.cryptographySerializationAsn1Modules)
30+ implementation(projects.cryptographyProviderBase)
3331 }
3432}
3533
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ projects("cryptography-kotlin") {
4646
4747 // providers
4848 folder(" cryptography-providers" , prefix = " cryptography-provider" ) {
49+ module(" base" )
4950 module(" jdk" ) {
5051 module(" android-tests" )
5152 }
You can’t perform that action at this time.
0 commit comments