Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public final class SwiftTypeInSubDirectory {
public init() {}

public func hello() -> Int {
public func hello() -> Int64 {
12
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ extension FFMSwift2JavaGenerator {
javaPackagePath: nil,
filename: filename) {
log.info("Done writing Swift thunks to: \(outputFile.absoluteString)")
// log.info("REMOVE FROM: \(expectedOutputSwiftFileNames)")
// log.info("REMOVE FROM THE: \(filename)")
self.expectedOutputSwiftFileNames.remove(filename)
}
} catch {
Expand Down
4 changes: 0 additions & 4 deletions Sources/JExtractSwiftLib/FFM/FFMSwift2JavaGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ package class FFMSwift2JavaGenerator: Swift2JavaGenerator {
// It is sufficient to use file names only, since SwiftPM requires names to be unique within a module anyway.
if translator.config.writeEmptyFiles ?? false {
self.expectedOutputSwiftFileNames = Set(translator.inputs.compactMap { (input) -> String? in
// guard let filePathPart = input.path.split(separator: "/\(translator.swiftModuleName)/").last else {
// return nil
// }
// return String(filePathPart.replacing(".swift", with: "+SwiftJava.swift"))
guard let fileName = input.path.split(separator: PATH_SEPARATOR).last else {
return nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ extension JNISwift2JavaGenerator {
for expectedFileName in self.expectedOutputSwiftFileNames {
logger.info("Write SwiftPM-'expected' empty file: \(expectedFileName.bold)")


var printer = CodePrinter()
printer.print("// Empty file generated on purpose")
_ = try printer.writeContents(
Expand Down
4 changes: 0 additions & 4 deletions Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ package class JNISwift2JavaGenerator: Swift2JavaGenerator {
// It is sufficient to use file names only, since SwiftPM requires names to be unique within a module anyway.
if translator.config.writeEmptyFiles ?? false {
self.expectedOutputSwiftFileNames = Set(translator.inputs.compactMap { (input) -> String? in
// guard let filePathPart = input.path.split(separator: "/\(translator.swiftModuleName)/").last else {
// return nil
// }
// return String(filePathPart.replacing(".swift", with: "+SwiftJava.swift"))
guard let fileName = input.path.split(separator: PATH_SEPARATOR).last else {
return nil
}
Expand Down
3 changes: 0 additions & 3 deletions Sources/JExtractSwiftLib/Swift2Java.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public struct SwiftToJava {
log.info("Input paths = \(inputPaths)")

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

// Register files to the translator.
let fileManager = FileManager.default
Expand Down