Skip to content

Commit

Permalink
refactor: Replace json.org with openjson
Browse files Browse the repository at this point in the history
  • Loading branch information
ktgw0316 committed Mar 21, 2024
1 parent 09694d3 commit a134c75
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Build-Depends:
liblombok-java,
liblcms2-dev,
liblensfun-dev (<< 0.3.95),
libopenjson-java,
libraw-dev,
libtiff-dev,
libx11-dev,
Expand All @@ -49,6 +50,7 @@ Depends:
libjpeg62-turbo | libjpeg-turbo8,
liblcms2-2,
liblensfun0 | liblensfun1 (<< 0.3.95),
libopenjson-java,
libraw19 | libraw20 | libraw23,
libtiff5 | libtiff6,
libxml2-utils,
Expand Down
2 changes: 1 addition & 1 deletion lightcrafts/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ dependencies {
implementation("com.github.jiconfont:jiconfont-swing:1.0.1")
implementation("com.github.jiconfont:jiconfont-font_awesome:4.7.0.0")
implementation("com.github.jiconfont:jiconfont-google_material_design_icons:2.2.0.2")
implementation("com.github.openjson:openjson:1.0.13")
implementation("org.ejml:ejml-simple:0.40")
implementation("org.json:json:20231013")
}
val os = System.getProperty("os.name").lowercase()
val MAKE = with(os) {
Expand Down
1 change: 1 addition & 0 deletions lightcrafts/ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<dependency name="jiconfont-swing" rev="1.0.1" org="com.github.jiconfont" conf="compile->default"/>
<dependency name="json" rev="20231013" org="org.json" conf="compile->default"/>
<dependency name="lombok" rev="1.18.26" org="org.projectlombok" conf="compile->default"/>
<dependency name="openjson" rev="1.0.13" org="com.github.openjson" conf="compile->default"/>
<!-- Test dependencies -->
<dependency name="junit-jupiter-api" rev="5.9.3" org="org.junit.jupiter" conf="test->default"/>
<dependency name="junit-jupiter-params" rev="5.9.3" org="org.junit.jupiter" conf="test->default"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

package com.lightcrafts.app;

import com.github.openjson.JSONObject;
import com.lightcrafts.platform.AlertDialog;
import com.lightcrafts.platform.Platform;
import com.lightcrafts.platform.ProgressDialog;
Expand All @@ -11,15 +12,13 @@
import com.lightcrafts.utils.WebBrowser;
import com.lightcrafts.utils.thread.ProgressThread;
import org.jetbrains.annotations.NotNull;
import org.json.JSONObject;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.util.Objects;
import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;

Expand Down

0 comments on commit a134c75

Please sign in to comment.