Page MenuHomePhabricator

Refactor Android PhoneGap app so most of the code is platform-independent
Closed, ResolvedPublic

Description

Current code mixes generic HTML / PhoneGap stuff with Android-specific things (use of android-specific plugins like the menus and sharing, etc).

Should refactor it out so we can import the common code into the Android project and also into the iPhone project without having to manually synchronize multiple code trees as much.


Version: 1.0.0 (Android)
Severity: normal

Details

Reference
bz31973

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
InvalidNone
ResolvedNone
ResolvedNone
InvalidNone
ResolvedNone
InvalidNone
ResolvedNone
ResolvedNone
InvalidNone
ResolvedNone
DeclinedNone
ResolvedNone
ResolvedNone
DeclinedNone
DeclinedNone
ResolvedNone
ResolvedNone
Declined Tfinc
Resolved Tfinc
DeclinedNone
Declined brion
DeclinedNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:56 PM
bzimport set Reference to bz31973.
bzimport added a subscriber: Unknown Object (MLST).

Pull request with work in progress:

https://github.com/nitobi/Wikipedia/pull/48

This checks whether we're running on Android or iOS and loads up the appropriate phonegap-1.1.0.js and any needed plugin interface stubs. Some of the files under js/ are split into eg js/android/ and js/ios/.

Initial iOS build stuff also included (for bug 31974) though it's not quite working right.

Has been merged as of 05e8d9d57598f4ddfd180f8d9740fe3b7f9e9d88

Still need to break out some Android-specific assumptions and code into platform-specific modules.