Browse Source

Add repr

./gradlew clean :html-integration-core:jsBrowserRun -Pkotlin.version=1.9.10 // ok
./gradlew clean :html-integration-core:jsBrowserRun -Pkotlin.version=1.9.20-Beta  // error
repr_html_undefined_function_kt1920
oleksandr.karpovich 1 year ago
parent
commit
61ff493d5f
  1. 20
      html/build.gradle.kts
  2. 3
      html/buildSrc/gradle.properties
  3. 2
      html/buildSrc/src/main/kotlin/karmaconf.kt
  4. 3
      html/gradle.properties
  5. 2
      html/integration-core/webpack.config.d/c.js
  6. 661
      html/kotlin-js-store/yarn.lock

20
html/build.gradle.kts

@ -1,11 +1,14 @@
import org.gradle.api.tasks.testing.AbstractTestTask
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.compose.gradle.kotlinKarmaConfig
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.targets
plugins {
kotlin("multiplatform") apply false
id("org.jetbrains.compose") apply false
}
val COMPOSE_WEB_VERSION: String = extra["compose.version"] as String
@ -53,6 +56,23 @@ subprojects {
}
}
afterEvaluate {
val project = this
val kotlinVersion = project.kotlinExtension.coreLibrariesVersion
val composeCompilerVersion = if (kotlinVersion == "1.9.10") {
project.properties["composeCompiler.kt1910"] as String
} else {
project.properties["composeCompiler.kt1920"] as String
}
project.extensions.findByType<org.jetbrains.compose.ComposeExtension>()?.also {
if (!composeCompilerVersion.isNullOrEmpty()) {
println("${project.name} is using compilerPluginVersion = $composeCompilerVersion")
it.kotlinCompilerPlugin.set(composeCompilerVersion)
it.kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=true")
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>() {

3
html/buildSrc/gradle.properties

@ -1 +1,2 @@
kotlin.version=1.9.10
kotlin.version=1.9.20-Beta
#kotlin.version=1.9.10

2
html/buildSrc/src/main/kotlin/karmaconf.kt

@ -13,5 +13,5 @@ fun KotlinKarma.standardConf() {
}
useConfigDirectory("${kotlinKarmaConfig.rootDir}/test-utils/conf/karma.config.common.d")
useChromeHeadless()
useFirefoxHeadless()
// useFirefoxHeadless()
}

3
html/gradle.properties

@ -6,3 +6,6 @@ org.gradle.jvmargs=-Xmx8g
# TODO: figure out why jvmTest (web driver tests) fail with timeout with kotlin 1.9.0
integrationTestsEnabled=false
composeCompiler.kt1910=1.5.2
composeCompiler.kt1920=1.5.2.1-Beta2

2
html/integration-core/webpack.config.d/c.js

@ -0,0 +1,2 @@
config.devtool = undefined; // default is `eval-source-map`
config.mode = 'none'; // default is `development` (for jsBrowserRun).

661
html/kotlin-js-store/yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save