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

Side by Side Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/AppInfo.java

Issue 29399749: Issue 5081 - Make libadblockplus-android users supply the application and applicationVersion parame… (Closed)
Patch Set: Created March 31, 2017, 1:28 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 26 matching lines...) Expand all
37 this.developmentBuild = developmentBuild; 37 this.developmentBuild = developmentBuild;
38 } 38 }
39 39
40 public static Builder builder() 40 public static Builder builder()
41 { 41 {
42 return new Builder(); 42 return new Builder();
43 } 43 }
44 44
45 public static class Builder 45 public static class Builder
46 { 46 {
47 private String version = "0"; 47 private String version = "1.0";
48 private String name = "adblockplusandroid"; 48 private String name = "libadblockplus-android";
49 private String application = "android"; 49 private String application = "android";
50 private String applicationVersion = "0"; 50 private String applicationVersion = "0";
51 private String locale = "en_US"; 51 private String locale = "en_US";
52 private boolean developmentBuild = false; 52 private boolean developmentBuild = false;
53 53
54 private Builder() 54 private Builder()
55 { 55 {
56 56
57 } 57 }
58 58
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 this.developmentBuild = developmentBuild; 91 this.developmentBuild = developmentBuild;
92 return this; 92 return this;
93 } 93 }
94 94
95 public AppInfo build() 95 public AppInfo build()
96 { 96 {
97 return new AppInfo(this.version, this.name, this.application, this.applica tionVersion, this.locale, this.developmentBuild); 97 return new AppInfo(this.version, this.name, this.application, this.applica tionVersion, this.locale, this.developmentBuild);
98 } 98 }
99 } 99 }
100 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld