File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ func findJavaHome() -> String {
26
26
return home
27
27
}
28
28
29
+ // Detect we're on CI and try to guess the JAVA_HOME for the shared Swift Soundness scripts
30
+ if ProcessInfo . processInfo. environment [ " GITHUB_ACTIONS " ] != nil {
31
+ let defaultCIJDKPath = " /usr/lib/jvm/default-jdk "
32
+ if FileManager . default. fileExists ( atPath: defaultCIJDKPath) {
33
+ return defaultCIJDKPath
34
+ }
35
+ }
36
+
29
37
fatalError ( " Please set the JAVA_HOME environment variable to point to where Java is installed. " )
30
38
}
31
39
let javaHome = findJavaHome ( )
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ func callMe(maybe: () -> ()) {}
38
38
```
39
39
40
40
41
-
42
41
## ` jextract-swift ` importer behavior
43
42
44
43
Only ` public ` functions, properties and types are imported.
@@ -60,3 +59,4 @@ public final class SomeModule ... {
60
59
public static void globalFunction () { ... }
61
60
}
62
61
```
62
+
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ Java interoperability for Swift.
5
5
This project offers both ways to simplify using JNI to call from Swift code into Java libraryes (primarily centered around the ` JavaKit ` library),
6
6
as well as a way to generate Java wrappers around existing Swift code to ease consumption of Swift libraries from Java.
7
7
8
- Please refer to
8
+ The project is in early development so please reach out on github or the [ swift forums ] ( https://forums.swift.org )
9
9
10
10
## Topics
11
11
12
- ### Calling Swift From Java
12
+ ### JavaKit
13
13
14
14
- `` JavaKit/JavaKit ``
15
15
16
- ### Calling Java From Swift
16
+ ### jextract-swift
17
17
18
- ### In depth
18
+ - `` JExtractSwift ``
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- // empty on purpose
15
+ // empty on purpose
16
+
17
+ public func swiftkit_dummy( ) { }
You can’t perform that action at this time.
0 commit comments