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

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

Issue 6606493159784448: New JNI bindings (Closed)
Patch Set: Reuploaded full diff Created March 28, 2014, 3:56 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
(Empty)
1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */
17 package org.adblockplus.android.api;
Felix Dahlke 2014/03/28 17:28:41 How about org.adblockplus.libadblockplus for the p
18
19 public class AppInfo
20 {
21 public final String id;
22 public final String version;
23 public final String name;
24 public final String application;
25 public final String applicationVersion;
26 public final String locale;
27 public final boolean developmentBuild;
28
29 // TODO: Builder or not?
Felix Dahlke 2014/03/28 17:28:41 IMHO this should mirror the C++ API, that is: Just
René Jeschke 2014/03/31 09:10:38 Why do we want to have the object non-final? We on
Felix Dahlke 2014/03/31 10:43:23 All I'm saying is that the Java API should mirror
René Jeschke 2014/04/11 12:25:53 I don't think it's a good idea to change the C++ A
Felix Dahlke 2014/04/11 13:01:29 Discussed this on IRC. I agree now, an immutable o
René Jeschke 2014/04/11 13:28:40 Done.
30 public AppInfo(final String id, final String version, final String name, final String application, final String applicationVersion,
31 final String locale, final boolean developmentBuild)
32 {
33 this.id = id;
34 this.version = version;
35 this.name = name;
36 this.application = application;
37 this.applicationVersion = applicationVersion;
38 this.locale = locale;
39 this.developmentBuild = developmentBuild;
40 }
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld