From e7862b5b1cc3105eb4f9432cfb886cd8462d3dd7 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Sun, 7 Apr 2019 14:04:50 +0400 Subject: [PATCH] Added BerkeleyDB as storage backend, added support of Kotlin lang, fixed some bugs --- .idea/gradle.xml | 3 - app/build.gradle | 6 + app/libs/je-android-5.0.104.jar | Bin 0 -> 2556122 bytes .../influence/helpers/DataSerializerEx.java | 192 ------------- .../influence/helpers/DataSerializerEx.kt | 104 +++++++ .../influence/helpers/KeyPairManager.java | 8 +- .../influence/helpers/P2PUtils.java | 2 +- .../influence/helpers/PrepareData.java | 19 -- .../influence/helpers/Serializer.java | 35 +-- .../influence/helpers/StorageBerkeleyDB.kt | 262 ++++++++++++++++++ .../influence/helpers/StorageMVStore.java | 3 +- .../influence/helpers/StorageMapDB.java | 67 +---- .../chronosx88/influence/logic/ChatLogic.java | 4 +- .../chronosx88/influence/logic/MainLogic.java | 14 +- build.gradle | 4 +- 15 files changed, 413 insertions(+), 310 deletions(-) create mode 100644 app/libs/je-android-5.0.104.jar delete mode 100644 app/src/main/java/io/github/chronosx88/influence/helpers/DataSerializerEx.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/helpers/DataSerializerEx.kt delete mode 100644 app/src/main/java/io/github/chronosx88/influence/helpers/PrepareData.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/helpers/StorageBerkeleyDB.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index f43d428..7ac24c7 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -3,9 +3,6 @@