Skip to content

Commit 9778d60

Browse files
author
anwzhang
authored
Release 0.5 (prebid#66)
* update version * modify logutil
1 parent 179099b commit 9778d60

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

Maven/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
<modelVersion>4.0.0</modelVersion>
2727
<groupId>org.prebid</groupId>
2828
<artifactId>prebid-mobile-sdk</artifactId>
29-
<version>0.4</version>
29+
<version>0.5</version>
3030
<packaging>jar</packaging>
3131
</project>

PrebidMobile/PrebidMobileCore/src/main/java/org/prebid/mobile/core/LogUtil.java

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,13 @@ public static void v(final String tag, String message) {
6868
}
6969

7070
public static void v(final String tag, String message, Throwable cause) {
71-
if (BuildConfig.DEBUG) {
72-
if (TextUtils.isEmpty(tag)) {
73-
if (Log.isLoggable(BASE_TAG, Log.VERBOSE)) {
74-
Log.v(BASE_TAG, message, cause);
75-
}
76-
} else {
77-
if (Log.isLoggable(tag, Log.VERBOSE)) {
78-
Log.v(tag, message, cause);
79-
}
71+
if (TextUtils.isEmpty(tag)) {
72+
if (Log.isLoggable(BASE_TAG, Log.VERBOSE)) {
73+
Log.v(BASE_TAG, message, cause);
74+
}
75+
} else {
76+
if (Log.isLoggable(tag, Log.VERBOSE)) {
77+
Log.v(tag, message, cause);
8078
}
8179
}
8280
}
@@ -92,17 +90,15 @@ public static void d(final String tag, String message) {
9290
}
9391

9492
public static void d(final String tag, String message, Throwable cause) {
95-
if (BuildConfig.DEBUG) {
96-
try {
97-
if (Log.isLoggable(tag, Log.DEBUG)) {
98-
Log.d(tag, message, cause);
99-
return;
100-
}
101-
} catch (IllegalArgumentException e) {
102-
Log.e(BASE_TAG, "Tried to log a message with tag length >23: " + tag);
93+
try {
94+
if (Log.isLoggable(tag, Log.DEBUG)) {
95+
Log.d(tag, message, cause);
96+
return;
10397
}
104-
Log.d(BASE_TAG, message, cause);
98+
} catch (IllegalArgumentException e) {
99+
Log.e(BASE_TAG, "Tried to log a message with tag length >23: " + tag);
105100
}
101+
Log.d(BASE_TAG, message, cause);
106102
}
107103
//endregion
108104

PrebidMobile/PrebidServerAdapter/src/main/java/org/prebid/mobile/prebidserver/internal/Settings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class Settings {
5959
public static final String deviceModel = Build.MODEL;
6060
public static final String os = "android";
6161
public static String userAgent = null;
62-
public static String sdk_version = "0.4";
62+
public static String sdk_version = "0.5";
6363
public static String pkgVersion = "";
6464
public static String appName = "";
6565
private static int mnc = -1;

PrebidMobile/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ext {
44
releaseProguardEnabled = false
55
debugProguardEnabled = false
6-
prebidVersionName = "0.4"
6+
prebidVersionName = "0.5"
77
prebidVersionCode = 1
88
minSDKVersion = 16
99
targetSDKVersion = 25

0 commit comments

Comments
 (0)