-
Notifications
You must be signed in to change notification settings - Fork 48
JavaKit: add source/target versions to Java2Swift.config #166
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
902fc47
to
8825d11
Compare
/// Configuration for the Java2Swift translation tool, provided on a per-target | ||
/// basis. | ||
/// | ||
/// Note: there is a copy of this struct in the Java2Swift library. They |
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.
Since we are forced into this because plugins can’t have dependencies, I wonder if we need to set up a ci task to check those are indeed the same… we can do that 🤔
But maybe later on, as the project becomes more stable.
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.
Yeah, or maybe a makefile target to copy them from a SSOT.
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.
I’d love to not have to use make in this build but I guess for such stuff maybe we will still… just because we already have swift gradle AND make so it’d be nice to just have two builds to worry about…
but i think it’d be okey to use make just for some simple automation but let actual “building” to swiftpm and gradle. So your idea here may be good :)
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.
Either way, right now the copy is fine
Sorry for the delay, I'll get CI green tomorrow and merge all such pending PRs. Since we use nightly toolchain it regressed us accidentally |
let configFile = URL(filePath: sourceDir) | ||
.appending(path: "Java2Swift.config") | ||
let configData = try Data(contentsOf: configFile) | ||
let config = try JSONDecoder().decode(Configuration.self, from: configData) |
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.
Hmm, we probably want to make the config file optional for JavaCompiler. Let me fix this.
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.
makes sense yeah
8825d11
to
0233236
Compare
Fixes: #152