File tree Expand file tree Collapse file tree 6 files changed +1
-15
lines changed
Expand file tree Collapse file tree 6 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 1515public final class SwiftTypeInSubDirectory {
1616 public init ( ) { }
1717
18- public func hello( ) -> Int {
18+ public func hello( ) -> Int64 {
1919 12
2020 }
2121}
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments