Skip to content

Commit

Permalink
add: README.md, testing section
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Aug 18, 2024
1 parent c579fd4 commit 28cc359
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ for building Swing based UI and react to UI events by utilizing

## Usage

Add to your `build.gradle.kts`
Add to your `build.gradle.kts`:

```kotlin
dependencies {
implementation("com.xemantic.kotlin:xemantic-kotlin-swing-dsl-core:$libVersion")
runtimeOnly("org.jetbrains.kotlinx:kotlinx-coroutines-swing:$coroutinesVersion")
implementation("com.xemantic.kotlin:xemantic-kotlin-swing-dsl-core:1.0")
runtimeOnly("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.8.1")
}
```

Expand Down Expand Up @@ -129,3 +129,16 @@ demo implements exactly the same "browser" in pure Java.
## Other examples

The [demo](demo) folder contains additional examples.

## Testing

This library is also supporting testing of presenters, if your code adheres to Model View Presenter
principles. You can check an example in the [mvp-presenter demo](demo/mvp-presenter) module.

Add this dependency to your `build.gradle.kts` for testing support:

```kotlin
dependencies {
testImplementation("com.xemantic.kotlin:xemantic-kotlin-swing-dsl-test:1.0")
}
```

0 comments on commit 28cc359

Please sign in to comment.