Skip to content

Commit 4a43d27

Browse files
authored
Updated sample app instructions
Update info how to run the sample apps
1 parent 94dbaff commit 4a43d27

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,28 +56,28 @@ docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.2204.main.
5656
docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.2204.main.yaml run test
5757
```
5858

59-
### Examples
59+
### Sample Apps
60+
61+
Sample apps are located in the `Samples/` directory, and they showcase full "roundtrip" usage of the library and/or tools.
6062

6163
#### JavaKit (Swift -> Java)
6264

6365
To run a simple app showcasing a Swift process calling into a Java library you can run:
6466

6567
```bash
66-
make run
68+
./gradlew Samples:JavaKitSampleApp:run
6769
```
6870

69-
Which executes a small Java app (`com.example.swift.HelloSwift`).
70-
7171
#### jextract (Java -> Swift)
7272

7373
To run a simple example app showcasing the jextract (Java calling Swift) approach you can:
7474

7575
```bash
76-
make jextract-run
77-
./gradlew run
76+
./gradlew Samples:SwiftKitSampleApp:run
7877
```
7978

80-
which will run `JavaSwiftKitDemo` sample app.
79+
This will also generate the necessary sources (by invoking jextract, extracting the `Sources/ExampleSwiftLibrary`)
80+
and generating Java sources in `src/generated/java`.
8181

8282
## User Guide
8383

0 commit comments

Comments
 (0)