Commit graph

4093 commits

Author SHA1 Message Date
Josephine Lim
22d2b1795c
Remove wrong imports that cause failed build (#1775) 2018-08-02 00:51:31 +10:00
misaochan
d05cf395d8 Merge remote-tracking branch 'origin/2.8-release' into 2.8-release
# Conflicts:
#	app/build.gradle
#	app/src/main/java/fr/free/nrw/commons/di/CommonsApplicationModule.java
2018-07-28 23:39:15 +10:00
misaochan
c64b7e6de3 Merge remote-tracking branch 'refs/remotes/origin/master' into 2.8-release 2018-07-28 22:59:49 +10:00
Vivek Maskara
386bd0a106
Merge gamification branch with master (#1752)
* Quiz  (#1629)

*  Layout inflated

*  Layout for mcq added

*  Inflated Basic Layout

*  Implemented basic flow

*  Added the basic implementation pf score

*  Added the result layout

*  Added the result layout

*  Added functionality to set result

*  Changed the launcher intent to Quiz Activity for testing purpose

*  Explanations of answers added

*  Improved the layout of quiz result a bit

*  Fixed some minor issues

*  Fixed build issues

* Api Added and basic structure for calling implemented

* Added intents

*  Added the title

*  Fixed image error and improved quality of pr

*  Made separate class for checking quiz

*  Added counter

* Implemented back and next for quiz result

*  Added back functionality to quiz

*  Added progressBar

*  Fixed bugs

*  Improved code quality

*  Imporved code Quality

*  Updated strings

*  Added share screenshot function

*  Added checks and improved UI

*  Removed unused string

*  Removed unused string

* Adding checks and improving code quality

* Changed string

* Improved code quality

* Update strings.xml

* Update MediaWikiApi.java

* Fix build
2018-07-28 01:09:23 +05:30
maskara
dac91fe8cc Add javadocs 2018-07-27 00:08:20 +05:30
maskara
c7000b7565 Remove unused imports 2018-07-27 00:06:49 +05:30
maskara
deb6e5b390 With http network logs 2018-07-27 00:03:03 +05:30
Ujjwal Agrawal
80068f7e9f Removed extra space 2018-07-26 18:32:56 +09:00
Ujjwal Agrawal
63fd945662 Handler for 0.01sec added 2018-07-26 18:32:56 +09:00
translatewiki.net
93b5c23ac8 Localisation updates from https://translatewiki.net. 2018-07-26 10:02:34 +02:00
Tanvi Dadu
e9c0aa22ea Feedback module (#1742)
*  Implemented Statistics

*  Basic Structure Implemented

*  Layout made screen independent and menu inflated

*  Share Screenshot using cache

*  Improved the Image Bound and added strings

*  Improved the quality of Pr

*  Wired to navigation drawer

*  Changed the bounds of the image

*  Added Info icon

* Removed the unecessary functionality

*  Updated JavaDocs and fetch the username

*  Fetch JsonObject from the api using JavaRx and OkHttp

* Added JavaDocs and improved quality

* fixed strings file

*  Improved the quality of pr

*  Render thanks , images used in articles on screen

*  fetch and rendered the upload count

*  FeaturedImages statistics rendered and Javadocs added

*  added ProgressBar

*  Added Class for calculating level

*  added level info and returned level info

*  level up info rendered on achievement activity

*  Inflated Level Number

*  Added the structure for badge

*  Added LevelUpInfo Programmetically on Drawable

*  aligned the text

*  changed the text

*  Implemented the structure for changing colour of drawable

*  Added functionality to change colours of badge during runtime

*  Added custom alert for share option

*  Improved the UI of screen

*  Added the alertDialog for info button

*  Improved the quality of PR

*  Added Builder model

*  Added Enum Model and increased levels to 15

* removed redundant class

*  Changed strings and added subtext

* Feedback Module: Add reverts rate parameter (#1649)

* Fetched Revert Count

* Refactored Achievements class and display the fetched results

* Refactored the levelController to include revert as parameter

*  Fixed error

*  Fixed bug

*  Added information for parameters and improved code quality

*  Javadocs added

*  Added null check and javadocs

*  Removed extra spaces
2018-07-26 13:12:51 +05:30
Ujjwal Agrawal
86878fb62d Add feature to Browse commons via app (#1716)
* Search activity, image search fragment added

* Removed explore icon xml

* Updated Javadocs for search Activity and Navigation Base Activity

* SearchImageItem class updated

* Javadocs added for search activity

* removed redundant code and added javadocs for search image modules

* Javadocs added for updateImageList  method

* Rename featuredImage to explore

* Fixed null query issue

* changed cisibility to gone in case of successful Fetch

* Consolidate the networking libraries - drop volley in favor of OkHttp

* Extracted a few networking related items into a new Dagger module and finished the process of mocking the main component for tests.

* Refactoring to extract GpsCategoryModel and ensure single-responsibility-principle is maintained in CategoryApi.

* fixed featured image back bug

* Localisation updates from https://translatewiki.net.

* Javadocs added

* Add option to set image as wallpaper (#1535)

* Add option to set image as wallpaper

* Added java docs

* Toast message on setting the wallpaper successfully

* Localisation updates from https://translatewiki.net.

* SearchHistory Fragment added

* Search History Item added

* Content Provider, RecentSearchesDao added

* Database version changed to 7 and added methods for find, save ,..

* Delete icon deleted

* Reverted changes in gradle files

* Reverted changes in gradle files 2

* Optimized Improts

* reverted refractor for container name

* Refactored packagename, changed name to query in POJO class.

* Updated lastUsed to lastSearched

* Javadocs updated

* Check if user has been in search page for 5 seconds if yes then save it to history

* If else indentation updated

* added import in test

* edittext replaced with Searchview

* RxSearchview added

* Added support for API 21+

* Snackbar removed on success

* Improved code

* Pagination added

* Removed unnecessary toast

* Comment added in method

* Support for landscape mode added

* Fixed screen rotation issue on Explore and Search activity

* Clear focus added

* Delete all function added in Content Provider and called from fragment

* Scrollbar Recyclerview added

* Share Icon changed to 32 dp and back button added in explore, search activity.

* Removed unnecessary code

* Wrote and run tests for Recent Searches
 (creating db, migrating from versions, deletion, finding,..

* Category Search Fragment added

* Adapter factory added

* Renderer added

* Improvements

* Viewpager adapter added

* Updated XML

* Improvements in category card design

* tabs colors changed

* renamed images to media

* Java docs improved

* Javadoc added for setTabs

* JavaDoc for ViewPagerAdapter added

* Refreshed listview after delete

* Added mediaContainer

* Fixed ghost issue in image search fragment

* Ghost issue for categories fixed

* Removed Calling API call onback press

* Category Details activity added

* Menu added in category details activity

* back button added

* back button bugs

* Improvements in category images fragment

* JavaDoc added for some methods

* trimming added, Tab layout hided, recent searches refreshed

* SubCategory list fragment added, API added to extract subCategory Details

* API params updated to get more precise results

* Javadocs added for MWAPI method

* Pagination removed

* Fix API for fetching images inside category

* Parent category API added

* Fix #1704

* Fix #1704 corrected

* Fix #1702

* Fix #1702 and #1704

* added try catch statements

* Optimimzed imports

* loops replaced with Functions

* Javadocs for various methods added

* Fix java docs for Dao

* Javadocs for various methods added

* Fix java docs for Dao

* More javadocs added for explore Feature

* Javadocs added

* Javadocs added

* Improvements in indentation (#1739)
2018-07-24 10:17:24 +03:00
Martin Urbanec
2171b6846d Get rid of legacy URL (#1646)
This URL still works but intended as legacy.
As there are more separate API endpoints,
I've renamed the folder to commonsmisc to
enable me to add all endpoints to one folder
and to reduce potentional damage that can be caused
by fogotting the symlink is there for a reason,
I'm renaming it in the Commons app as well
2018-07-23 12:05:11 +03:00
translatewiki.net
e872e5b82e Localisation updates from https://translatewiki.net. 2018-07-23 09:32:17 +02:00
seannemann21
1bf5dda4b2 Allow for settings titles to expand across multiple lines instead of being truncated (#1671)
* Added preference classes that allow for titles with multiple lines for settings with long titles

* Added null checks to ensure the title TextView isn't null
2018-07-23 08:50:46 +03:00
Vivek Maskara
5cfe709281 Fix view util methods to always execute on UI thread (#1728) 2018-07-22 18:51:41 +03:00
albendz
7b5b9169db Fix preview crash on local files during upload (#1696)
* Try to get the localized version of the wikipedia article before defaulting to the English version.

Tested with Spanish on physical Android device.

Other notes:
Difficulties building with gradle due to dexcount plugin: https://github.com/KeepSafe/dexcount-gradle-plugin/issues/234. In testing, disabled the plugin.

* Update article fetch to not include unnecessary SERVICE line

* Add checks for local file, check for string length
2018-07-22 17:43:33 +03:00
Kaartic Sivaraam
369fe3183c Give a useful label for the share intent (#1680)
It's better to give a useful label that would indicate what would
happen when sharing using the app rather than letting it default
to the app name.
2018-07-22 16:56:17 +03:00
neslihanturan
b520babb13
Merge pull request #1662 from sivaraam/commit-guidelines-blog-link
CONTRIBUTING: link to a blog about good commit messages
2018-07-22 16:22:22 +03:00
neslihanturan
faee423105
Merge pull request #1596 from tanvidadu/imageLicense
Introducing a brief exp of Image License
2018-07-22 15:33:55 +03:00
neslihanturan
b4d556a648
Merge pull request #1573 from seannemann21/show-block-status
Show Block Status if use is blocked
2018-07-22 15:29:05 +03:00
translatewiki.net
8069bb4ca6 Localisation updates from https://translatewiki.net. 2018-07-20 15:00:13 +02:00
Vivek Maskara
25b463901f Fix conflict between different product flavors (#1726)
* Fix conflict between different product flavors so that beta and prod apps could coexist

* Fix category content provider
2018-07-20 02:03:28 +10:00
ShridharGoel
a083373285
Merge branch 'master' into master 2018-07-17 20:16:42 +05:30
translatewiki.net
568f19c2b4 Localisation updates from https://translatewiki.net. 2018-07-16 16:49:57 +02:00
misaochan
f1f41e59f7 Merge remote-tracking branch 'refs/remotes/origin/2.8-release' 2018-07-11 00:45:02 +10:00
Vivek Maskara
2d831c089d
Merge pull request #1644 from misaochan/fix-automatic-location
Remove current location retrieval from upload process entirely
2018-07-07 22:50:41 +05:30
san1j
d7b956e5ac dependency-injection.md: fix some typos (#1681) 2018-07-07 22:05:22 +09:00
translatewiki.net
fa6353b3ef Localisation updates from https://translatewiki.net. 2018-07-05 13:41:02 +02:00
Vivek Maskara
b2a150a3ae Fix issue where Wikidata edits were not happening (#1682)
* Added logs to debug wikidata edits

* Minor changes in logs
2018-07-05 20:13:37 +10:00
misaochan
1e49438fb2 Merge branch 'master' of https://github.com/commons-app/apps-android-commons 2018-07-05 01:00:57 +10:00
misaochan
107729cdf0 Merge remote-tracking branch 'refs/remotes/origin/2.8-release'
# Conflicts:
#	app/build.gradle
2018-07-05 01:00:51 +10:00
Vivek Maskara
306f23d1e2 Force login when no active session is found while uploading an image (#1684)
* Force login when no active session is found while uploading an image

* Updated not logged in message
2018-07-04 00:29:26 +10:00
translatewiki.net
d3f8ffa308 Localisation updates from https://translatewiki.net. 2018-07-02 07:54:40 +02:00
neslihanturan
6fba2eb627
Merge pull request #1484 from commons-app/issue-template-change
Update issue_template.md
2018-07-01 17:26:11 +03:00
Kaartic Sivaraam
88d2038bc1 Fix tamil translation of app name (#1679)
The app name has been 'Commons' (and not 'Wikimedia Commons') for a
very long time. For completely unknown reasons, the Tamil (ta)
translation of the app name stuck with the translation for 'Wikimedia
Commons' regardless of the fact that the translation had been
corrected at translatewiki.net in the year 2016. The correction
somehow didn't reflect here during the localisation updates from
tranlsatewiki.net.

Ignoring the weirdness, correct the translation of the app name
to reflect it's current name.
2018-07-01 00:47:09 +10:00
Josephine Lim
779704812c
Add description to "steps to reproduce" 2018-06-29 03:11:35 +10:00
Shridhar Goel
90705996a8 Fixes crash when uploading image via share without logging in 2018-06-28 19:57:11 +05:30
ShridharGoel
05def522af
Merge branch 'master' into master 2018-06-28 18:40:08 +05:30
Shridhar Goel
e7270783e4 Fixed crash when uploading image via share without login 2018-06-28 16:10:36 +05:30
translatewiki.net
0092451357 Localisation updates from https://translatewiki.net. 2018-06-28 07:19:17 +02:00
Nicolas Raoul
8859ff91e8 Merge Mapbox update from master 2018-06-28 03:04:07 +10:00
Nicolas Raoul
c1c178c576 Fix nearby crash by updating to Mapbox version that includes telem 2.2.10 (#1666) 2018-06-28 02:18:16 +10:00
seannemann21
c0d86b76e8
Merge branch 'master' into show-block-status 2018-06-25 14:41:47 -04:00
Kaartic Sivaraam
f501bdaa71 CONTRIBUTING: create a new further reading section
As we don't want to clutter up the gist with a lot of information.
Move the link to the informative blog post to the new further
reading section.
2018-06-25 21:11:11 +05:30
translatewiki.net
e05993f450 Localisation updates from https://translatewiki.net. 2018-06-25 08:10:39 +02:00
Kaartic Sivaraam
82f5776322 CONTRIBUTING: link to a blog post about good commit messages 2018-06-25 00:31:55 +05:30
misaochan
43d9f0db07 Merge branch 'master' of https://github.com/commons-app/apps-android-commons 2018-06-23 20:35:17 +10:00
misaochan
54246fda6b Merge remote-tracking branch 'refs/remotes/origin/2.8-release' 2018-06-23 20:35:10 +10:00
misaochan
b5161d64a6 Remove location constant from ShareActivity 2018-06-23 20:13:15 +10:00