[FEATURE][EXP] Правильное сереализация byte[] в GsonManager.

This commit is contained in:
zaxar163 2019-05-31 10:02:56 +03:00
parent a0d6c5ad0e
commit a1652eaf38

View file

@ -4,6 +4,7 @@
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;
import ru.gravit.launcher.hasher.HashedEntry; import ru.gravit.launcher.hasher.HashedEntry;
import ru.gravit.launcher.hasher.HashedEntryAdapter; import ru.gravit.launcher.hasher.HashedEntryAdapter;
import ru.gravit.utils.helper.CommonHelper;
public class GsonManager { public class GsonManager {
public GsonBuilder gsonBuilder; public GsonBuilder gsonBuilder;
@ -12,8 +13,8 @@ public class GsonManager {
public Gson configGson; public Gson configGson;
public void initGson() { public void initGson() {
gsonBuilder = new GsonBuilder(); gsonBuilder = CommonHelper.newBuilder();
configGsonBuilder = new GsonBuilder(); configGsonBuilder = CommonHelper.newBuilder();
configGsonBuilder.setPrettyPrinting(); configGsonBuilder.setPrettyPrinting();
registerAdapters(gsonBuilder); registerAdapters(gsonBuilder);
registerAdapters(configGsonBuilder); registerAdapters(configGsonBuilder);