Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into release/1.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	examples/web-landing/README.md
  • Loading branch information
igordmn committed Oct 10, 2022
2 parents d18432c + 4dd1c4a commit 3053e17
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ Note that when you use Compose Multiplatform, you setup your project differently
* [imageviewer](examples/imageviewer) - Image Viewer application for Android and Desktop
* [issues](examples/issues) - GitHub issue tracker with an adaptive UI and ktor-client
* [Falling Balls](examples/falling-balls) - Simple game
* [compose-bird](examples/web-compose-bird) - A flappy bird clone using Compose for Web
* [notepad](examples/notepad) - Notepad, using the new experimental Composable Window API
* [todoapp](examples/todoapp) - TODO items tracker with persistence and multiple screens, written with external navigation library
* [todoapp-lite](examples/todoapp-lite) - A simplified version of [todoapp](examples/todoapp), fully based on Compose
* [widgets gallery](examples/widgets-gallery) - Gallery of standard widgets
* [IDEA plugin](examples/intellij-plugin) - Plugin for IDEA using Compose for Desktop
* [compose-bird](examples/web-compose-bird) - A flappy bird clone using Compose for Web
* [web-landing](examples/web-landing) - A landing page built using Compose for Web (HTML composable api)
* [compose-web-with-react](examples/web-with-react) - Using compose-in-react and react-in-compose
* [compose-web-in-js](examples/web-compose-in-js) - Using Html based composables in js

## Other ##
* [artwork](artwork) - design artifacts
Expand Down
5 changes: 5 additions & 0 deletions examples/web-compose-in-js/README.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

**Run in browser:**

`./gradlew jsRun`

### How to use HTML based @Composable functions in JS?

Useful links:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType

internal object ComposeCompilerCompatability {
fun compilerVersionFor(kotlinVersion: String): ComposeCompilerVersion? = when (kotlinVersion) {
"1.7.10" -> ComposeCompilerVersion("1.3.0-alpha01")
"1.7.10" -> ComposeCompilerVersion("1.3.0")
"1.7.20" -> ComposeCompilerVersion(
"1.3.2-alpha01",
"1.3.2",
unsupportedPlatforms = setOf(KotlinPlatformType.js)
)
else -> null
Expand Down
2 changes: 1 addition & 1 deletion gradle-plugins/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kotlin.code.style=official
# Default version of Compose Libraries used by Gradle plugin
compose.version=1.2.0-beta02
# The latest version of Compose Compiler used by Gradle plugin. Used only in tests.
compose.tests.compiler.version=1.3.2-alpha01
compose.tests.compiler.version=1.3.2
# The latest version of Kotlin compatible with compose.tests.compiler.version. Used only in tests.
compose.tests.compiler.compatible.kotlin.version=1.7.20
# The latest version of Kotlin compatible with compose.tests.compiler.version for JS target. Used only on CI.
Expand Down

0 comments on commit 3053e17

Please sign in to comment.