commons-app / apps-android-commons

The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons
https://commons-app.github.io/
Apache License 2.0
1.02k stars 1.23k forks source link

Make app able to upload in another wiki based on MediaWiki #222

Open dieudo4 opened 8 years ago

dieudo4 commented 8 years ago

As suggested on https://commons.wikimedia.org/wiki/Commons_talk:Mobile_app

it would be nice to have this app able to upload in another wiki based on MediaWiki

For instance via : Parameters > Select the wiki (with commons.wikimedia.org as the default wiki)

nicolas-raoul commented 8 years ago

Thanks for the idea! :-) Are you thinking of a particular other wiki? How many uploads per month is this wiki getting, by how many different users?

The simplest solution would probably be to fork the app.

dieudo4 commented 8 years ago

Actually potentially thousands of wikis ! They are so many wikis based MediaWiki i couldn't say how many ! When selecting on which wiki to upload to, it would be possible to give it's web address, the associated user-name and password.

I'd love to know how to fork the app in that sens : )

For the moment the best I could do in coding, was to contribute to start and maintain theses wikis:

misaochan commented 8 years ago

Hi @dieudo4 ,

To fork the app source code, go to https://github.com/nicolas-raoul/apps-android-commons and click 'fork' on the upper right. This creates a copy of the app's source code in your repository. You can then click the green 'Clone/download' button to download a local copy of the source code for you to read and experiment with. :)

dieudo4 commented 8 years ago

I can see how easy it can seem when I deal with setting up a MediaWiki website… but it took me years to get there, with this kind of code ! Coding an android app is a whole knew language…

jayvdb commented 8 years ago

This would help grow the user-base of the app, as there are many large wikis that cant use Commons. Also good farms like https://meta.miraheze.org/wiki/Miraheze is worth supporting. If non-Commons support was added, IMO the app should require the wiki is on the same version as Wikimedia Commons, with all the same extensions, and has all the same templates, etc. If the wiki doesnt have them, they can easily add them in order for the app to work.

nicolas-raoul commented 7 years ago

Most programmers here are here because they love Wikipedia/Wikivoyage. So they usually spend their limited time adding features that benefit Wikipedia/Wikivoyage.

Thus, a potential developer for the present feature would probably come from one of these Mediawiki communities outside WMF. If these communities have no interested developers, they might want to crowdsource funds to hire a developer to fork the app and implement the change. We would consider merging it if it is done correctly (in a settings parameters that most users won't want to touch).

Please note that some features of the app require a particular set of Mediawiki extensions: Nearby, and in the future user notifications.

dieudo4 commented 7 years ago

Merci Nicolas : ) Actually, I imagined a fork could be done on an early version of this app (as simple as possible), where one would only have to change a few code lines. For instance replace https://commons.wikimedia.org/wiki with the selected new wiki's address. Does that seem realistic ?

nicolas-raoul commented 7 years ago

Yes, that would probably work! It would take a developer only a few hours to download and set up the development environment, follow our README, change the URL, compile and send you the APK.

New versions have less bugs than early versions, I believe. If you learn to compile by yourself, you can keep up with app improvements :-)