File tree Expand file tree Collapse file tree 3 files changed +47
-45
lines changed
compose-multiplatform-common/legacy Expand file tree Collapse file tree 3 files changed +47
-45
lines changed Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2+
3+ plugins {
4+ id(" common-conventions" )
5+ id(" com.huanshankeji.kotlin-multiplatform-jvm-and-js-browser-conventions" )
6+ id(" com.android.library" )
7+ }
8+
9+ kotlin {
10+ androidTarget {
11+ publishLibraryVariants(" release" , " debug" )
12+ }
13+
14+ // move to `common-conventions` if necessary
15+
16+ @OptIn(ExperimentalKotlinGradlePluginApi ::class )
17+ applyDefaultHierarchyTemplate {
18+ common {
19+ group(" androidxCommon" ) {
20+ withJvm()
21+ withAndroidTarget()
22+ group(" ios" )
23+ withWasmJs()
24+ }
25+ }
26+ }
27+
28+ /*
29+ sourceSets {
30+ val androidxCommonMain by creating { dependsOn(commonMain.get()) }
31+ jvmMain { dependsOn(androidxCommonMain) }
32+ iosMain { dependsOn(androidxCommonMain) }
33+ named("wasmJsMain") { dependsOn(androidxCommonMain) }
34+ }
35+ */
36+ }
37+
38+ android {
39+ namespace = group as String
40+
41+ compileSdk = androidSdkVersion
42+ }
Original file line number Diff line number Diff line change 1- import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2-
31plugins {
4- id(" common-conventions" )
5- id(" com.huanshankeji.kotlin-multiplatform-jvm-and-js-browser-conventions" )
6- id(" com.android.library" )
2+ id(" lib-conventions-without-publishing" )
73 id(" com.huanshankeji.kotlin-multiplatform-sonatype-ossrh-publish-conventions" )
8- }
9-
10- kotlin {
11- androidTarget {
12- publishLibraryVariants(" release" , " debug" )
13- }
14-
15- // move to `common-conventions` if necessary
16-
17- @OptIn(ExperimentalKotlinGradlePluginApi ::class )
18- applyDefaultHierarchyTemplate {
19- common {
20- group(" androidxCommon" ) {
21- withJvm()
22- withAndroidTarget()
23- group(" ios" )
24- withWasmJs()
25- }
26- }
27- }
28-
29- /*
30- sourceSets {
31- val androidxCommonMain by creating { dependsOn(commonMain.get()) }
32- jvmMain { dependsOn(androidxCommonMain) }
33- iosMain { dependsOn(androidxCommonMain) }
34- named("wasmJsMain") { dependsOn(androidxCommonMain) }
35- }
36- */
37- }
38-
39- android {
40- namespace = group as String
41-
42- compileSdk = androidSdkVersion
43- }
4+ }
Original file line number Diff line number Diff line change 1- import com.huanshankeji.team.`Shreck Ye`
2- import com.huanshankeji.team.pomForTeamDefaultOpenSource
3-
41plugins {
5- `lib- conventions`
2+ `lib- conventions- without - publishing `
63}
74
85kotlin {
@@ -28,6 +25,7 @@ kotlin {
2825 }
2926}
3027
28+ /*
3129publishing.publications.withType<MavenPublication> {
3230 pomForTeamDefaultOpenSource(
3331 project,
@@ -39,3 +37,4 @@ publishing.publications.withType<MavenPublication> {
3937 `Shreck Ye`()
4038 }
4139}
40+ */
You can’t perform that action at this time.
0 commit comments