-
Notifications
You must be signed in to change notification settings - Fork 66
[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
ktoso
left a comment
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
ktoso
left a comment
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
| 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.
👍
| 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.