Skip to content

[JExtract] Support multiple types in the same file or filename not equal to type nameΒ #365

@madsodgaard

Description

@madsodgaard

Currently we generate a Swift thunk for each imported type Type+SwiftJava.swift. The problem is that we need to tell the SwiftPM build plugin the output file names, where we currently pass in filename+SwiftJava.swift.

That means that the following code does not work in Types.swift:

public class Class1 {}
public class Class2 {}

We should change this behaviour, by perhaps generating a Swift file per imported file instead.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfeature:jextractIssues related to jextract-swift

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions