Added (ported back) features from initial design [retrofit,moshi,kotpref]

Marked most of the old classes using Networking as deprecated to clearly visualise their future removal
This commit is contained in:
Viktor De Pasquale
2019-05-06 19:03:28 +02:00
parent 5d632d0d90
commit b018124226
39 changed files with 1374 additions and 19 deletions
@@ -14,6 +14,7 @@ import com.topjohnwu.superuser.internal.UiThreadHandler;
import org.json.JSONException;
import org.json.JSONObject;
@Deprecated
public class CheckUpdates {
private static Request getRequest() {
@@ -56,8 +57,8 @@ public class CheckUpdates {
private static class UpdateListener implements ResponseListener<JSONObject> {
private Runnable cb;
private long start;
private final Runnable cb;
private final long start;
UpdateListener(Runnable callback) {
cb = callback;
@@ -31,6 +31,7 @@ import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
@Deprecated
public class UpdateRepos {
private static final DateFormat DATE_FORMAT;