OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |