From f6538bd03ab5300814cef31182d21ff4a631c930 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 3 Feb 2024 17:00:55 +0700 Subject: [PATCH] gson, gson-math --- .idea/gradle.xml | 3 + .../ru/dbotthepony/kommons/core/Either.kt | 77 ++++ gradle.properties | 3 +- gson-math/build.gradle.kts | 41 ++ .../kommons/gson/AABBTypeAdapter.kt | 37 ++ .../kommons/gson/AABBiTypeAdapter.kt | 36 ++ .../kommons/gson/ColorTypeAdapter.kt | 96 +++++ .../kommons/gson/Vector2dTypeAdapter.kt | 26 ++ .../kommons/gson/Vector2fTypeAdapter.kt | 26 ++ .../kommons/gson/Vector2iTypeAdapter.kt | 26 ++ .../kommons/gson/Vector4dTypeAdapter.kt | 30 ++ .../kommons/gson/Vector4iTypeAdapter.kt | 30 ++ gson/build.gradle.kts | 35 ++ .../kommons/gson/EitherTypeAdapter.kt | 58 +++ .../kommons/gson/JsonArraySpliterator.kt | 30 ++ .../ru/dbotthepony/kommons/gson/JsonUtils.kt | 407 ++++++++++++++++++ .../kommons/gson/NothingAdapter.kt | 16 + .../ru/dbotthepony/kommons/math/RGBAColor.kt | 11 +- settings.gradle.kts | 2 + 19 files changed, 984 insertions(+), 6 deletions(-) create mode 100644 core/src/main/kotlin/ru/dbotthepony/kommons/core/Either.kt create mode 100644 gson-math/build.gradle.kts create mode 100644 gson-math/src/main/kotlin/ru/dbotthepony/kommons/gson/AABBTypeAdapter.kt create mode 100644 gson-math/src/main/kotlin/ru/dbotthepony/kommons/gson/AABBiTypeAdapter.kt create mode 100644 gson-math/src/main/kotlin/ru/dbotthepony/kommons/gson/ColorTypeAdapter.kt create mode 100644 gson-math/src/main/kotlin/ru/dbotthepony/kommons/gson/Vector2dTypeAdapter.kt create mode 100644 gson-math/src/main/kotlin/ru/dbotthepony/kommons/gson/Vector2fTypeAdapter.kt create mode 100644 gson-math/src/main/kotlin/ru/dbotthepony/kommons/gson/Vector2iTypeAdapter.kt create mode 100644 gson-math/src/main/kotlin/ru/dbotthepony/kommons/gson/Vector4dTypeAdapter.kt create mode 100644 gson-math/src/main/kotlin/ru/dbotthepony/kommons/gson/Vector4iTypeAdapter.kt create mode 100644 gson/build.gradle.kts create mode 100644 gson/src/main/kotlin/ru/dbotthepony/kommons/gson/EitherTypeAdapter.kt create mode 100644 gson/src/main/kotlin/ru/dbotthepony/kommons/gson/JsonArraySpliterator.kt create mode 100644 gson/src/main/kotlin/ru/dbotthepony/kommons/gson/JsonUtils.kt create mode 100644 gson/src/main/kotlin/ru/dbotthepony/kommons/gson/NothingAdapter.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 82dba38..10078e7 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,5 +1,6 @@ +