-
Notifications
You must be signed in to change notification settings - Fork 228
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
[FR] Are there J2CL annotations for this library? #38
Comments
I have J2CL annotations internally. I'm hoping to update Github with our (extensive) internal improvements soon. |
Thank you so much for pushing the new version! Super exciting. Is it also possible to include the supersource Platform.native.js and what not? As it is, J2CL compilation complains about:
|
Hi, sorry that the J2CL isn't quite there yet. Getting it working is a priority for me, but I know very little about how J2CL is used, especially outside of Google, and haven't yet spent the time reading documentation to figure it out. If you have advice on how the J2CL packaging and build should be set up that would be welcome. For instance, do J2CL users also use Maven, and if so what Maven pom,xml changes would I use? A link to a working example would be great. |
Hmm that's a good question! You can see my project here: https://github.com/aschleck/trailcatalog . I think anyone using J2CL like this is probably using Bazel. And if you look at my project I need to note that I have an extra complication because I am not using ClosureJS (so I have to do the Java -> ClosureJS conversion and then wrap it into TypeScript. But for S2 itself let's just focus on the Java -> ClosureJS part and ignore the TypeScript since I think that's just a me-problem.) First thing I did was make a BUILD file for this S2 repository. It would actually be amazing if you folks added Bazel BUILD support to this repository, but I wasn't sure if that was too much to ask. I recognize that everyone at Google is very busy.
And then you can see I depend on that in the transitive dependencies here https://github.com/aschleck/trailcatalog/blob/main/java/org/trailcatalog/s2/BUILD#L32 (via https://github.com/aschleck/trailcatalog/blob/main/java/org/trailcatalog/s2/BUILD#L53). In the S2 BUILD file I glob super-j2cl to pick up a J2CL compatible Platform.java via super sourcing. I am fairly certain that inside google3 there is a super sourced Platform.java or Platform.java.js file that is high quality, but in the absence of that I made a low quality version. I think I am doing something that is a little too complicated so I would defer to whatever is in google3 and already works.
Does that make any sense? What do you think? |
Hi folks,
I miss being part of Geo, hope you all are doing well! I was wondering if there are J2CL annotations for this library (@JsMethod/@JsType/etc), and if so would it be possible to update this library and release them?
Thank you!
The text was updated successfully, but these errors were encountered: