mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FEATURE][EXP] Правильное сереализация byte[] в GsonManager.
This commit is contained in:
parent
a0d6c5ad0e
commit
a1652eaf38
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
|||
import com.google.gson.GsonBuilder;
|
||||
import ru.gravit.launcher.hasher.HashedEntry;
|
||||
import ru.gravit.launcher.hasher.HashedEntryAdapter;
|
||||
import ru.gravit.utils.helper.CommonHelper;
|
||||
|
||||
public class GsonManager {
|
||||
public GsonBuilder gsonBuilder;
|
||||
|
@ -12,8 +13,8 @@ public class GsonManager {
|
|||
public Gson configGson;
|
||||
|
||||
public void initGson() {
|
||||
gsonBuilder = new GsonBuilder();
|
||||
configGsonBuilder = new GsonBuilder();
|
||||
gsonBuilder = CommonHelper.newBuilder();
|
||||
configGsonBuilder = CommonHelper.newBuilder();
|
||||
configGsonBuilder.setPrettyPrinting();
|
||||
registerAdapters(gsonBuilder);
|
||||
registerAdapters(configGsonBuilder);
|
||||
|
|
Loading…
Reference in a new issue