You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or just use the provided docker image (explained below).
42
-
43
-
https://www.swift.org/download/
25
+
Currently this project supports Swift `6.0.x` and we are working on supporting later releases.
44
26
27
+
You can use Swiftly ([macOS](https://www.swift.org/install/macos/swiftly/) / [linux](https://www.swift.org/install/linux/swiftly/)) the Swift toolchain installer to install the necessary Swift versions.
45
28
46
29
### Required JDK versions
47
30
@@ -50,16 +33,18 @@ This project consists of different modules which have different Swift and Java r
50
33
**JavaKit** – the Swift macros allowing the invocation of Java libraries from Swift
51
34
52
35
-**JDK 17+**, any recent JDK installation should be sufficient, as only general reflection and JNI APIs are used by this integration
53
-
-**Swift 6.0+**, because the library uses modern Swift macros
36
+
-**Swift 6.0.x**, because the library uses modern Swift macros
54
37
55
38
**jextract-swift** – the source generator that ingests .swiftinterface files and makes them available to be called from generated Java sources
56
39
57
-
-**Swift 6.x development snapshots**, because of dependence on rich swift interface files
40
+
-**Swift 6.0.x development snapshots**, because of dependence on rich swift interface files
58
41
-**JDK 22+** because of dependence on [JEP-454: Foreign Function & Memory API](https://openjdk.org/jeps/454)
59
42
- We are validating the implementation using the currently supported non-LTE release, which at present means JDK-23.
60
43
61
44
The extract tool may become able to generate legacy compatible sources, which would not require JEP-454 and would instead rely on existing JNI facilities. Currently though, efforts are focused on the forward-looking implementation using modern foreign function and memory APIs.
62
45
46
+
Support for more recent Swift versions will be provided, for now please stick to 6.0 while evaluating this early version of swift-java.
47
+
63
48
## Development and Testing
64
49
65
50
This project contains multiple builds, living side by side together.
@@ -89,8 +74,7 @@ To run a simple app showcasing a Swift process calling into a Java library you c
0 commit comments