DescriptionWhile this works, I'm wondering if my approach makes sense.
First of all: Please note that the update server decides whether the client should install an update, there is no client-side check. Android won't complain about the update as long as the version code is higher, so we're pretty flexible here and can change the user visible version later.
Firefox mobile update requests currently look like this:
/Fennec/34.0/20141208113329/Android_arm-eabi-gcc3/en-US/default/4.4.4/default/default/34.0/update.xml
I thought it makes sense to force fit this onto our usual update request format, as we do it in ABP for Android. Here's the result of that:
/devbuilds/adblockbrowser?type=0&addonName=adblockbrowser&addonVersion=20141208113329&applicationName=android&applicationVersion=4.4.4&platform=Fennec&platformVersion=34.0&locale=en-US
I've tried to keep things similar to ABP for Android, so:
addon(Name|Version): Our app, the browser
application(Name|Version): Android
platform(Name|Version): The app ours is based on, "Fennec" and "34.0" in this case - I'd argue we don't really need to know this on the update server, but the same goes for platform(Name|Version) in ABP for Android.
I can't say I'm particularly happy with that, this would make more sense IMO:
addon(Name|Version): Omitted! (Or maybe the ABP version we use?)
application(Name|Version): Our app, the browser
platform(Name|Version): The Android platform and it's version
However, that'd be confusing in comparison to ABP for Android, so I thought keeping it similar would be the lesser evil. Please let me know what you think makes more sense.
There's also some constants I completely ignored, because I think they're not relevant for now:
- AppConstants.MOZ_APP_ABI + pkgSpecial (arm-eabi-gcc3)
- AppConstants.MOZ_UPDATE_CHANNEL (default)
- AppConstants.MOZILLA_VERSION (34.0)
Patch Set 1 : #
Total comments: 3
Patch Set 2 : Add version number to addonVersion, change platform/platformVersion #
Total comments: 9
Patch Set 3 : Removed hard coded type=0, changed platform to gecko #
MessagesTotal messages: 11
|