[WikimediaMobile] REST API /page/summary: proposed change to content_urls and api_urls

2019-02-15 Thread Michael Holloway
The Wikimedia REST API's /page/summary response contains content_urls and
api_urls keys that provide convenience lists of various URLs of potential
interest to the consumer.  These lists appear in other endpoint responses
as well, as the page summary response is transcluded in various places
throughout the REST API.

Currently, these URL strings are constructed erroneously using unencoded
page title strings.  A proposed patch (
https://gerrit.wikimedia.org/r/#/c/mediawiki/services/mobileapps/+/489329/)
applies encodeURIComponent to encode these before including them in URLs.

Since this endpoint is advertised as stable[1], I'm announcing the change
here in advance.  Barring any objections, the change will be deployed late
next week.

[1]
https://en.wikipedia.org/api/rest_v1/#!/Page_content/get_page_summary_title

-- 
Michael Holloway
Software Engineer, Reading Infrastructure
___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l


[WikimediaMobile] [Apps] Android Wikipedia beta app release (2.5.194-beta-2017-04-19)

2017-04-19 Thread Michael Holloway
The WMF Android team is pleased to announce a new Wikipedia Android
app beta release, v2.5.194-beta-2017-04-19!

https://play.google.com/store/apps/details?id=org.wikipedia.beta

This revision contains the following new functionality and fixes:

- Substantial improvements to the reading lists UI
- Multiple reading list articles can now be selected at once
- Individual reading list articles can now be toggled on/offline.
- Images are now cached for offline availability
- Random feed card now pulls a random article from the user's reading lists when
  offline
- Many other bug fixes and UI updates

For a complete list of changes, see
https://phabricator.wikimedia.org/diffusion/APAW/history/master/;beta/2.5.194-beta-2017-04-19.

Many thanks to our volunteers who contributed patches to this release,
including Amir Aharoni (IRC: aharoni, Wikipedia User:Amire80), Codrut
Grosu (Github: superCodrut, Twitter: @GrosuCodrut), and Dinu
Kumarasiri (IRC: sandaru, Github: sandarumk).

You too can help make it better! Read our getting started guide.[1] We
look forward to your contributions!

-The WMF Android team

[1] 
https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/Wikipedia_Android_app_hacking

___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l


Re: [WikimediaMobile] Coordinate link on articles in app

2017-04-19 Thread Michael Holloway
Hi Bjoern,

There's an open Phabricator task for the issue of the article location no
longer appearing in the article view:
https://phabricator.wikimedia.org/T146919

Cheers,
Michael



On Mon, Apr 17, 2017 at 11:14 AM, Bjoern Hassler 
wrote:

> Hi all,
>
> apologies if this has already been discussed extensively. The app used to
> feature the geographical coordinates of articles, in the same way was the
> standard wiki pages do.
>
> However, it seems that this is no longer the case. In my view, that's a
> shame, as it makes it harder to go from the article into a maps app.
>
> In particular, it would be good if the app enabled the launch of 'geo'
> intents (from geotagged articles), that can be picked up by other apps, see
> https://phabricator.wikimedia.org/T136579.
>
> (Similarly, it would also be nice if the app could receive geo intents, an
> display nearby articles.)
>
> What do others think?
>
> All the best wishes,
> Bjoern
>
> ___
> Mobile-l mailing list
> Mobile-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mobile-l
>
>
___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l


Re: [WikimediaMobile] Wikimedia android and server setup

2017-03-24 Thread Michael Holloway
Hi Amit,

The Wikipedia Android app isn't intended to be a general purpose MediaWiki
app.  The app does support switching backends via developer preferences,
but there are many assumptions throughout the codebase that are specific to
the production Wikipedias.  We use backend switching mainly for testing
against environments such as the Beta Cluster
 or MediaWiki-Vagrant
.  The app wouldn't work
"out of the box" with an arbitrary MediaWiki installation.

There is some demand for a general purpose MediaWiki mobile app.  Please
see the Phabricator ticket  for
related discussion.

Best,
Michael

On Fri, Mar 24, 2017 at 10:33 AM, Amit Ahlawat  wrote:

> Hello Wikimedia
>
>
> I have a question regarding the open source server and android code
> available from wikimedia, specifically those at the links below:
>
>
> Server side: https://www.mediawiki.org/wiki/Download
>
> Android: https://github.com/wikimedia/apps-android-wikipedia
>
>
> I want to host my own wiki using the mediawiki source on a server. I want
> to ask whether the open source wikipedia app allows connection to mediawiki
> servers not owned by Wikipedia.
>
>
>
> Thanks,
> Amit
>
>
> ___
> Mobile-l mailing list
> Mobile-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mobile-l
>
>
___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l


[WikimediaMobile] [Mobile][Engineering] Java 8 now required to build the Android app

2016-06-24 Thread Michael Holloway
Dear Mobile Wikimedians,

The Android app recently upgraded to the latest version (24.0.0) of the
Android support library, which requires Java 8 in order to build.
Accordingly, Java 8 is now required to build the Android app.

As of about an hour ago, our CI jobs have moved from using Java 7 to Java
8.   Details are here: https://phabricator.wikimedia.org/T138506

Big thanks to @hashar for making the CI change!

Warmly,
Michael
___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l


Re: [WikimediaMobile] Update: Upload to Commons Android app

2016-06-20 Thread Michael Holloway
Nice work, Josephine, congratulations!

On Mon, Jun 20, 2016 at 2:39 AM, Florian Schmidt <
florian.schmidt.wel...@t-online.de> wrote:

> Congratulations Josephine! :) It’s awesome to see an app which is
> maintained by volunteers only! :)
>
>
>
> *Von:* Mobile-l [mailto:mobile-l-boun...@lists.wikimedia.org] *Im Auftrag
> von *Josephine Lim
> *Gesendet:* Montag, 20. Juni 2016 07:18
> *An:* wikitec...@lists.wikimedia.org; mobile-l <
> mobile-l@lists.wikimedia.org>; common...@lists.wikimedia.org
> *Betreff:* [WikimediaMobile] Update: Upload to Commons Android app
>
>
>
> Hi all,
>
>
>
> A quick update re: the Upload to Commons Android app:
>
>
>
> - We are now considered an 'official' app and have been granted permission
> by WMF to use the Wikimedia Commons logo and name. As such, the app is now
> named "Wikimedia Commons" <
> https://play.google.com/store/apps/details?id=fr.free.nrw.commons>
> instead of "Upload to Commons", and its icon has been changed to the
> Commons logo. Ownership of the app should also soon be transferred to the
> WMF Google Play account. On a practical basis, there should be no change in
> the use of the app and it will still be maintained by volunteers.
>
>
>
> - I am happy to announce that my IEG proposal for further work on the app <
> https://meta.wikimedia.org/wiki/Grants:IEG/Improve_%27Upload_to_Commons%27_Android_App>
> has been selected. :) I will be starting work on it shortly, so there will
> be regular releases planned for the next 6 months. Bug/crash reports and
> feedback are welcome on our Google Groups forums <
> https://groups.google.com/forum/#!forum/commons-app-android> and GitHub
> page  as
> always.
>
>
>
> Have a great day!
>
>
>
>
>
> Cheers,
>
> Josephine
>
>
>
>
>
> ___
> Mobile-l mailing list
> Mobile-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mobile-l
>
>
___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l


Re: [WikimediaMobile] [Apps] Android Wikipedia beta app release (2.2.146-beta-2016-05-23)

2016-05-24 Thread Michael Holloway
Hi Pine,

I followed the Android docs[1] in using the term "metered connection" in
the release notes, but in concrete terms, your connection is considered
"metered" if you're on a cellular (as opposed to wi-fi) network.[2]

Regards,
Michael

[1]
https://developer.android.com/reference/android/support/v4/net/ConnectivityManagerCompat.html#isActiveNetworkMetered(android.net.ConnectivityManager)
[2]
https://android.googlesource.com/platform/frameworks/support/+/refs/heads/master/v4/java/android/support/v4/net/ConnectivityManagerCompat.java#37

On Tue, May 24, 2016 at 1:11 PM, Pine W  wrote:

> Hi Stephen,
>
> > No longer force downloading and widening HQ images when on a metered
> connection.
>
> Thank you. May I ask how the app knows if the device is using a metered
> connection at any given point in time?
>
> Pine
> On May 24, 2016 09:37, "Stephen Niedzielski" 
> wrote:
>
>> The Android team[0] is pleased to announce a new Wikipedia Android app
>> beta release, v2.2.146-beta-2016-05-23[1]. This revision contains the
>> following new fixes and functionality[2]:
>>
>> * Introducing Reading Lists: In place of the old "Saved Pages", you can
>>   now organize the articles you browse into reading lists, which you can
>>   access even when you're offline. Create as many lists as you like,
>>   give them custom names, and populate them with articles from any
>>   language wiki!
>> * Update authentication to work with the latest server changes.
>> * Add "edit here" to the long press menu.
>> * Check Wikipedia Zero status on page load instead of on network state
>>   change.
>> * Improved Wikipedia Zero banner design.
>> * No longer force downloading and widening HQ images when on a metered
>>   connection.
>> * Numerous crash and bug fixes.
>>
>> Included in this version are patches from first time contributors,
>> Michael Basil[3] and Elad Keyshawn[4], and repeat contributors,
>> maroloccio[5] and Dan Garry[6]. Nice work, devs!
>>
>> You too can help make it better! Read our getting started guide[7]. We
>> can't wait for your contributions!
>>
>>
>> -The WMF Android team
>>
>> [0] https://www.mediawiki.org/wiki/Wikimedia_Apps/Team#Android_App
>> [1] Rolling out at
>> https://play.google.com/store/apps/details?id=org.wikipedia.beta
>> [2] A complete list of changes is available at
>> https://phabricator.wikimedia.org/diffusion/APAW/history/master/;beta/2.2.146-beta-2016-05-23
>> [3] https://github.com/intrications
>> [4] https://twitter.com/EladKeyshawn
>> [5] IRC: maroloccio, https://twitter.com/maroloccio
>> [6] IRC: Deskana, https://twitter.com/danjgarry
>> [7]
>> https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/Wikipedia_Android_app_hacking
>>
>> ___
>> Mobile-l mailing list
>> Mobile-l@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/mobile-l
>>
>>
> ___
> Mobile-l mailing list
> Mobile-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mobile-l
>
>
___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l


Re: [WikimediaMobile] Facebook lite Android app engineering blog post

2016-03-10 Thread Michael Holloway
Yeah, this was a great read!  Crazy engineering indeed!

We're not going to be implementing a custom networking protocol for our
Android app anytime soon, but for me here are some of the key takeaways
applicable to our app from what Facebook is doing:

-prioritizing keeping the APK slim
-optimizing image size/quality
-optimizing based on the specific "device year class
"
and network connection quality

-m.




On Thu, Mar 10, 2016 at 10:59 AM, Joaquin Oltra Hernandez <
jhernan...@wikimedia.org> wrote:

> Crazy engineering. They've rebuilt the internet (network layer and a
> browser) for their app...
>
> The Lite client is a simple VM that provides various capabilities to
>> interact with the OS (such as read a file, open the camera, create an
>> SQLite database, and so on) and a rendering engine to drive the Android UI.
>> Product code is written on the server and is expressed in terms of the
>> capabilities the client has. Resources are sent down from the server as
>> needed and cached. So it has infinite scalability for building additional
>> product without bloating the APK.
>
>
>
> On Wed, Mar 9, 2016 at 3:54 PM, Gilles Dubuc  wrote:
>
>>
>> https://code.facebook.com/posts/1365439333482197/how-we-built-facebook-lite-for-every-android-phone-and-network
>>
>> "To achieve an extremely byte-efficient wire protocol, instead of using
>> HTTPS, Lite uses a custom message protocol over TLS (directly over TCP).
>> One of the biggest pain points in a 2G network is that establishing a
>> connection can be very slow; it can take multiple seconds. As most Lite
>> traffic flows over a single connection to the backend, this pain point is
>> mitigated in comparison."
>>
>> ___
>> Mobile-l mailing list
>> Mobile-l@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/mobile-l
>>
>>
>
> ___
> Mobile-l mailing list
> Mobile-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mobile-l
>
>
___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l


Re: [WikimediaMobile] [Services] Someone please announce/explain T119235 (RESTBase for Wiktionary)

2016-02-15 Thread Michael Holloway
I've created a wiki page providing an overview of the objectives, current
status, and obstacles for the experimental Wiktionary popups, which you can
find here:

https://www.mediawiki.org/wiki/Wikimedia_Apps/Wiktionary_definition_popups_in_the_Android_Wikipedia_Beta_app

-m.

On Sun, Feb 14, 2016 at 2:08 PM, Dmitry Brant  wrote:

> Hi Nemo,
>
> As Gabriel notes, the Wiktionary endpoint is still very much experimental,
> and is subject to change. One of the ongoing goals for the Android app is
> to integrate more rich content into the browsing experience. One such
> feature is to allow the user to highlight words in an article and see a
> quick popup definition of the word from Wiktionary[1]. To facilitate this
> action, we set up a RESTBase endpoint for fetching the desired term from
> Wiktionary[2].
>
> This feature is currently only available in the Wikipedia Beta app, and is
> restricted only to English wiktionary. Further work on this endpoint will
> depend on the level of user engagement with the feature, once it's rolled
> out to the main Wikipedia app. So, once again, even though we're building
> the endpoint with the hope that it would be used by other consumers besides
> the Android app (and expanded to all languages), at the moment it's by no
> means ready for general consumption.
>
> We do have a wiki page[3] with some more details on the service endpoints
> that are used by the apps, which you, as well as the Wiktionary community,
> are welcome to comment on.
>
> -Dmitry
>
> [1] https://phabricator.wikimedia.org/T115484
> [2] https://phabricator.wikimedia.org/T119235
> [3]
> https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/RESTBase_services_for_apps
>
>
> On Sun, Feb 14, 2016 at 12:18 PM, Gabriel Wicke 
> wrote:
>
>> Federico,
>>
>> as indicated by the classification as "experimental" [1], the
>> definition end point [2] is at a very early point of its development.
>> The mobile app team has added preliminary support for extracting
>> definitions in the content service [3] using Parsoid's template
>> metadata, and is using this end point to power a "define this word"
>> feature in the next version of the Android app. You can preview the
>> feature in the beta Android app when browsing English Wikipedia by
>> selecting a word, and then hitting the 'definition' icon next to
>> 'copy'.
>>
>> In this first iteration, only English Wiktionary is supported.
>> Generalizing the service and API end point to provide definitions
>> using more or all Wiktionaries will require more work and planning. In
>> the next iteration, I would expect a focus on enabling collaborative
>> definition and maintenance of extraction rules, as well as broader
>> involvement of Wiktionary communities in the planning process. The
>> timing for the next iteration depends partly on the mobile app team's
>> priorities, so I will defer to the team to comment on this.
>>
>> To summarize: We are aiming to gradually develop this into a generally
>> useful, stable and well-documented API entry point for word
>> definitions. The experimental end point published right now is just
>> the beginning, and you are very much invited to help shape the way
>> forward.
>>
>> Gabriel
>>
>> [1]: https://www.mediawiki.org/wiki/API_versioning#Experimental
>> [2]:
>> https://en.wiktionary.org/api/rest_v1/?doc#!/Page_content/get_page_definition_term
>> [3]:
>> https://github.com/wikimedia/mediawiki-services-mobileapps/blob/master/lib/parseDefinition.js
>>
>>
>> --
>> Gabriel Wicke
>> Principal Engineer, Wikimedia Foundation
>>
>> ___
>> Mobile-l mailing list
>> Mobile-l@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/mobile-l
>>
>
>
>
> --
> Dmitry Brant
> Software Engineer / Product Owner (Android)
> Wikimedia Foundation
> https://www.mediawiki.org/wiki/Wikimedia_mobile_engineering
>
>
> ___
> Mobile-l mailing list
> Mobile-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mobile-l
>
>
___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l


Re: [WikimediaMobile] Apps for Kindle and Windows

2015-07-30 Thread Michael Holloway
The old PhoneGap app repo lives here on GitHub:
https://github.com/wikimedia/WikipediaMobile

(I haven't touched it and can't speak to its current state.)

On Thu, Jul 30, 2015 at 9:52 AM, Joaquin Oltra Hernandez 
jhernan...@wikimedia.org wrote:

 I've also floated the idea of cleaning up / replacing the experimental
 Firefox OS app (which is based on our old PhoneGap app code) and using a
 modernized HTML5+JS app for both Firefox OS and Windows 10 Tablet/Mobile.
 Nobody's bitten on the idea yet, but I think it might be better than trying
 to separately spin up resources for multiple minority mobile OSs.


 Where is such phonegap app? I'm very interested in building a web client and
 have already been doing so for the last 2 hackathons
 http://chimeces.com/webkipedia/ (T106275
 https://phabricator.wikimedia.org/T106275) and I'm working on it
 thinking mobile first.

 I would be very interested in checking the feature set of the old phonegap
 app and when good enough, making an effort to package something like that
 web client for firefoxOS  windows phone.

 Thoughts?

 On Sun, Jul 26, 2015 at 4:10 AM, Stephen Niedzielski 
 sniedziel...@wikimedia.org wrote:

   Hey! I believe we update the Wikipedia for Fire OS (Android) app[0]
 whenever a production version has fully rolled out on Play, although we
 don't offer the Beta[2] on Appstore. I can see they're both currently at
 the latest and greatest. I don't have Fire device presently, but if you
 highlight a term for sharing and have Wikipedia installed, you should get
 the option to search with the app. I *thought* there was also some
 additional platform level support for Wikipedia lookups built by Amazon but
 I might be mistaken.


 --stephen

 [0] https://www.amazon.com/gp/mas/dl/android?p=org.wikipedia
 [1] https://play.google.com/store/apps/details?id=org.wikipedia
 [2] https://play.google.com/store/apps/details?id=org.wikipedia.beta

 On Sat, Jul 25, 2015 at 7:42 PM, Pine W wiki.p...@gmail.com wrote:

 Hi Brion,

 Ok, thanks.

 Is the Wikipedia app promoted to Kindle Fire users very much? It would
 be interesting if highlighting a term in a Kindle book or newspaper would
 take the user to a Wikipedia or Wiktionary article for definitions and
 background info.

 I wonder if Microsoft would be willing to support Wikipedia app
 development for Windows with Microsoft financing or in-kind contribution of
 developer time. Any thoughts?

 Pine
 On Jul 25, 2015 6:08 PM, Brion Vibber bvib...@wikimedia.org wrote:

 On Sat, Jul 25, 2015 at 5:56 PM, Pine W wiki.p...@gmail.com wrote:

 Hi Mobilizers,

 1. Do you think it would make sense to develop a Wikipedia app for
 Kindle, or to encourage Amazon to do so or financially sponsor its
 development?


 Kindle Fire devices are Android-based and can run the existing Android
 Wikipedia app. The bare-bones e-ink Kindle readers are another story
 perhaps. :)


 2. Same questions for Windows and Microsoft, especially considering
 the Windows 10 launch.


 I did an experimental JavaScript/WinJS-based Windows tablet app back
 for the Windows 8 launch, which is still in the Windows Store but needs to
 be cleaned up for Windows 10 or perhaps killed and replaced. :)

 Windows 10 will also have a Mobile edition for phones 'and small
 tablets'; there's a unified app platform between desktop and mobile on
 Windows 10 so it should be possible to adapt the tablet app to run on
 phones (or rewrite it entirely to run on both!)


 There's also been some talk about using the framework Microsoft has put
 together for porting Android apps to Windows 10 Mobile, but I don't think
 anybody has a good handle on how tricky that will be to use, or the
 cost-benefit of working on Windows 10 Mobile in general.

 I've also floated the idea of cleaning up / replacing the experimental
 Firefox OS app (which is based on our old PhoneGap app code) and using a
 modernized HTML5+JS app for both Firefox OS and Windows 10 Tablet/Mobile.
 Nobody's bitten on the idea yet, but I think it might be better than trying
 to separately spin up resources for multiple minority mobile OSs.

 -- brion


 ___
 Mobile-l mailing list
 Mobile-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/mobile-l



 ___
 Mobile-l mailing list
 Mobile-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/mobile-l



 ___
 Mobile-l mailing list
 Mobile-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/mobile-l


___
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l