apps-android-commons/app/src/main/java/fr/free/nrw/commons/di
Ashish Kumar 99c6f5f105
Shift contributions to use Room DB (#3324)
* Part of #3127
* Added Room Dependency
* Shifted ContributionsDao to use RoomDB

* Save and Fetch contributions via RoomDAO

* Bugfixes, fixed test cases, injected schedulers for ContributionsPresenter

* removed stetho

* Fixed ReviewHelperTest cases

* Fixed test cases in DeleteHelperTest

* Fetch all contributions [TODO add pagination to use this, maybe later in a seperate PR]

* Update Schema false in AppDatabase

* removed parameter from fetchControbutions

* Added logs for fetch contributions

* Fixed test case ContributionsPresenter

* Added an autogenerate primary key, submit save contributions on executor

* fixed getItemAtPosition

* MainActivity Config changes +=orientation

* BugFixes
* Make AppDataBase Singleton
* Set _id as autogenerate primary key [replacing the previously used filename, seems like they are not unique]
* Replace Execxutor Utils with Subscribers on Singles in UploadService
* BugFix, Upload Progress

* Remove un-nescessary null check on contributions in ContributionsListAdapter

* removed ContributionsListFragment [not-implemeted]

* Review suggested changes
* removed un-nescessary null checks
* provide ContributionsDao
* Minor bug fixes

* wip

* delete existing contributions table (from the existing db) on upgrade

* remove un-nescessary null checks in test classes

* shifted media to be a local variable in ReviewHelperTest

* removed captured folder

* Dispose composite disposables in UploadService

* replaced size check with isEmpty ContributionsPresenter

* transform saveContributions to a Completable

* Addressed comments in review
* Typo in Contributions
* ReasonBuilderTest (create media object instead of mocking)
* Use global Gson object instead of creating a new one in Converters

* Provide Gson to Converters from the CommonsApplicationComponent

* use static method instead of field instead of static field to provide GSON in Converters

* Modified gitignore to exclude captures/*
2020-03-10 00:13:20 +03:00
..
ActivityBuilderModule.java Fixes: #3278: Add java docs to methods which have it missing (#3351) 2020-01-28 11:45:15 -07:00
ApplicationlessInjection.java Fixes: #3278: Add java docs to methods which have it missing (#3351) 2020-01-28 11:45:15 -07:00
CommonsApplicationComponent.java Shift contributions to use Room DB (#3324) 2020-03-10 00:13:20 +03:00
CommonsApplicationModule.java Shift contributions to use Room DB (#3324) 2020-03-10 00:13:20 +03:00
CommonsDaggerAppCompatActivity.java Fixes: #3278: Add java docs to methods which have it missing (#3351) 2020-01-28 11:45:15 -07:00
CommonsDaggerBroadcastReceiver.java Fixes: #3278: Add java docs to methods which have it missing (#3351) 2020-01-28 11:45:15 -07:00
CommonsDaggerContentProvider.java Fixes #171 Fix Lint errors/warnings: global, coding style: add missing spaces (#1955) 2018-11-04 14:37:28 +00:00
CommonsDaggerIntentService.java Fixes #171 Fix Lint errors/warnings: global, coding style: add missing spaces (#1955) 2018-11-04 14:37:28 +00:00
CommonsDaggerService.java Fixes #171 Fix Lint errors/warnings: global, coding style: add missing spaces (#1955) 2018-11-04 14:37:28 +00:00
CommonsDaggerSupportFragment.java Optimize imports (#3272) 2019-12-06 17:51:36 +09:00
ContentProviderBuilderModule.java Shift contributions to use Room DB (#3324) 2020-03-10 00:13:20 +03:00
FragmentBuilderModule.java Fixes #3303 (#3322) 2020-02-04 11:05:29 +02:00
NetworkingModule.java Fixes #3345 (#3350) 2020-01-26 22:13:18 -07:00
ServiceBuilderModule.java Fixes: #3278: Add java docs to methods which have it missing (#3351) 2020-01-28 11:45:15 -07:00
SslUtils.kt Fixes #3345 (#3350) 2020-01-26 22:13:18 -07:00