Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 4865921483014144: Check adblockplus.org for updates (Closed)

Created:
Dec. 9, 2014, 7:02 p.m. by Felix Dahlke
Modified:
May 21, 2015, 11:50 a.m.
Visibility:
Public.

Description

While 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -18 lines) Patch
M mobile/android/base/updater/UpdateServiceHelper.java View 1 2 2 chunks +10 lines, -17 lines 0 comments Download
M mobile/android/branding/adblockbrowser/configure.sh View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11
Felix Dahlke
Feedback quite welcome :) http://codereview.adblockplus.org/4865921483014144/diff/5629499534213120/mobile/android/base/updater/UpdateServiceHelper.java File mobile/android/base/updater/UpdateServiceHelper.java (right): http://codereview.adblockplus.org/4865921483014144/diff/5629499534213120/mobile/android/base/updater/UpdateServiceHelper.java#newcode62 mobile/android/base/updater/UpdateServiceHelper.java:62: "&platform=" + AppConstants.MOZ_APP_BASENAME + This ...
Dec. 9, 2014, 7:58 p.m. (2014-12-09 19:58:34 UTC) #1
René Jeschke
Regarding: AppConstants.MOZ_APP_ABI Isn't Fennec already available for x86/intel platforms? If so, we would force an ...
Feb. 18, 2015, 3:15 p.m. (2015-02-18 15:15:42 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java File mobile/android/base/updater/UpdateServiceHelper.java (right): http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java#newcode57 mobile/android/base/updater/UpdateServiceHelper.java:57: "?type=0" + What is this type=0 about? http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java#newcode63 mobile/android/base/updater/UpdateServiceHelper.java:63: ...
Feb. 18, 2015, 6:05 p.m. (2015-02-18 18:05:55 UTC) #3
Felix Dahlke
On 2015/02/18 15:15:42, René Jeschke wrote: > Regarding: AppConstants.MOZ_APP_ABI > > Isn't Fennec already available ...
Feb. 19, 2015, 1:40 p.m. (2015-02-19 13:40:16 UTC) #4
Felix Dahlke
http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java File mobile/android/base/updater/UpdateServiceHelper.java (right): http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java#newcode57 mobile/android/base/updater/UpdateServiceHelper.java:57: "?type=0" + On 2015/02/18 18:05:55, Wladimir Palant wrote: > ...
Feb. 19, 2015, 1:40 p.m. (2015-02-19 13:40:22 UTC) #5
Felix Dahlke
http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java File mobile/android/base/updater/UpdateServiceHelper.java (right): http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java#newcode63 mobile/android/base/updater/UpdateServiceHelper.java:63: "&platformVersion=" + AppConstants.MOZILLA_VERSION + On 2015/02/19 13:40:22, Felix H. ...
Feb. 19, 2015, 10:21 p.m. (2015-02-19 22:21:58 UTC) #6
Wladimir Palant
http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java File mobile/android/base/updater/UpdateServiceHelper.java (right): http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java#newcode57 mobile/android/base/updater/UpdateServiceHelper.java:57: "?type=0" + On 2015/02/19 13:40:22, Felix H. Dahlke wrote: ...
Feb. 23, 2015, 12:32 p.m. (2015-02-23 12:32:24 UTC) #7
Felix Dahlke
New patch set up. http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java File mobile/android/base/updater/UpdateServiceHelper.java (right): http://codereview.adblockplus.org/4865921483014144/diff/5757334940811264/mobile/android/base/updater/UpdateServiceHelper.java#newcode57 mobile/android/base/updater/UpdateServiceHelper.java:57: "?type=0" + On 2015/02/23 12:32:24, ...
Feb. 23, 2015, 10:24 p.m. (2015-02-23 22:24:00 UTC) #8
Wladimir Palant
LGTM
Feb. 24, 2015, 2:45 p.m. (2015-02-24 14:45:10 UTC) #9
Felix Dahlke
René: Here's a follow-up for building for other platforms and sending that information: https://trello.com/c/gaG7n3sd/51-build-for-other-platforms-e-g-x86
Feb. 25, 2015, 3:29 a.m. (2015-02-25 03:29:22 UTC) #10
René Jeschke
Feb. 25, 2015, 6:22 a.m. (2015-02-25 06:22:27 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld