- 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
59 lines
2.3 KiB
Java
59 lines
2.3 KiB
Java
package com.applovin.impl.communicator;
|
|
|
|
import com.applovin.communicator.AppLovinCommunicatorMessage;
|
|
import com.applovin.communicator.AppLovinCommunicatorMessagingService;
|
|
import com.applovin.impl.sdk.AppLovinBroadcastManager;
|
|
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
|
import java.util.concurrent.ThreadFactory;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class MessagingServiceImpl implements AppLovinCommunicatorMessagingService {
|
|
private ScheduledThreadPoolExecutor a;
|
|
private final Object b = new Object();
|
|
|
|
@Override // com.applovin.communicator.AppLovinCommunicatorMessagingService
|
|
public void publish(final AppLovinCommunicatorMessage appLovinCommunicatorMessage) {
|
|
ScheduledThreadPoolExecutor a = a();
|
|
this.a = a;
|
|
a.execute(new Runnable() { // from class: com.applovin.impl.communicator.MessagingServiceImpl$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AppLovinBroadcastManager.sendBroadcastSync(AppLovinCommunicatorMessage.this, null);
|
|
}
|
|
});
|
|
}
|
|
|
|
public String toString() {
|
|
return "MessagingServiceImpl{}";
|
|
}
|
|
|
|
private ScheduledThreadPoolExecutor a() {
|
|
synchronized (this.b) {
|
|
try {
|
|
ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = this.a;
|
|
if (scheduledThreadPoolExecutor != null) {
|
|
return scheduledThreadPoolExecutor;
|
|
}
|
|
return new ScheduledThreadPoolExecutor(1, new ThreadFactory() { // from class: com.applovin.impl.communicator.MessagingServiceImpl$$ExternalSyntheticLambda0
|
|
@Override // java.util.concurrent.ThreadFactory
|
|
public final Thread newThread(Runnable runnable) {
|
|
Thread a;
|
|
a = MessagingServiceImpl.a(runnable);
|
|
return a;
|
|
}
|
|
});
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ Thread a(Runnable runnable) {
|
|
Thread thread = new Thread(runnable, "AppLovinSdk:communicator");
|
|
thread.setPriority(1);
|
|
thread.setDaemon(true);
|
|
return thread;
|
|
}
|
|
}
|