Browse Source

Update README.md for Code Viewer example (#2989)

pull/2990/head
Nikita Lipsky 1 year ago committed by GitHub
parent
commit
6f13bc35a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      examples/codeviewer/README.md
  2. BIN
      examples/codeviewer/run-configurations.png
  3. BIN
      examples/codeviewer/screenshots/codeviewer.png

16
examples/codeviewer/README.md

@ -1,19 +1,17 @@
# Code Viewer
MPP Code Viewer example for desktop/android/iOS written in Multiplatform Compose library.
Code Viewer example for Desktop, Android and iOS written in Compose Multiplatform.
## How to run
## Setting up your development environment
Choose a run configuration for an appropriate target in IDE and run it.
To setup the environment, please consult these [instructions](https://github.com/JetBrains/compose-multiplatform-template#setting-up-your-development-environment).
![run-configurations.png](run-configurations.png)
## How to run
To run on iOS device, please correct `TEAM_ID` value in `iosApp/Configuration/Config.xcconfig` with your Apple Team ID.
Alternatively, you may setup signing within XCode opening `iosApp/iosApp.xcworkspace` and then
using "Signing & Capabilities" tab of `Codeviewer` target.
Choose a run configuration for an appropriate target in Android Studio and run it.
Then choose **iosApp** configuration in IDE and run it.
![run-configurations.png](run-configurations.png)
## Run on desktop via Gradle
## Run desktop via Gradle
`./gradlew desktopApp:run`

BIN
examples/codeviewer/run-configurations.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 17 KiB

BIN
examples/codeviewer/screenshots/codeviewer.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 365 KiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Loading…
Cancel
Save