Let's refactor the Android Wikipedia app to make it easier to access content from a third-party MediaWiki installation. This is a parent task for the Hackathon. The breakdown is based on @Florian's [[ https://blog.go2tech.de/2016/02/how-i-customized-the-wikipedia-app-to-match-the-needs-of-droidwiki-de/ | blog post ]] about his experiences in customizing the Wikipedia app code to work with his own MediaWiki installation. Initially I think it would be good enough to allow the customization via config files or additional DevSettings. A wizard is not necessary at this time, maybe later of if time permits.
As preparation, participants are encouraged to be familiar with the [[ https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/Wikipedia_Android_app_hacking | Wikipedia Android App Hacking page ]] and have Android Studio installed, a Gerrit account set up, and the repo cloned. If needed I'll help with the setup, of course.
Some ideas for subtasks:
* Add new Gradle flavor
** different `applicationId` so the app can be installed side by side with the Wikipedia app
** different (MediaWiki) default app icons and app labels
* Make MediaWiki base directory (script path `/w/`) customizable
* Make www/preview.html also dynamic (to similarly to index.html)
** Remove `https://wikipedia.org` from preview.html
** Add similar code as was done for the change in `index.html`
** [[ https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/Android/App_hacking#Update_bundled_JavaScript | Update ]] corresponding files in app/src/main/assets
* Disable EventLogging instrumentation by default
* Add documentation to hacking page or separate Wiki page.