diff --git a/gradle.properties b/gradle.properties index 9b7646f..b1d2612 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,4 +14,5 @@ kotlin.mpp.androidSourceSetLayoutVersion=2 #Compose org.jetbrains.compose.experimental.uikit.enabled=true -compose.kotlin.native.manageCacheKind=false \ No newline at end of file +org.jetbrains.compose.experimental.jscanvas.enabled=true +compose.kotlin.native.manageCacheKind=false diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2e1b3ff..4a09813 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,7 +8,7 @@ kotlinAndroid = "1.9.0" kotlinMultiplatform = "1.9.0" compose = "1.5.0" composeCompiler = "1.5.1" -androidLibrary = "8.0.0" +androidLibrary = "8.1.0" [plugins] ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } diff --git a/settings.gradle.kts b/settings.gradle.kts index 3975c31..8393ad2 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -5,6 +5,13 @@ pluginManagement { maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") mavenCentral() } + resolutionStrategy { + eachPlugin { + if (requested.id.id == "kotlin2js") { + useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${requested.version}") + } + } + } } dependencyResolutionManagement { @@ -19,4 +26,5 @@ dependencyResolutionManagement { rootProject.name = "KodeView" include(":shared") -include(":androidExample") \ No newline at end of file +include(":androidExample") +include(":webExample") \ No newline at end of file diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index c54275c..83dc639 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "dev.snipme" -version = "0.1.2" +version = "0.2.0" android { namespace = "dev.snipme.kodeview" @@ -56,6 +56,7 @@ kotlin { implementation(kotlin("test")) } } + // Android val androidMain by getting { dependencies { @@ -64,6 +65,7 @@ kotlin { implementation("androidx.core:core-ktx:1.10.1") } } + // iOS val iosX64Main by getting val iosArm64Main by getting diff --git a/webExample/build.gradle.kts b/webExample/build.gradle.kts new file mode 100644 index 0000000..af2c018 --- /dev/null +++ b/webExample/build.gradle.kts @@ -0,0 +1,7 @@ +plugins { + application +} + +application { + mainClass.set("dev.snipme.application.MainKt") +} \ No newline at end of file diff --git a/webExample/src/main/kotlin/Main.kt b/webExample/src/main/kotlin/Main.kt new file mode 100644 index 0000000..f1eafa9 --- /dev/null +++ b/webExample/src/main/kotlin/Main.kt @@ -0,0 +1,3 @@ +fun main() { + +} \ No newline at end of file