From 8194b27c2eb9a061a9e734771ce370402ce22aba Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Tue, 12 Mar 2019 17:50:12 +0400 Subject: [PATCH] [WIP] Started realization initPeer in MVP Arch (and added Global Message Bus) --- .idea/gradle.xml | 3 -- .../chronosx88/influence/AppHelper.java | 6 ++++ .../contracts/MainActivityContract.java | 5 +++ .../contracts/MainActivityModelContact.java | 5 +++ .../MainActivityPresenterContract.java | 5 +++ .../contracts/observer/Observable.java | 9 +++++ .../contracts/observer/Observer.java | 7 ++++ .../influence/models/MainActivityModel.java | 10 ++++++ .../influence/observable/MainObservable.java | 33 +++++++++++++++++++ .../presenters/MainActivityPresenter.java | 10 ++++++ app/src/main/res/values/styles.xml | 23 +++++++++++++ 11 files changed, 113 insertions(+), 3 deletions(-) create mode 100644 app/src/main/java/io/github/chronosx88/influence/contracts/MainActivityContract.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/contracts/MainActivityModelContact.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/contracts/MainActivityPresenterContract.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/contracts/observer/Observable.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/contracts/observer/Observer.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/models/MainActivityModel.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/observable/MainObservable.java create mode 100644 app/src/main/java/io/github/chronosx88/influence/presenters/MainActivityPresenter.java 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 @@