Skip to content

Commit 2708284

Browse files
authored
Make things public for LiveQuery (#858)
1 parent c2103e1 commit 2708284

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

parse/src/main/java/com/parse/PLog.java

+12-13
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@
88
*/
99
package com.parse;
1010

11+
import android.annotation.SuppressLint;
1112
import android.util.Log;
1213

1314
/**
14-
* Parse Logger
15+
* Parse Logger. See {@link #setLogLevel(int)}
1516
*/
17+
@SuppressWarnings("WeakerAccess")
1618
public class PLog {
19+
20+
@SuppressWarnings("unused")
1721
public static final int LOG_LEVEL_NONE = Integer.MAX_VALUE;
1822

1923
private static int logLevel = Integer.MAX_VALUE;
@@ -45,6 +49,7 @@ public static void setLogLevel(int logLevel) {
4549
PLog.logLevel = logLevel;
4650
}
4751

52+
@SuppressLint("WrongConstant")
4853
private static void log(int messageLogLevel, String tag, String message, Throwable tr) {
4954
if (messageLogLevel >= logLevel) {
5055
if (tr == null) {
@@ -55,41 +60,35 @@ private static void log(int messageLogLevel, String tag, String message, Throwab
5560
}
5661
}
5762

58-
/* package */
59-
static void v(String tag, String message, Throwable tr) {
63+
public static void v(String tag, String message, Throwable tr) {
6064
log(Log.VERBOSE, tag, message, tr);
6165
}
6266

63-
static void v(String tag, String message) {
67+
public static void v(String tag, String message) {
6468
v(tag, message, null);
6569
}
6670

67-
/* package */
68-
static void d(String tag, String message, Throwable tr) {
71+
public static void d(String tag, String message, Throwable tr) {
6972
log(Log.DEBUG, tag, message, tr);
7073
}
7174

72-
/* package */
7375
public static void d(String tag, String message) {
7476
d(tag, message, null);
7577
}
7678

77-
/* package */
78-
static void i(String tag, String message, Throwable tr) {
79+
public static void i(String tag, String message, Throwable tr) {
7980
log(Log.INFO, tag, message, tr);
8081
}
8182

8283
public static void i(String tag, String message) {
8384
i(tag, message, null);
8485
}
8586

86-
/* package */
87-
static void w(String tag, String message, Throwable tr) {
87+
public static void w(String tag, String message, Throwable tr) {
8888
log(Log.WARN, tag, message, tr);
8989
}
9090

91-
/* package */
92-
static void w(String tag, String message) {
91+
public static void w(String tag, String message) {
9392
w(tag, message, null);
9493
}
9594

parse/src/main/java/com/parse/ParseDecoder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222

2323
/**
2424
* A {@code ParseDecoder} can be used to transform JSON data structures into actual objects, such as
25-
* {@link ParseObjects}.
25+
* {@link ParseObject}s.
2626
*
2727
* @see com.parse.ParseEncoder
2828
*/
29-
class ParseDecoder {
29+
public class ParseDecoder {
3030

3131
// This class isn't really a Singleton, but since it has no state, it's more efficient to get the
3232
// default instance.

parse/src/main/java/com/parse/ParsePlugins.java

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public String clientKey() {
8484
return configuration.clientKey;
8585
}
8686

87+
public String server() {
88+
return configuration.server;
89+
}
90+
8791
Parse.Configuration configuration() {
8892
return configuration;
8993
}

parse/src/main/java/com/parse/ParseUser.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ public static String getCurrentSessionToken() {
246246

247247
//region Getter/Setter helper methods
248248

249-
//TODO (grantland): Make it really async and publicize in v2
250-
/* package */
251-
static Task<String> getCurrentSessionTokenAsync() {
249+
public static Task<String> getCurrentSessionTokenAsync() {
252250
return getCurrentUserController().getCurrentSessionTokenAsync();
253251
}
254252

0 commit comments

Comments
 (0)