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

Issue 29399749: Issue 5081 - Make libadblockplus-android users supply the application and applicationVersion parame… (Closed)

Created:
March 31, 2017, 1:28 p.m. by anton
Modified:
March 31, 2017, 3:14 p.m.
Visibility:
Public.

Description

Issue 5081 - Make libadblockplus-android users supply the application and applicationVersion parame…

Patch Set 1 #

Total comments: 20

Patch Set 2 : minor reformatting #

Total comments: 1

Patch Set 3 : updated javadocs from .h #

Patch Set 4 : application/-Version are required now #

Messages

Total messages: 11
anton
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java File libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java (left): https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java#oldcode90 libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java:90: version += "." + info.versionCode; addonVersion is generated, but ...
March 31, 2017, 1:30 p.m. (2017-03-31 13:30:27 UTC) #1
anton
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (left): https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#oldcode25 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:25: import org.adblockplus.libadblockplus.UpdateCheckDoneCallback; not related to the task directly https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#oldcode31 ...
March 31, 2017, 1:34 p.m. (2017-03-31 13:34:21 UTC) #2
sergei
it seems, it should work, just in case few comments. https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java File libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java (right): https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java#newcode50 ...
March 31, 2017, 1:49 p.m. (2017-03-31 13:49:10 UTC) #3
anton
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java File libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java (right): https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java#newcode50 libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java:50: .setApplicationVersion("app.version"); On 2017/03/31 13:49:09, sergei wrote: > is "app.version" ...
March 31, 2017, 1:52 p.m. (2017-03-31 13:52:26 UTC) #4
sergei
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java File libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java (right): https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java#newcode50 libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java:50: .setApplicationVersion("app.version"); On 2017/03/31 13:52:25, anton wrote: > On 2017/03/31 ...
March 31, 2017, 2:01 p.m. (2017-03-31 14:01:52 UTC) #5
anton
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java File libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java (left): https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java#oldcode90 libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java:90: version += "." + info.versionCode; On 2017/03/31 14:01:52, sergei ...
March 31, 2017, 2:05 p.m. (2017-03-31 14:05:27 UTC) #6
Felix Dahlke
LGTM (my comment can be addressed in a separate noissue commit) https://codereview.adblockplus.org/29399749/diff/29399755/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): ...
March 31, 2017, 2:06 p.m. (2017-03-31 14:06:57 UTC) #7
diegocarloslima
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (left): https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#oldcode25 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:25: import org.adblockplus.libadblockplus.UpdateCheckDoneCallback; On 2017/03/31 13:34:21, anton wrote: > not ...
March 31, 2017, 2:07 p.m. (2017-03-31 14:07:14 UTC) #8
sergei
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java File libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java (right): https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java#newcode108 libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java:108: public static AppInfo generateAppInfo(final Context context, boolean developmentBuild) On ...
March 31, 2017, 2:08 p.m. (2017-03-31 14:08:33 UTC) #9
anton
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode153 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:153: return this; On 2017/03/31 14:07:14, diegocarloslima wrote: > By ...
March 31, 2017, 2:16 p.m. (2017-03-31 14:16:08 UTC) #10
diegocarloslima
March 31, 2017, 3:10 p.m. (2017-03-31 15:10:59 UTC) #11
On 2017/03/31 14:16:08, anton wrote:
>
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-andr...
> File
>
libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java
> (right):
> 
>
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-andr...
>
libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:153:
> return this;
> On 2017/03/31 14:07:14, diegocarloslima wrote:
> > By the ticket description, it seems that application and applicationVersion
> > should be mandatory instead of optional. If so, this should be included in
> > init() method
> 
> if they are required then i agree. it's not clear from the task
> 
>
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-andr...
> File
>
libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java
> (right):
> 
>
https://codereview.adblockplus.org/29399749/diff/29399750/libadblockplus-andr...
>
libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java:50:
> .setApplicationVersion("app.version");
> On 2017/03/31 14:07:14, diegocarloslima wrote:
> > It would be a more intuitive example here to provide a number instead of a
> > string
> 
> it's just an example. it's up to app developer to decide in what format he
> should pass it or up to us not to let him pass invalid values.

LGTM

Powered by Google App Engine
This is Rietveld