From 717582fccc2199cc8fbfdef3348dbed6d42d6ac1 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sun, 28 Jun 2015 21:35:55 -0400 Subject: [PATCH] Upgrade to Dagger 2 Still some pressing issues, but the hard work is done. --- app/app.iml | 40 ++--- app/build.gradle | 16 +- .../minimalbible/MinimalBibleDebug.java | 2 +- .../bspeice/minimalbible/MinimalBible.java | 18 +- .../minimalbible/MinimalBibleModules.java | 39 ++--- .../org/bspeice/minimalbible/OGHolder.java | 14 +- .../activity/downloader/BookItemHolder.java | 5 + .../activity/downloader/BookListFragment.java | 15 +- .../activity/downloader/DownloadActivity.java | 35 +--- .../downloader/DownloadActivityModules.java | 130 -------------- .../injection/ActivityContextModule.java | 21 +++ .../injection/BookListFragmentComponent.java | 13 ++ .../injection/DownloadActivityComponent.java | 11 ++ .../injection/DownloadManagerModule.java | 62 +++++++ .../injection/ValidCategoryModule.java | 23 +++ .../activity/search/BasicSearch.java | 34 +--- .../activity/search/BasicSearchComponent.java | 12 ++ .../activity/search/SearchModules.java | 14 +- .../settings/MinimalBibleSettings.java | 32 +--- .../activity/viewer/BibleViewer.java | 48 ++--- .../{ => injection}/BibleViewerModules.java | 16 +- .../viewer/injection/ViewerComponent.java | 14 ++ .../common/injection/InvalidBookModule.java | 26 +++ .../common/injection/MainBookModule.java | 124 +++++++++++++ .../downloader/manager/LocaleManager.kt | 2 + .../downloader/manager/RefreshManager.kt | 38 ++-- .../manager/RefreshManagerTest.java | 165 ------------------ 27 files changed, 430 insertions(+), 539 deletions(-) delete mode 100644 app/src/main/java/org/bspeice/minimalbible/activity/downloader/DownloadActivityModules.java create mode 100644 app/src/main/java/org/bspeice/minimalbible/activity/downloader/injection/ActivityContextModule.java create mode 100644 app/src/main/java/org/bspeice/minimalbible/activity/downloader/injection/BookListFragmentComponent.java create mode 100644 app/src/main/java/org/bspeice/minimalbible/activity/downloader/injection/DownloadActivityComponent.java create mode 100644 app/src/main/java/org/bspeice/minimalbible/activity/downloader/injection/DownloadManagerModule.java create mode 100644 app/src/main/java/org/bspeice/minimalbible/activity/downloader/injection/ValidCategoryModule.java create mode 100644 app/src/main/java/org/bspeice/minimalbible/activity/search/BasicSearchComponent.java rename app/src/main/java/org/bspeice/minimalbible/activity/viewer/{ => injection}/BibleViewerModules.java (58%) create mode 100644 app/src/main/java/org/bspeice/minimalbible/activity/viewer/injection/ViewerComponent.java create mode 100644 app/src/main/java/org/bspeice/minimalbible/common/injection/InvalidBookModule.java create mode 100644 app/src/main/java/org/bspeice/minimalbible/common/injection/MainBookModule.java delete mode 100644 app/src/test/java/org/bspeice/minimalbible/test/activity/downloader/manager/RefreshManagerTest.java diff --git a/app/app.iml b/app/app.iml index 728005a..b6b59f8 100644 --- a/app/app.iml +++ b/app/app.iml @@ -12,9 +12,13 @@