- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
67 lines
1.9 KiB
Java
67 lines
1.9 KiB
Java
package com.ironsource.mediationsdk.logger;
|
|
|
|
import com.ironsource.environment.thread.IronSourceThreadManager;
|
|
import com.ironsource.mediationsdk.logger.IronSourceLogger;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class b extends IronSourceLogger {
|
|
private static final String e = "publisher";
|
|
private LogListener c;
|
|
private boolean d;
|
|
|
|
public class a implements Runnable {
|
|
final /* synthetic */ String a;
|
|
final /* synthetic */ IronSourceLogger.IronSourceTag b;
|
|
final /* synthetic */ int c;
|
|
|
|
public a(String str, IronSourceLogger.IronSourceTag ironSourceTag, int i) {
|
|
this.a = str;
|
|
this.b = ironSourceTag;
|
|
this.c = i;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (b.this.c == null || this.a == null) {
|
|
return;
|
|
}
|
|
b.this.c.onLog(this.b, this.a, this.c);
|
|
}
|
|
}
|
|
|
|
private b() {
|
|
super("publisher");
|
|
}
|
|
|
|
public b(LogListener logListener, int i) {
|
|
super("publisher", i);
|
|
this.c = logListener;
|
|
this.d = false;
|
|
}
|
|
|
|
public void a(LogListener logListener) {
|
|
this.c = logListener;
|
|
}
|
|
|
|
public void a(boolean z) {
|
|
this.d = z;
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.logger.IronSourceLogger
|
|
public void log(IronSourceLogger.IronSourceTag ironSourceTag, String str, int i) {
|
|
a aVar = new a(str, ironSourceTag, i);
|
|
if (this.d) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(aVar);
|
|
} else {
|
|
IronSourceThreadManager.INSTANCE.postPublisherCallback(aVar);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.logger.IronSourceLogger
|
|
public void logException(IronSourceLogger.IronSourceTag ironSourceTag, String str, Throwable th) {
|
|
if (th != null) {
|
|
log(ironSourceTag, th.getMessage(), 3);
|
|
}
|
|
}
|
|
}
|