diff --git a/examples/codeviewer/README.md b/examples/codeviewer/README.md index 0fdefed7ad..8df821f1ba 100644 --- a/examples/codeviewer/README.md +++ b/examples/codeviewer/README.md @@ -1,9 +1,10 @@ MPP Code Viewer example for desktop/android written in Multiplatform Compose library. ### Running desktop application -``` -./gradlew :desktop:run -``` + +* To run, launch command: `./gradlew :desktop:run` +* Or choose **desktop** configuration in IDE and run it. + ![desktop-run-configuration.png](desktop-run-configuration.png) ### Building native desktop distribution ``` diff --git a/examples/codeviewer/desktop-run-configuration.png b/examples/codeviewer/desktop-run-configuration.png new file mode 100644 index 0000000000..3688407c6f Binary files /dev/null and b/examples/codeviewer/desktop-run-configuration.png differ diff --git a/examples/falling-balls/.run/desktop.run.xml b/examples/falling-balls/.run/desktop.run.xml new file mode 100644 index 0000000000..d4d6b92cb3 --- /dev/null +++ b/examples/falling-balls/.run/desktop.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/falling-balls/README.md b/examples/falling-balls/README.md new file mode 100644 index 0000000000..6e405524b5 --- /dev/null +++ b/examples/falling-balls/README.md @@ -0,0 +1,7 @@ +Falling Balls game + +### Running desktop application + * To run, launch command: `./gradlew run` + * Or choose **desktop** configuration in IDE and run it. + ![desktop-run-configuration.png](desktop-run-configuration.png) + diff --git a/examples/falling-balls/desktop-run-configuration.png b/examples/falling-balls/desktop-run-configuration.png new file mode 100644 index 0000000000..3688407c6f Binary files /dev/null and b/examples/falling-balls/desktop-run-configuration.png differ diff --git a/examples/imageviewer/README.md b/examples/imageviewer/README.md index 1bbb38891a..c7ede93bc7 100755 --- a/examples/imageviewer/README.md +++ b/examples/imageviewer/README.md @@ -1,9 +1,9 @@ An example of image gallery for remote server image viewing, based on Jetpack Compose UI library (desktop and android). ### Running desktop application -``` -./gradlew :desktop:run -``` + * To run, launch command: `./gradlew :desktop:run` + * Or choose **desktop** configuration in IDE and run it. + ![desktop-run-configuration.png](desktop-run-configuration.png) ### Building native desktop distribution ``` diff --git a/examples/imageviewer/desktop-run-configuration.png b/examples/imageviewer/desktop-run-configuration.png new file mode 100644 index 0000000000..3688407c6f Binary files /dev/null and b/examples/imageviewer/desktop-run-configuration.png differ diff --git a/examples/intellij-plugin-with-experimental-shared-base/.run/runIde.run.xml b/examples/intellij-plugin-with-experimental-shared-base/.run/runIde.run.xml new file mode 100644 index 0000000000..52aca017c2 --- /dev/null +++ b/examples/intellij-plugin-with-experimental-shared-base/.run/runIde.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/intellij-plugin-with-experimental-shared-base/README.md b/examples/intellij-plugin-with-experimental-shared-base/README.md index e8d43a50bc..550ed1fffa 100644 --- a/examples/intellij-plugin-with-experimental-shared-base/README.md +++ b/examples/intellij-plugin-with-experimental-shared-base/README.md @@ -10,8 +10,9 @@ and allows sharing Compose runtime between multiple plugins ### Usage 1. Start test IDE: - * Choose the `runIde` task in the Gradle panel in Intellij; - * Or run the following command in terminal: `./gradlew runIde`; + * Run the following command in terminal: `./gradlew runIde` + * Or choose **runIde** configuration in IDE and run it. + ![ide-run-configuration.png](ide-run-configuration.png) 2. Create a new project or open any existing; 3. Select `Show Compose Demo...` from the `Tools` menu. diff --git a/examples/intellij-plugin-with-experimental-shared-base/ide-run-configuration.png b/examples/intellij-plugin-with-experimental-shared-base/ide-run-configuration.png new file mode 100644 index 0000000000..9dc9453a38 Binary files /dev/null and b/examples/intellij-plugin-with-experimental-shared-base/ide-run-configuration.png differ diff --git a/examples/intellij-plugin/.run/runIde.run.xml b/examples/intellij-plugin/.run/runIde.run.xml new file mode 100644 index 0000000000..52aca017c2 --- /dev/null +++ b/examples/intellij-plugin/.run/runIde.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/intellij-plugin/README.md b/examples/intellij-plugin/README.md index 1b510009c5..4912ad9ade 100644 --- a/examples/intellij-plugin/README.md +++ b/examples/intellij-plugin/README.md @@ -2,7 +2,10 @@ To run the example: -1. from directory `compose-jb/examples/intellij-plugin` run command in terminal: `./gradlew runIde` +1. from directory `compose-jb/examples/intellij-plugin`: + * Run command in terminal `./gradlew runIde`. + * Or choose **runIde** configuration in IDE and run it. + ![ide-run-configuration.png](ide-run-configuration.png) 2. create project or open any existing 3. from menu `Tools` select `Show Compose Demo...` diff --git a/examples/intellij-plugin/ide-run-configuration.png b/examples/intellij-plugin/ide-run-configuration.png new file mode 100644 index 0000000000..9dc9453a38 Binary files /dev/null and b/examples/intellij-plugin/ide-run-configuration.png differ diff --git a/examples/issues/.run/desktop.run.xml b/examples/issues/.run/desktop.run.xml new file mode 100644 index 0000000000..c10d50877a --- /dev/null +++ b/examples/issues/.run/desktop.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/issues/README.md b/examples/issues/README.md index 18db020e27..5617219de8 100644 --- a/examples/issues/README.md +++ b/examples/issues/README.md @@ -2,9 +2,9 @@ Github Issues viewer example written in Jetpack Compose UI library. ### Running desktop application -``` -./gradlew :desktop:run -``` +* To run, launch command: `./gradlew :desktop:run` +* Or choose **desktop** configuration in IDE and run it. + ![desktop-run-configuration.png](desktop-run-configuration.png) ### Building native desktop distribution ``` diff --git a/examples/issues/desktop-run-configuration.png b/examples/issues/desktop-run-configuration.png new file mode 100644 index 0000000000..3688407c6f Binary files /dev/null and b/examples/issues/desktop-run-configuration.png differ diff --git a/examples/notepad/README.md b/examples/notepad/README.md index 027509aef0..d3974850c4 100644 --- a/examples/notepad/README.md +++ b/examples/notepad/README.md @@ -1,9 +1,9 @@ Notepad example for desktop written in Compose for Desktop library, using Composable Window API ### Running desktop application -``` -./gradlew run -``` +* To run, launch command: `./gradlew run` +* Or choose **desktop** configuration in IDE and run it. + ![desktop-run-configuration.png](desktop-run-configuration.png) ### Building native desktop distribution ``` diff --git a/examples/notepad/desktop-run-configuration.png b/examples/notepad/desktop-run-configuration.png new file mode 100644 index 0000000000..3688407c6f Binary files /dev/null and b/examples/notepad/desktop-run-configuration.png differ diff --git a/examples/todoapp-lite/.run/desktop.run.xml b/examples/todoapp-lite/.run/desktop.run.xml new file mode 100644 index 0000000000..c10d50877a --- /dev/null +++ b/examples/todoapp-lite/.run/desktop.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/todoapp-lite/README.md b/examples/todoapp-lite/README.md index 67023dabed..d53ea8d327 100755 --- a/examples/todoapp-lite/README.md +++ b/examples/todoapp-lite/README.md @@ -3,9 +3,9 @@ A simplified version of the [TodoApp example](https://github.com/JetBrains/compo Supported targets: Android and Desktop. ### Running desktop application -``` -./gradlew :desktop:run -``` + * To run, launch command: `./gradlew :desktop:run` + * Or choose **desktop** configuration in IDE and run it. + ![desktop-run-configuration.png](desktop-run-configuration.png) ### Building native desktop distribution ``` diff --git a/examples/todoapp-lite/desktop-run-configuration.png b/examples/todoapp-lite/desktop-run-configuration.png new file mode 100644 index 0000000000..3688407c6f Binary files /dev/null and b/examples/todoapp-lite/desktop-run-configuration.png differ diff --git a/examples/todoapp/.run/browser.run.xml b/examples/todoapp/.run/browser.run.xml new file mode 100644 index 0000000000..246a33bdbf --- /dev/null +++ b/examples/todoapp/.run/browser.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/todoapp/.run/desktop.run.xml b/examples/todoapp/.run/desktop.run.xml new file mode 100644 index 0000000000..c10d50877a --- /dev/null +++ b/examples/todoapp/.run/desktop.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/todoapp/README.md b/examples/todoapp/README.md index ee267b1d9c..1efcddc185 100755 --- a/examples/todoapp/README.md +++ b/examples/todoapp/README.md @@ -34,9 +34,9 @@ Features: - Pluggable UI - Compose UI for Android, Desktop and Web, SwiftUI (not Compose) for iOS ### Running desktop application -``` -./gradlew :desktop:run -``` + * To run, launch command: `./gradlew :desktop:run` + * Or choose **desktop** configuration in IDE and run it. + ![desktop-run-configuration.png](desktop-run-configuration.png) #### Building native desktop distribution ``` @@ -49,9 +49,9 @@ Features: Open project in Intellij IDEA or Android Studio and run "android" configuration. ### Running Web browser application -``` -./gradlew :web:jsBrowserDevelopmentRun -``` + * To run, launch command: `./gradlew :web:jsBrowserDevelopmentRun` + * Or choose **browser** configuration in IDE and run it. + ![browser-run-configuration.png](browser-run-configuration.png) ### Running iOS application diff --git a/examples/todoapp/browser-run-configuration.png b/examples/todoapp/browser-run-configuration.png new file mode 100644 index 0000000000..8a08eeac53 Binary files /dev/null and b/examples/todoapp/browser-run-configuration.png differ diff --git a/examples/todoapp/desktop-run-configuration.png b/examples/todoapp/desktop-run-configuration.png new file mode 100644 index 0000000000..3688407c6f Binary files /dev/null and b/examples/todoapp/desktop-run-configuration.png differ diff --git a/examples/visual-effects/.run/desktop.run.xml b/examples/visual-effects/.run/desktop.run.xml new file mode 100644 index 0000000000..29d5ed2ecd --- /dev/null +++ b/examples/visual-effects/.run/desktop.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/visual-effects/README.md b/examples/visual-effects/README.md index 3eee5cb963..1ee06e9ee1 100644 --- a/examples/visual-effects/README.md +++ b/examples/visual-effects/README.md @@ -1 +1,7 @@ Several visual effects implmented with Compose Multiplatform, used in 1.0 release announce video. + +### Running desktop application +* To run, launch command: `./gradlew run` +* Or choose **desktop** configuration in IDE and run it. + ![desktop-run-configuration.png](desktop-run-configuration.png) + diff --git a/examples/visual-effects/desktop-run-configuration.png b/examples/visual-effects/desktop-run-configuration.png new file mode 100644 index 0000000000..3688407c6f Binary files /dev/null and b/examples/visual-effects/desktop-run-configuration.png differ diff --git a/examples/web-compose-bird/.run/browser.run.xml b/examples/web-compose-bird/.run/browser.run.xml new file mode 100644 index 0000000000..75289b1c79 --- /dev/null +++ b/examples/web-compose-bird/.run/browser.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/web-compose-bird/README.md b/examples/web-compose-bird/README.md index f0aede880b..2fb07d6439 100644 --- a/examples/web-compose-bird/README.md +++ b/examples/web-compose-bird/README.md @@ -12,12 +12,13 @@ ## ▶️ Play - https://theapache64.github.io/compose-bird/ +- Use arrow **Up** key to fly ## 🏃 Run -``` -./gradlew jsBrowserRun -``` +* To run, launch command: `./gradlew jsBrowserRun` +* Or choose **browser** configuration in IDE and run it. + ![browser-run-configuration.png](browser-run-configuration.png) ## 📦 Distribute diff --git a/examples/web-compose-bird/browser-run-configuration.png b/examples/web-compose-bird/browser-run-configuration.png new file mode 100644 index 0000000000..8a08eeac53 Binary files /dev/null and b/examples/web-compose-bird/browser-run-configuration.png differ diff --git a/examples/web-compose-bird/gradle.properties b/examples/web-compose-bird/gradle.properties index 54c4fa28f2..d880388dbc 100644 --- a/examples/web-compose-bird/gradle.properties +++ b/examples/web-compose-bird/gradle.properties @@ -1,4 +1,3 @@ kotlin.code.style=official -org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 kotlin.version=1.7.10 compose.version=1.2.0-beta02 diff --git a/examples/web-compose-in-js/.run/browser.run.xml b/examples/web-compose-in-js/.run/browser.run.xml new file mode 100644 index 0000000000..66615b40fd --- /dev/null +++ b/examples/web-compose-in-js/.run/browser.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/web-compose-in-js/README.MD b/examples/web-compose-in-js/README.MD index 308b8a383c..0320575a52 100644 --- a/examples/web-compose-in-js/README.MD +++ b/examples/web-compose-in-js/README.MD @@ -67,6 +67,11 @@ config.output = config.output || {}; config.output.library = "MyComposables"; ``` +### Running Web browser application +* To run, launch command: `./gradlew :jsBrowserDevelopmentRun` +* Or choose **browser** configuration in IDE and run it. + ![browser-run-configuration.png](browser-run-configuration.png) + ### Building and using the output ``` diff --git a/examples/web-compose-in-js/browser-run-configuration.png b/examples/web-compose-in-js/browser-run-configuration.png new file mode 100644 index 0000000000..8a08eeac53 Binary files /dev/null and b/examples/web-compose-in-js/browser-run-configuration.png differ diff --git a/examples/web-landing/.run/browser.run.xml b/examples/web-landing/.run/browser.run.xml new file mode 100644 index 0000000000..ab1d4d1969 --- /dev/null +++ b/examples/web-landing/.run/browser.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/web-landing/README.md b/examples/web-landing/README.md new file mode 100755 index 0000000000..5727745049 --- /dev/null +++ b/examples/web-landing/README.md @@ -0,0 +1,6 @@ +Landing page of Compose for Web + +### Running Web browser application + * To run, launch command: `./gradlew :jsBrowserRun` + * Or choose **browser** configuration in IDE and run it. + ![browser-run-configuration.png](browser-run-configuration.png) diff --git a/examples/web-landing/browser-run-configuration.png b/examples/web-landing/browser-run-configuration.png new file mode 100644 index 0000000000..8a08eeac53 Binary files /dev/null and b/examples/web-landing/browser-run-configuration.png differ diff --git a/examples/web-with-react/.run/browser.run.xml b/examples/web-with-react/.run/browser.run.xml new file mode 100644 index 0000000000..ab1d4d1969 --- /dev/null +++ b/examples/web-with-react/.run/browser.run.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/examples/web-with-react/README.md b/examples/web-with-react/README.md index c5fc03c24e..62e62b7405 100644 --- a/examples/web-with-react/README.md +++ b/examples/web-with-react/README.md @@ -19,6 +19,6 @@ It requires adding `external` declarations. For example: [ReactYoutubePlayer.kt] Here is a good tutorial - [Using packages from NPM](https://play.kotlinlang.org/hands-on/Building%20Web%20Applications%20with%20React%20and%20Kotlin%20JS/07_Using_Packages_From_NPM) ### Running web application -``` -./gradlew jsBrowserRun -``` \ No newline at end of file +* To run, launch command: `./gradlew :jsBrowserRun` +* Or choose **browser** configuration in IDE and run it. + ![browser-run-configuration.png](browser-run-configuration.png) diff --git a/examples/web-with-react/browser-run-configuration.png b/examples/web-with-react/browser-run-configuration.png new file mode 100644 index 0000000000..8a08eeac53 Binary files /dev/null and b/examples/web-with-react/browser-run-configuration.png differ diff --git a/examples/widgets-gallery/README.md b/examples/widgets-gallery/README.md index 985bfb2854..e2dd6ba105 100644 --- a/examples/widgets-gallery/README.md +++ b/examples/widgets-gallery/README.md @@ -9,9 +9,9 @@ An example of Compose application for Desktop and Android platforms, demonstrating how to use various Material widgets. ### Running desktop application -``` -./gradlew :desktop:run -``` + * To run, launch command: `./gradlew :desktop:run` + * Or choose **desktop** configuration in IDE and run it. + ![desktop-run-configuration.png](desktop-run-configuration.png) ### Building native desktop distribution ``` diff --git a/examples/widgets-gallery/desktop-run-configuration.png b/examples/widgets-gallery/desktop-run-configuration.png new file mode 100644 index 0000000000..3688407c6f Binary files /dev/null and b/examples/widgets-gallery/desktop-run-configuration.png differ