File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -56,28 +56,28 @@ docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.2204.main.
56
56
docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.2204.main.yaml run test
57
57
```
58
58
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.
60
62
61
63
#### JavaKit (Swift -> Java)
62
64
63
65
To run a simple app showcasing a Swift process calling into a Java library you can run:
64
66
65
67
``` bash
66
- make run
68
+ ./gradlew Samples:JavaKitSampleApp: run
67
69
```
68
70
69
- Which executes a small Java app (` com.example.swift.HelloSwift ` ).
70
-
71
71
#### jextract (Java -> Swift)
72
72
73
73
To run a simple example app showcasing the jextract (Java calling Swift) approach you can:
74
74
75
75
``` bash
76
- make jextract-run
77
- ./gradlew run
76
+ ./gradlew Samples:SwiftKitSampleApp:run
78
77
```
79
78
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 ` .
81
81
82
82
## User Guide
83
83
You can’t perform that action at this time.
0 commit comments