Skip to content

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

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.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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