Inter-operate between libGDX and jdkgdxds, e.g. with Json
APACHE-2.0 License
Bot releases are hidden (Show)
Published by tommyettinger over 1 year ago
This updates jdkgdxds to 1.1.2 (yes, skipping 1.1.0 and 1.1.1; the first wasn't needed and the second was superseded almost immediately). It also updates juniper to 0.1.8, and all of the dependencies get updates as well; digital to 0.1.7 and funderby to 0.0.2 . Most of this is required for GWT reasons, since the inherits statements all changed. There are some new classes serializable here (OffsetBitSet and maybe a few new EnhancedRandom types?), but the main reason to update is "actually compiling reliably on GWT," which was a bit of an issue before.
Published by tommyettinger about 2 years ago
This release updates digital to 0.1.4 and juniper to 0.1.6, and can (de-)serialize the new types in juniper. Because jdkgdxds hasn't needed changing, it hasn't been updated. Note, the one new class in digital, AlternateRandom
, is not designed to be serialized differently from java.util.Random
, so if you need a serializable Random
subclass, you should use one of juniper's EnhancedRandom
classes (such as PasarRandom
).
Published by tommyettinger about 2 years ago
This release updates jdkgdxds to 1.0.4, juniper to 0.1.4, and digital to 0.1.2, and can serialize the one new class added across all of those (LumpDistribution
in juniper). This is about as minor as a release can get, but it could be useful just to keep all the dependency versions in sync.
Published by tommyettinger about 2 years ago
This release primarily updates the juniper and digital dependencies, adding serialization for two new Distribution
types and also the more-complex DistributedRandom
generator. Since jdkgdxds is unchanged, its dependency remains at 1.0.3 .
Published by tommyettinger about 2 years ago
This release updates the dependencies on digital and juniper, including adding serializers for the many new Distribution types in juniper 0.1.0 . It also allows (de-)serializing the new EnhancedRandom types (Xoshiro128PlusPlusRandom and WhiskerRandom) in juniper. The dependency on jdkgdxds remains at 1.0.3 .
Published by tommyettinger over 2 years ago
This release gets GWT support actually working, I'm pretty sure, despite needing to work around a bug in libGDX and some generics-related changes needed here. Like 1.0.3.0, it depends on digital 0.0.3, juniper 0.0.2, and jdkgdxds 1.0.3 .
Published by tommyettinger over 2 years ago
This release just updates the dependencies to avoid any conflicts. It uses digital 0.0.3, juniper 0.0.2, and jdkgdxds 1.0.3 .
Published by tommyettinger over 2 years ago
This is a very minor release that just updates the jdkgdxds dependency and makes some small changes to the .gwt.xml file. It is meant to be used with libGDX 1.11.0 and jdkgdxds 1.0.2 .
Published by tommyettinger over 2 years ago
This is the first 1.x release of jdkgdxds-interop; it patches up some missing classes from JsonSupport and the GWT configuration needed for it, as well as updating the serialization and deserialization to use the new packages (and sometimes new code) in the digital
and juniper
libraries. It is meant to be used with libGDX 1.11.0 and jdkgdxds 1.0.1 .
Published by tommyettinger over 2 years ago
This release mostly adds the random number generators that were added in jdkgdxds 0.2.7 and 0.2.8, and changes the syntax used in serialized random number generators so it can be easier to transmit them between ShaiRandom (in C#) and jdkgdxds. The serialized form should also be shorter. This can also ser/deser Class objects now, which can be useful for various reflection-related code.
Published by tommyettinger almost 3 years ago
This has no code changes and purely updates the dependency version on jdkgdxds to match the latest. It is probably a good idea to update to this version because of bugs in 0.2.5 and 0.2.4 of jdkgdxds...
Published by tommyettinger almost 3 years ago
This release updates to jdkgdxds 0.2.5 (skipping 0.2.4), with the WrappedRandom issues in 0.2.4 fixed in the version this uses. There's also TrimRandom supported now for Json serialization, but because it isn't considered stable, you shouldn't rely on the output of one serialized generator being the same in a deserialized copy using a later version of jdkgdxds. Gradle is also updated to 7.3.3, internally, with further log4shell mitigation. As usual, this release mostly exists to keep jdkgdxds in sync.
Published by tommyettinger almost 3 years ago
This release updates the jdkgdxds dependency to 0.2.2, which brings over some new types this can serialize and deserialize. Among them is the new Base
type, which represents a numeral system or radix, such as base-64. This library can not only read and write Base objects, but it uses a configurable Base now for writing some numbers (mostly the states in EnhancedRandom
implementations). You can set the static Base used with JsonSupport.setNumeralBase(Base)
; the default is base 36, but you could change it to base 10 to be more readable, or a scrambled base to obfuscate the numbers. This change means that the format for serialized EnhancedRandom implementations changed, so tildes (which previously separated most parts of a serialized item, but are often found in scrambled bases) are replaced with slashes (which are not found in any bases unless specifically requested).
I hope this works well, and isn't cursed! Happy Halloween!
Published by tommyettinger about 3 years ago
This release only exists because jdkgdxds has updated to 0.2.0, and I'm not sure if release 0.1.4.3 of jdkgdxds_interop would correctly depend on 0.2.0 if something else did, or if it would cause both versions to be dependencies. I have a feeling that may vary between Gradle and Maven, as well. So, this version depends on jdkgdxds 0.2.0, and that's all it does; nothing broke compatibility in the interop areas.
Published by tommyettinger over 3 years ago
This small release only adds one new feature, a serializer for RandomXS128, but also fixes GWT support for jdkgdxds classes that were missing from a .gwt.xml file. I figure, people who use GWT would prefer to have the release be small but available now, rather than wait for a bigger one.
Published by tommyettinger over 3 years ago
This release is a small update to 0.1.4 that fixes an occasional bug in ObjectObjectMap and other Object-keyed Maps, and allows objects that implement EnhancedRandom to be serialized and deserialized regardless of the implementing class. The fixed bug affected Maps inside JSON arrays (and possibly also outer JSON objects), because the array writer would still add commas between any written text. An example of the problem this would have caused would be this mapping from words to ciphered gibberish: {,for:,kialleud,,to:,weŏctuc,,since:,wicea,, ...
. In that, the comma just after the opening curly brace causes problems already, and double-commas later worsen the issue. This has been fixed, but (for better and for worse) ObjectObjectMap
s and ObjectObjectOrderedMap
s currently write the type of Object values for each value, which can be important if the type is ambiguous (this is the case for Strings like "1"
, which would otherwise parse to the double 1.0
). The primitive-value Maps don't have to write the value type as of 0.1.4.2; they did in 0.1.4.1, which is why 0.1.4.1 isn't published here. The improvement to EnhancedRandom should make it easier to store values of various EnhancedRandom types, so users can choose various implementations for compatibility or feature reasons. Although normally you can't serialize an interface like EnhancedRandom, now as long as all of its implementations that can be used have registered a serializer and it follows a specific format, you can serialize an EnhancedRandom field and get back the correct class upon deserialization.
I hope this helps!
Published by tommyettinger over 3 years ago
This release skips past the versions that would have used jdkgdxds 0.1.2 and 0.1.3, jumping straight to the latest 0.1.4. This mostly adds deque support (new in jdkgdxds 0.1.3, improved in 0.1.4), but also improves serialization for the different random number generators. It depends on libGDX 1.10.0 or higher, and of course jdkgdxds 0.1.4 .
Published by tommyettinger over 3 years ago
This is the first release that should be stable between jdkgdxds and this interop library, now that both have had lots of features added. There is also a 0.1.0 release on Maven Central, but it has some errors in its .gwt.xml file, which only affect GWT. Using the 0.1.0.1 release should, in general, be the better option. This depends on libGDX 1.9.13 or higher, and jdkgdxds 0.1.0 or higher.