Skip to content

#3468 Switch from RvRenderer to AdapterDelegates #3750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 27, 2020

Conversation

macgills
Copy link
Contributor

Description (required)

Fixes #3468

What changes did you make and why?

Remove the RvRenderer dependency and replace all instances with adapterDelegates

Tests performed (required)

Tested ProdDebug on Nexus5x with API level 27

Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?

macgills added 3 commits May 15, 2020 12:27
…er-delegates

# Conflicts:
#	app/src/main/java/fr/free/nrw/commons/category/CategoryClient.java
#	app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java
#	app/src/main/java/fr/free/nrw/commons/upload/categories/UploadCategoriesFragment.java
#	gradle.properties
@codecov-commenter
Copy link

codecov-commenter commented May 19, 2020

Codecov Report

Merging #3750 into master will increase coverage by 0.15%.
The diff coverage is 0.56%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master   #3750      +/-   ##
===========================================
+ Coverage      7.01%   7.17%   +0.15%     
  Complexity      319     319              
===========================================
  Files           290     292       +2     
  Lines         12614   12369     -245     
  Branches       1007     986      -21     
===========================================
+ Hits            885     887       +2     
+ Misses        11661   11414     -247     
  Partials         68      68              
Impacted Files Coverage Δ Complexity Δ
...n/java/fr/free/nrw/commons/CommonsApplication.java 1.09% <ø> (ø) 1.00 <0.00> (ø)
...bookmarks/locations/BookmarkLocationsFragment.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../nrw/commons/category/SubCategoryListFragment.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../depictions/subClass/SubDepictionListFragment.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...mons/depictions/subClass/models/SparqlResponses.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../nrw/commons/di/BookmarkLocationsFragmentModule.kt 0.00% <0.00%> (ø) 0.00 <0.00> (?)
.../fr/free/nrw/commons/di/FragmentBuilderModule.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
.../free/nrw/commons/di/NearbyParentFragmentModule.kt 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...va/fr/free/nrw/commons/explore/SearchActivity.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...mons/explore/categories/SearchCategoriesAdapter.kt 0.00% <0.00%> (ø) 0.00 <0.00> (?)
... and 50 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df76aef...372e047. Read the comment docs.

macgills added 2 commits May 22, 2020 09:55
…er-delegates

# Conflicts:
#	app/src/main/java/fr/free/nrw/commons/nearby/PlaceRenderer.java
#	app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java
@misaochan
Copy link
Member

@neslihanturan has manually tested this and it looks good to me, merging. :)

@misaochan misaochan merged commit b063d6b into master May 27, 2020
@macgills macgills deleted the macgills/3468-adapter-delegates branch June 16, 2020 09:16
ashishkumar468 pushed a commit to ashishkumar468/apps-android-commons that referenced this pull request Oct 10, 2020
…app#3750)

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace SearchDepictionsRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace UploadCategoryDepictionsRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - update BaseAdapter to be easier to use

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace SearchImagesRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace SearchCategoriesRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace NotificationRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace UploadDepictsRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace PlaceRenderer

* commons-app#3468 fix constant import

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - resolve id conflict
ashishkumar468 pushed a commit to ashishkumar468/apps-android-commons that referenced this pull request Oct 10, 2020
…app#3750)

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace SearchDepictionsRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace UploadCategoryDepictionsRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - update BaseAdapter to be easier to use

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace SearchImagesRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace SearchCategoriesRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace NotificationRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace UploadDepictsRenderer

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - replace PlaceRenderer

* commons-app#3468 fix constant import

* commons-app#3468 Switch from RvRenderer to AdapterDelegates - resolve id conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch from RvRenderer to AdapterDelegates
3 participants