-
Notifications
You must be signed in to change notification settings - Fork 53
[JExtract/JNI] Import enums #346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Samples/JExtractJNISampleApp/src/test/java/com/example/swift/VehicleTest.java
Outdated
Show resolved
Hide resolved
Samples/JExtractJNISampleApp/src/test/java/com/example/swift/AlignmentTest.java
Outdated
Show resolved
Hide resolved
Samples/JExtractJNISampleApp/src/test/java/com/example/swift/VehicleTest.java
Outdated
Show resolved
Hide resolved
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift
Outdated
Show resolved
Hide resolved
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift
Outdated
Show resolved
Hide resolved
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+SwiftThunkPrinting.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice progress, going well :)
Samples/JExtractJNISampleApp/src/test/java/com/example/swift/VehicleEnumTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking very good so far! The caching needs rework but the rest is very nice work!
Sources/SwiftJavaDocumentation/Documentation.docc/SupportedFeatures.md
Outdated
Show resolved
Hide resolved
Sources/SwiftJavaDocumentation/Documentation.docc/SupportedFeatures.md
Outdated
Show resolved
Hide resolved
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+SwiftThunkPrinting.swift
Outdated
Show resolved
Hide resolved
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+SwiftThunkPrinting.swift
Outdated
Show resolved
Hide resolved
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+SwiftThunkPrinting.swift
Show resolved
Hide resolved
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+SwiftThunkPrinting.swift
Outdated
Show resolved
Hide resolved
@@ -133,6 +106,9 @@ extension JNISwift2JavaGenerator { | |||
private func printNominalTypeThunks(_ printer: inout CodePrinter, _ type: ImportedNominalType) throws { | |||
printHeader(&printer) | |||
|
|||
printJNICache(&printer, type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -72,7 +72,6 @@ package class JNISwift2JavaGenerator: Swift2JavaGenerator { | |||
return String(filePathPart.replacing(".swift", with: "+SwiftJava.swift")) | |||
}) | |||
self.expectedOutputSwiftFiles.insert("\(translator.swiftModuleName)Module+SwiftJava.swift") | |||
self.expectedOutputSwiftFiles.insert("\(translator.swiftModuleName)+JNICaches.swift") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good, thx!
Sorry about the conflict, you'll want to pick the |
Looking good! Really great work with the Enums overall! |
Adds support for importing Swift enums, including failable initializers, associated values, variables and methods.