Skip to content

Commit 6b65307

Browse files
committed
* update: bump to v1.0.0
1 parent 6d91873 commit 6b65307

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+6451
-1089
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Java LDTK API data library
22

33
![](https://img.shields.io/badge/java-%3E%3D%208-green)
4-
![](https://img.shields.io/badge/latest%20version-0.9.3-blue)
4+
![](https://img.shields.io/badge/api%20latest%20version-1.0.0-blue)
55

66
### What is this repository for? ###
77

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ apply plugin: 'java-library'
33
apply plugin: 'maven-publish'
44
apply plugin: 'signing'
55

6-
version = '0.9.3'
6+
version = '1.0.0'
77

88
repositories {
9+
mavenLocal()
910
mavenCentral()
1011
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
1112
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/io/github/joafalves/ldtk/LdtkConverter.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.fasterxml.jackson.databind.ObjectWriter;
1010
import com.fasterxml.jackson.databind.SerializationFeature;
1111
import com.fasterxml.jackson.databind.module.SimpleModule;
12-
import io.github.joafalves.ldtk.model.Project;
12+
import io.github.joafalves.ldtk.model.Coordinate;
1313
import java.io.IOException;
1414
import java.time.OffsetDateTime;
1515
import java.time.OffsetTime;
@@ -20,7 +20,6 @@
2020
import java.time.temporal.ChronoField;
2121

2222
public class LdtkConverter {
23-
// Date-time helpers
2423

2524
private static final DateTimeFormatter DATE_TIME_FORMATTER = new DateTimeFormatterBuilder()
2625
.appendOptional(DateTimeFormatter.ISO_DATE_TIME)
@@ -50,11 +49,11 @@ public static OffsetTime parseTimeString(String str) {
5049
}
5150
// Serialize/deserialize helpers
5251

53-
public static Project fromJsonString(String json) throws IOException {
52+
public static Coordinate fromJsonString(String json) throws IOException {
5453
return getObjectReader().readValue(json);
5554
}
5655

57-
public static String toJsonString(Project obj) throws JsonProcessingException {
56+
public static String toJsonString(Coordinate obj) throws JsonProcessingException {
5857
return getObjectWriter().writeValueAsString(obj);
5958
}
6059

@@ -75,8 +74,8 @@ public OffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext
7574
}
7675
});
7776
mapper.registerModule(module);
78-
reader = mapper.readerFor(Project.class);
79-
writer = mapper.writerFor(Project.class);
77+
reader = mapper.readerFor(Coordinate.class);
78+
writer = mapper.writerFor(Coordinate.class);
8079
}
8180

8281
private static ObjectReader getObjectReader() {

0 commit comments

Comments
 (0)