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
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This repository contains two approaches to Swift/Java interoperability.
4
4
5
-
- Swift library (`JavaKit`) and bindings generator that allows a Swift program to make use of Java libraries by wrapping Java classes in corresponding Swift types, allowing Swift to directly call any wrapped Java API.
5
+
- Swift library (`SwiftJava`) and bindings generator that allows a Swift program to make use of Java libraries by wrapping Java classes in corresponding Swift types, allowing Swift to directly call any wrapped Java API.
6
6
- The `swift-java` tool which which offers automated ways to import or "extract" bindings to sources or libraries in either language. The results are bindings for Swift or Java.
7
7
8
8
## :construction::construction::construction: Early Development :construction::construction::construction:
@@ -19,11 +19,11 @@ The primary purpose of this repository is to create an environment for collabora
19
19
20
20
This project consists of different modules which have different Swift and Java runtime requirements.
21
21
22
-
## JavaKit macros
22
+
## SwiftJava macros
23
23
24
-
JavaKit is a Swift library offering macros which simplify writing JNI code "by hand" but also calling Java code from Swift.
24
+
SwiftJava is a Swift library offering macros which simplify writing JNI code "by hand" but also calling Java code from Swift.
25
25
26
-
It is possible to generate Swift bindings to Java libraries using JavaKit by using the `swift-java wrap-java` command.
26
+
It is possible to generate Swift bindings to Java libraries using SwiftJava by using the `swift-java wrap-java` command.
27
27
28
28
Required language/runtime versions:
29
29
-**JDK 17+**, any recent JDK installation should be sufficient, as only general reflection and JNI APIs are used by this integration
@@ -124,12 +124,12 @@ Please always use the gradle wrapper (`./gradlew`) to make sure to use the appro
124
124
125
125
Sample apps are located in the `Samples/` directory, and they showcase full "roundtrip" usage of the library and/or tools.
126
126
127
-
#### JavaKit (Swift -> Java)
127
+
#### SwiftJava (Swift -> Java)
128
128
129
129
To run a simple app showcasing a Swift process calling into a Java library you can run:
130
130
131
131
```bash
132
-
cd Samples/JavaKitSampleApp
132
+
cd Samples/SwiftJavaExtractFFMSampleApp
133
133
./ci-validate.sh # which is just `swift build` and a `java -cp ...` invocation of the compiled program
0 commit comments