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
[x] Add new HA app ID for crash reporting instrumentation
[x] Make `www/preview.html` also dynamic (to similarly to `www/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
[x] Make changes to MediaWiki Base URI and Support Multiple languages dynamic, so that the app does not have to be restarted after the setting is changed.
[] Make MediaWiki base directory (script path `/w/`) customizable
(probably using siteinfo to get a Wikis configuration dynamically)
[] Disable EventLogging
[] Add documentation to hacking page or separate Wiki page. Mention which Dev Settings one most likely would want to change and give general tips.