JSON classes not in JRE.framework anymore?

61 views
Skip to first unread message

Jindrich Sarson

unread,
Feb 12, 2021, 4:45:21 PM2/12/21
to j2objc-discuss
Hi,

I upgraded to newest git j2objc and I resolving few issues. One of them is disappear of JSON classes, that were part of JRE.framework before. It looks like there is separate jar named json.jar. However, in Makefile in jre_emul it looks like it is still counted with JSON, but I was not able to find, why is not compiled.

Thanks,

Jindrich


Tom Ball

unread,
Feb 12, 2021, 5:23:06 PM2/12/21
to j2objc-discuss
They were moved out of the JRE because: a) org.json isn't part of the JRE, and b) developers complained they couldn't use other org.json implementations. 

You'll find them in lib/json.jar and lib/libjson.a (link with -ljson).

--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/j2objc-discuss/9ac40c1b-4193-434b-990d-8ad853952319n%40googlegroups.com.

Tom Ball

unread,
Feb 12, 2021, 5:30:15 PM2/12/21
to j2objc-discuss
Sorry, read your question too fast. The json library is still built and tested as part of jre_emul/ (jre_sources.mk, test_sources.mk, environment.mk, java.mk, tests.mk), it's just now in a separate jar and lib.

Jindrich Sarson

unread,
Feb 14, 2021, 3:08:56 PM2/14/21
to j2objc-discuss
Hi,

thanks. We are using frameworks (JRE.xcframework). It works better with cocoapods, when we are using J2ObjC in more modules.

I tried to adjusts Makefiles, but I am not very experienced with it - I was able to get JSON header files in the framework, but I cannot find place, where libjre_emul.a is build - I thought there will be place, where all libjre_* are linked into libjre_emul and that I will simply add json.a there, but no sucess...

Thanks,

Jindrich

Tom Ball

unread,
Feb 14, 2021, 4:31:58 PM2/14/21
to j2objc-discuss
Okay, it should be relatively easy to add a JSON xcframework, and won't make the distribution release much bigger. https://github.com/google/j2objc/issues/1572



On Sun, Feb 14, 2021 at 12:08 PM Jindrich Sarson <sar...@gmail.com> wrote:
Hi,

thanks. We are using frameworks (JRE.xcframework). It works better with cocoapods, when we are using J2ObjC in more modules.

I tried to adjusts Makefiles, but I am not very experienced with it - I was able to get JSON header files in the framework, but I cannot find place, where libjre_emul.a is build - I thought there will be place, where all libjre_* are linked into libjre_emul and that I will simply add json.a there, but no sucess...

Thanks,

Jindrich

On Friday, February 12, 2021 at 11:30:15 PM UTC+1 Tom Ball wrote:
Sorry, read your question too fast. The json library is still built and tested as part of jre_emul/ (jre_sources.mk, test_sources.mk, environment.mk, java.mk, tests.mk), it's just now in a separate jar and lib.

On Fri, Feb 12, 2021 at 2:22 PM Tom Ball <tb...@google.com> wrote:
They were moved out of the JRE because: a) org.json isn't part of the JRE, and b) developers complained they couldn't use other org.json implementations. 

You'll find them in lib/json.jar and lib/libjson.a (link with -ljson).

On Fri, Feb 12, 2021 at 1:45 PM Jindrich Sarson <sar...@gmail.com> wrote:
Hi,

I upgraded to newest git j2objc and I resolving few issues. One of them is disappear of JSON classes, that were part of JRE.framework before. It looks like there is separate jar named json.jar. However, in Makefile in jre_emul it looks like it is still counted with JSON, but I was not able to find, why is not compiled.

Thanks,

Jindrich


--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/j2objc-discuss/9ac40c1b-4193-434b-990d-8ad853952319n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages