正在查看: Cashalo v2.25.0.0 应用的 EmpowerMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cashalo v2.25.0.0 应用的 EmpowerMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package finance.empower.android.app.push;
import android.app.Service;
import android.content.Context;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.iterable.iterableapi.IterableFirebaseMessagingService;
import dagger.android.AndroidInjection;
import finance.empower.android.data.service.AuthService;
import finance.empower.android.data.service.NotificationService;
import finance.empower.android.reactivex.SingleExtKt;
import java.util.Map;
import javax.inject.Inject;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\b\u0007\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\u0016\u001a\u00020\u0017H\u0016J\u0010\u0010\u0018\u001a\u00020\u00172\u0006\u0010\u0019\u001a\u00020\u001aH\u0016J\u0010\u0010\u001b\u001a\u00020\u00172\u0006\u0010\u001c\u001a\u00020\u001dH\u0016R$\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR$\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0003\u001a\u00020\n@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR$\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0003\u001a\u00020\u0010@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015¨\u0006\u001e"}, d2 = {"Lfinance/empower/android/app/push/EmpowerMessagingService;", "Lcom/google/firebase/messaging/FirebaseMessagingService;", "()V", "<set-?>", "Lfinance/empower/android/data/service/AuthService;", "authService", "getAuthService", "()Lfinance/empower/android/data/service/AuthService;", "setAuthService", "(Lfinance/empower/android/data/service/AuthService;)V", "Lfinance/empower/android/data/service/NotificationService;", "notificationService", "getNotificationService", "()Lfinance/empower/android/data/service/NotificationService;", "setNotificationService", "(Lfinance/empower/android/data/service/NotificationService;)V", "Lfinance/empower/android/app/push/PushNotificationManager;", "pushNotificationManager", "getPushNotificationManager", "()Lfinance/empower/android/app/push/PushNotificationManager;", "setPushNotificationManager", "(Lfinance/empower/android/app/push/PushNotificationManager;)V", "onCreate", "", "onMessageReceived", "remoteMessage", "Lcom/google/firebase/messaging/RemoteMessage;", "onNewToken", "token", "", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class EmpowerMessagingService extends FirebaseMessagingService {
public static final int $stable = 8;
public AuthService authService;
public NotificationService notificationService;
public PushNotificationManager pushNotificationManager;
public final PushNotificationManager getPushNotificationManager() {
PushNotificationManager pushNotificationManager = this.pushNotificationManager;
if (pushNotificationManager != null) {
return pushNotificationManager;
}
Intrinsics.throwUninitializedPropertyAccessException("pushNotificationManager");
return null;
}
@Inject
public final void setPushNotificationManager(PushNotificationManager pushNotificationManager) {
Intrinsics.checkNotNullParameter(pushNotificationManager, "<set-?>");
this.pushNotificationManager = pushNotificationManager;
}
public final AuthService getAuthService() {
AuthService authService = this.authService;
if (authService != null) {
return authService;
}
Intrinsics.throwUninitializedPropertyAccessException("authService");
return null;
}
@Inject
public final void setAuthService(AuthService authService) {
Intrinsics.checkNotNullParameter(authService, "<set-?>");
this.authService = authService;
}
public final NotificationService getNotificationService() {
NotificationService notificationService = this.notificationService;
if (notificationService != null) {
return notificationService;
}
Intrinsics.throwUninitializedPropertyAccessException("notificationService");
return null;
}
@Inject
public final void setNotificationService(NotificationService notificationService) {
Intrinsics.checkNotNullParameter(notificationService, "<set-?>");
this.notificationService = notificationService;
}
public void onCreate() {
super.onCreate();
AndroidInjection.inject((Service) this);
}
public void onMessageReceived(RemoteMessage remoteMessage) {
RemoteMessage.Notification notification;
Intrinsics.checkNotNullParameter(remoteMessage, "remoteMessage");
if (IterableFirebaseMessagingService.handleMessageReceived((Context) this, remoteMessage) || (notification = remoteMessage.getNotification()) == null) {
return;
}
PushNotificationManager pushNotificationManager = getPushNotificationManager();
Map<String, String> data = remoteMessage.getData();
Intrinsics.checkNotNullExpressionValue(data, "getData(...)");
pushNotificationManager.sendNotificationMessage(notification, data);
}
public void onNewToken(String token) {
Intrinsics.checkNotNullParameter(token, "token");
IterableFirebaseMessagingService.handleTokenRefresh();
if (getAuthService().isAuthenticated()) {
SingleExtKt.subscribeAndForget(getNotificationService().registerDevicePushToken(token));
}
}
}