From cd0300eea06502a5e328f705bfdb227fd115c282 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Mon, 11 Mar 2019 21:05:28 +0400 Subject: [PATCH] Implemented custom storage for peer (standard impl isn't working on Android, so custom impl was build on top of MVStore), added JBoss Serialization lib. Also added basic peer initialization (non architectured yet) --- .idea/gradle.xml | 3 + .idea/misc.xml | 10 +- app/build.gradle | 17 +- app/libs/jboss-serialization.jar | Bin 0 -> 124212 bytes app/libs/trove.jar | Bin 0 -> 361155 bytes app/src/main/AndroidManifest.xml | 2 +- .../influence/{App.java => AppHelper.java} | 2 +- .../chronosx88/influence/MainActivity.java | 37 +-- .../influence/helpers/JVMShutdownHook.java | 15 + .../influence/helpers/Serializer.java | 45 +++ .../influence/helpers/StorageMVStore.java | 295 ++++++++++++++++++ build.gradle | 2 + gradle.properties | 1 + 13 files changed, 399 insertions(+), 30 deletions(-) create mode 100644 app/libs/jboss-serialization.jar create mode 100644 app/libs/trove.jar rename app/src/main/java/io/github/chronosx88/influence/{App.java => AppHelper.java} (90%) create mode 100644 app/src/main/java/io/github/chronosx88/influence/helpers/JVMShutdownHook.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/helpers/Serializer.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/helpers/StorageMVStore.java diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 7ac24c7..f43d428 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -3,6 +3,9 @@