Skip to content
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

Generate @JavaField in Swift for the public fields of a Java class #22

Closed
DougGregor opened this issue Sep 30, 2024 · 3 comments · Fixed by #55
Closed

Generate @JavaField in Swift for the public fields of a Java class #22

DougGregor opened this issue Sep 30, 2024 · 3 comments · Fixed by #55
Labels

Comments

@DougGregor
Copy link
Member

When generating Swift wrappers for Java classes (Java2Swift direction), we currently ignore the fields. Instead, we should generate @JavaField members so that fields can be accessed directly. For example, a Java class like this:

public class MyClass {
  public int value;
}

could be generated as:

@JavaClass("org.mine.MyClass")
struct MyClass {
  @JavaField
  var value: Int32
}
@DougGregor DougGregor added the good first issue Good for newcomers label Sep 30, 2024
@jrosen081
Copy link
Contributor

hey, can I pick this one up? I have the repo building and think I can do this one!

@DougGregor
Copy link
Member Author

@jrosen081 Yes, that would be great!

@jrosen081
Copy link
Contributor

@DougGregor the pr for it is here #55, let me know what the next steps are!

@ktoso ktoso closed this as completed in #55 Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants