Skip to content

Commit 97f0361

Browse files
madsodgaardpelekonktoso
authored
fix test and cleanup (#1)
Co-authored-by: pelekon <[email protected]> Co-authored-by: Konrad `ktoso` Malawski <[email protected]> Co-authored-by: Bartłomiej Bukowiecki <[email protected]> Fix `allowGlobalAutomatic` mode for interfaces (swiftlang#466) Fix JNI caching for native threads (swiftlang#464) fix extensions (swiftlang#473) fix protocols that return java classes. (swiftlang#479)
1 parent 51efef6 commit 97f0361

File tree

6 files changed

+1
-15
lines changed

6 files changed

+1
-15
lines changed

Samples/SwiftJavaExtractJNISampleApp/Sources/MySwiftLibrary/LibrarySubDirectory/SwiftTypeInSubDirectory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
public final class SwiftTypeInSubDirectory {
1616
public init() {}
1717

18-
public func hello() -> Int {
18+
public func hello() -> Int64 {
1919
12
2020
}
2121
}

Sources/JExtractSwiftLib/FFM/FFMSwift2JavaGenerator+SwiftThunkPrinting.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ extension FFMSwift2JavaGenerator {
9292
javaPackagePath: nil,
9393
filename: filename) {
9494
log.info("Done writing Swift thunks to: \(outputFile.absoluteString)")
95-
// log.info("REMOVE FROM: \(expectedOutputSwiftFileNames)")
96-
// log.info("REMOVE FROM THE: \(filename)")
9795
self.expectedOutputSwiftFileNames.remove(filename)
9896
}
9997
} catch {

Sources/JExtractSwiftLib/FFM/FFMSwift2JavaGenerator.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ package class FFMSwift2JavaGenerator: Swift2JavaGenerator {
6464
// It is sufficient to use file names only, since SwiftPM requires names to be unique within a module anyway.
6565
if translator.config.writeEmptyFiles ?? false {
6666
self.expectedOutputSwiftFileNames = Set(translator.inputs.compactMap { (input) -> String? in
67-
// guard let filePathPart = input.path.split(separator: "/\(translator.swiftModuleName)/").last else {
68-
// return nil
69-
// }
70-
// return String(filePathPart.replacing(".swift", with: "+SwiftJava.swift"))
7167
guard let fileName = input.path.split(separator: PATH_SEPARATOR).last else {
7268
return nil
7369
}

Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+SwiftThunkPrinting.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ extension JNISwift2JavaGenerator {
3636
for expectedFileName in self.expectedOutputSwiftFileNames {
3737
logger.info("Write SwiftPM-'expected' empty file: \(expectedFileName.bold)")
3838

39-
4039
var printer = CodePrinter()
4140
printer.print("// Empty file generated on purpose")
4241
_ = try printer.writeContents(

Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ package class JNISwift2JavaGenerator: Swift2JavaGenerator {
7171
// It is sufficient to use file names only, since SwiftPM requires names to be unique within a module anyway.
7272
if translator.config.writeEmptyFiles ?? false {
7373
self.expectedOutputSwiftFileNames = Set(translator.inputs.compactMap { (input) -> String? in
74-
// guard let filePathPart = input.path.split(separator: "/\(translator.swiftModuleName)/").last else {
75-
// return nil
76-
// }
77-
// return String(filePathPart.replacing(".swift", with: "+SwiftJava.swift"))
7874
guard let fileName = input.path.split(separator: PATH_SEPARATOR).last else {
7975
return nil
8076
}

Sources/JExtractSwiftLib/Swift2Java.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ public struct SwiftToJava {
5050
log.info("Input paths = \(inputPaths)")
5151

5252
let allFiles = collectAllFiles(suffix: ".swift", in: inputPaths, log: translator.log)
53-
for f in allFiles {
54-
log.warning("INPUT FILE: \(f) ->>>")
55-
}
5653

5754
// Register files to the translator.
5855
let fileManager = FileManager.default

0 commit comments

Comments
 (0)