From 347e195909c2904f7b1638320be25b0975aaeb3b Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Fri, 22 Mar 2019 20:08:29 +0400 Subject: [PATCH] Now chats are creating!!! Changed many things in app. --- .idea/gradle.xml | 3 + app/build.gradle | 7 +- .../2.json | 102 ++++++++++ .../chatlist/ChatListViewContract.java | 4 + .../contracts/observer/NetworkObserver.java | 5 + .../contracts/observer/Observable.java | 9 +- .../influence/helpers/AppHelper.java | 4 +- .../chronosx88/influence/helpers/DSAKey.java | 34 ++++ .../influence/helpers/KeyPairManager.java | 11 +- .../influence/helpers/NetworkHandler.java | 57 ++++-- .../influence/helpers/PrepareData.java | 16 +- .../influence/helpers/RoomHelper.java | 2 +- .../influence/helpers/Serializer.java | 55 +++--- .../influence/helpers/StorageMVStore.java | 187 +++++++++++++----- .../helpers/actions/NetworkActions.java | 2 +- .../chronosx88/influence/logic/MainLogic.java | 91 ++++++--- .../influence/logic/StartChatLogic.java | 41 ++-- .../influence/models/BasicNetworkMessage.java | 48 +++++ .../models/NewChatRequestMessage.java | 25 +++ .../influence/models/PublicUserProfile.java | 46 +++++ .../influence/models/daos/ChatDao.java | 7 +- .../models/roomEntities/ChatEntity.java | 22 ++- .../models/roomEntities/MessageEntity.java | 10 +- .../influence/observable/MainObservable.java | 79 +++----- .../presenters/ChatListPresenter.java | 5 +- .../presenters/StartChatPresenter.java | 2 +- .../influence/views/MainActivity.java | 4 +- .../views/fragments/ChatListFragment.java | 13 +- .../views/fragments/StartChatFragment.java | 9 + .../main/res/layout/start_chat_fragment.xml | 1 + 30 files changed, 676 insertions(+), 225 deletions(-) create mode 100644 app/schemas/io.github.chronosx88.influence.helpers.RoomHelper/2.json create mode 100644 app/src/main/java/io/github/chronosx88/influence/contracts/observer/NetworkObserver.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/helpers/DSAKey.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/models/BasicNetworkMessage.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/models/NewChatRequestMessage.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/models/PublicUserProfile.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 @@