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
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,37 @@ This repository contains two approaches to Swift/Java interoperability.
5
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.
## :construction: Early Development :construction:
9
9
10
-
**:construction::construction::construction:This is a *very early* prototype and everything is subject to change.:construction::construction::construction:**
10
+
**:construction: This is a *very early* prototype and everything is subject to change. :construction:**
11
11
12
12
Parts of this project are incomplete, not fleshed out, and subject to change without any notice.
13
13
14
14
The primary purpose of this repository is to create an environment for collaboration and joint exploration of the Swift/Java interoperability story. The project will transition to a more structured approach once key goals have been outlined.
15
15
16
+
### :construction: Self-publish support Java libraries (SwiftKit)
17
+
18
+
While we work out how to provide the necessary support libraries for the Java side of Java code generated by `swift-java jextract`,
19
+
you will currently need to publish them locally and depend on them this way;
20
+
21
+
To publish the libraries to your local maven repository (`$HOME/.m2`), you can run:
22
+
23
+
```
24
+
// in swift-java/
25
+
./gradlew publishToMavenLocal
26
+
```
27
+
28
+
To consume these libraries in your Java project built using Gradle, you can then include the local repository in the repositories to resolve dependencies from:
0 commit comments