正在查看: Baubap v3.9.7 应用的 BrazeActionReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Baubap v3.9.7 应用的 BrazeActionReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.braze.location;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.location.Location;
import androidx.annotation.Keep;
import com.braze.BrazeInternal;
import com.braze.enums.GeofenceTransitionType;
import com.braze.models.outgoing.BrazeLocation;
import com.braze.support.BrazeLogger;
import java.util.Iterator;
import java.util.List;
import kotlin.jvm.internal.f;
import m40.f1;
import m40.r0;
import xu.b;
import yv.j;
import yv.k;
@Keep
public final class BrazeActionReceiver extends BroadcastReceiver {
public static final class ActionReceiver {
public static final Companion Companion = new Companion(null);
private final String action;
private final Context applicationContext;
private final Intent intent;
public static final class Companion {
private Companion() {
}
public Companion(f fVar) {
this();
}
public final boolean handleSingleLocationUpdate(Context context, Location location) {
try {
BrazeInternal.logLocationRecordedEvent(context, new BrazeLocation(location));
return true;
} catch (Exception e) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.E, e, BrazeActionReceiver$ActionReceiver$Companion$handleSingleLocationUpdate$1.INSTANCE);
return false;
}
}
public final boolean handleGeofenceEvent(Context context, k kVar) {
b.y(context, "applicationContext");
b.y(kVar, "geofenceEvent");
int i = kVar.a;
if (i != -1) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, new BrazeActionReceiver$ActionReceiver$Companion$handleGeofenceEvent$1(i), 2, (Object) null);
return false;
}
int i2 = kVar.b;
List list = kVar.c;
if (1 == i2) {
if (list != null) {
Iterator it = list.iterator();
while (it.hasNext()) {
String requestId = ((j) it.next()).getRequestId();
b.x(requestId, "geofence.requestId");
BrazeInternal.recordGeofenceTransition(context, requestId, GeofenceTransitionType.ENTER);
}
}
} else {
if (2 != i2) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, new BrazeActionReceiver$ActionReceiver$Companion$handleGeofenceEvent$4(i2), 2, (Object) null);
return false;
}
if (list != null) {
Iterator it2 = list.iterator();
while (it2.hasNext()) {
String requestId2 = ((j) it2.next()).getRequestId();
b.x(requestId2, "geofence.requestId");
BrazeInternal.recordGeofenceTransition(context, requestId2, GeofenceTransitionType.EXIT);
}
}
}
return true;
}
}
public ActionReceiver(Context context, Intent intent) {
b.y(context, "applicationContext");
b.y(intent, "intent");
this.applicationContext = context;
this.intent = intent;
this.action = intent.getAction();
}
public final void performWork() {
throw new UnsupportedOperationException("Method not decompiled: com.braze.location.BrazeActionReceiver.ActionReceiver.performWork():void");
}
public final void run() {
try {
performWork();
} catch (Exception e) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.E, e, new BrazeActionReceiver$ActionReceiver$run$1(this));
}
}
}
@Override
public void onReceive(Context context, Intent intent) {
if (intent == null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, BrazeActionReceiver$onReceive$1.INSTANCE, 2, (Object) null);
return;
}
if (context == null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.W, (Throwable) null, BrazeActionReceiver$onReceive$2.INSTANCE, 2, (Object) null);
return;
}
Context applicationContext = context.getApplicationContext();
BroadcastReceiver.PendingResult goAsync = goAsync();
b.x(applicationContext, "applicationContext");
tx.b.X(f1.b, r0.c, null, new BrazeActionReceiver$onReceive$3(new ActionReceiver(applicationContext, intent), goAsync, null), 2);
}
}