正在查看: Uptodown App Store v6.80 应用的 MyFirebaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Uptodown App Store v6.80 应用的 MyFirebaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uptodown.gcm;
import N1.k;
import R2.n;
import R2.s;
import android.app.Activity;
import android.content.Context;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.S;
import com.uptodown.activities.AbstractC0740a;
import com.uptodown.activities.preferences.a;
import d3.p;
import g2.C0973y;
import java.util.Map;
import kotlin.coroutines.jvm.internal.l;
import kotlin.jvm.internal.AbstractC1009g;
import kotlin.jvm.internal.B;
import kotlin.jvm.internal.m;
import o3.E0;
import o3.J;
import o3.K;
import o3.L;
import o3.Y;
import o3.g;
import u2.C1233m;
public final class MyFirebaseMessagingService extends FirebaseMessagingService {
public static final a h = new a(null);
public static final class a {
public a(AbstractC1009g abstractC1009g) {
this();
}
private a() {
}
}
static final class b extends l implements p {
int a;
final long b;
final String c;
final MyFirebaseMessagingService d;
final String e;
final String f;
static final class a extends l implements p {
int a;
final String b;
final String c;
final long d;
a(String str, String str2, long j, V2.d dVar) {
super(2, dVar);
this.b = str;
this.c = str2;
this.d = j;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return new a(this.b, this.c, this.d, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
W2.b.c();
if (this.a != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
n.b(obj);
Object g = k.g.g();
if (g != null && (g instanceof AbstractC0740a)) {
((AbstractC0740a) g).X1(this.b, this.c, this.d);
}
return s.a;
}
@Override
public final Object invoke(J j, V2.d dVar) {
return ((a) create(j, dVar)).invokeSuspend(s.a);
}
}
b(long j, String str, MyFirebaseMessagingService myFirebaseMessagingService, String str2, String str3, V2.d dVar) {
super(2, dVar);
this.b = j;
this.c = str;
this.d = myFirebaseMessagingService;
this.e = str2;
this.f = str3;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return new b(this.b, this.c, this.d, this.e, this.f, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
Object c = W2.b.c();
int i = this.a;
if (i == 0) {
n.b(obj);
C0973y c0973y = new C0973y();
c0973y.j(this.b);
c0973y.m(this.c);
Context applicationContext = this.d.getApplicationContext();
m.d(applicationContext, "getApplicationContext(...)");
c0973y.n(applicationContext);
E0 c4 = Y.c();
a aVar = new a(this.e, this.f, this.b, null);
this.a = 1;
if (g.g(c4, aVar, this) == c) {
return c;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
n.b(obj);
}
return s.a;
}
@Override
public final Object invoke(J j, V2.d dVar) {
return ((b) create(j, dVar)).invokeSuspend(s.a);
}
}
static final class c extends l implements p {
int a;
final String c;
final String d;
final B e;
final String f;
c(String str, String str2, B b, String str3, V2.d dVar) {
super(2, dVar);
this.c = str;
this.d = str2;
this.e = b;
this.f = str3;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return MyFirebaseMessagingService.this.new c(this.c, this.d, this.e, this.f, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
Object c = W2.b.c();
int i = this.a;
if (i == 0) {
n.b(obj);
MyFirebaseMessagingService myFirebaseMessagingService = MyFirebaseMessagingService.this;
String str = this.c;
String str2 = this.d;
long j = this.e.a;
String str3 = this.f;
this.a = 1;
if (myFirebaseMessagingService.v(str, str2, j, str3, this) == c) {
return c;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
n.b(obj);
}
return s.a;
}
@Override
public final Object invoke(J j, V2.d dVar) {
return ((c) create(j, dVar)).invokeSuspend(s.a);
}
}
static final class d extends l implements p {
int a;
final Activity b;
final String c;
final String d;
d(Activity activity, String str, String str2, V2.d dVar) {
super(2, dVar);
this.b = activity;
this.c = str;
this.d = str2;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return new d(this.b, this.c, this.d, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
W2.b.c();
if (this.a != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
n.b(obj);
((AbstractC0740a) this.b).Z1(this.c, this.d);
return s.a;
}
@Override
public final Object invoke(J j, V2.d dVar) {
return ((d) create(j, dVar)).invokeSuspend(s.a);
}
}
public final Object v(String str, String str2, long j, String str3, V2.d dVar) {
Object g = g.g(Y.b(), new b(j, str3, this, str, str2, null), dVar);
return g == W2.b.c() ? g : s.a;
}
private final void w(String str) {
a.C0191a c0191a = com.uptodown.activities.preferences.a.a;
Context applicationContext = getApplicationContext();
m.d(applicationContext, "getApplicationContext(...)");
c0191a.z0(applicationContext, str);
}
@Override
public void p(S remoteMessage) {
m.e(remoteMessage, "remoteMessage");
Map c4 = remoteMessage.c();
m.d(c4, "getData(...)");
if (c4.isEmpty()) {
return;
}
String str = (String) remoteMessage.c().get("appId");
if (str == null) {
String str2 = (String) remoteMessage.c().get("campaign");
if (str2 == null || !m3.m.p(str2, "BlackFriday", true) || remoteMessage.g() == null) {
return;
}
S.b g = remoteMessage.g();
m.b(g);
String a4 = g.a();
S.b g4 = remoteMessage.g();
m.b(g4);
String c5 = g4.c();
Activity g5 = k.g.g();
if (g5 == null || !(g5 instanceof AbstractC0740a)) {
return;
}
g.d(K.a(Y.c()), (V2.g) null, (L) null, new d(g5, c5, a4, null), 3, (Object) null);
return;
}
B b4 = new B();
b4.a = -1L;
try {
b4.a = Long.parseLong(str);
} catch (NumberFormatException e) {
e.printStackTrace();
}
if (b4.a > 0) {
String str3 = (String) remoteMessage.c().get("packageName");
if (new C1233m().v(str3, getApplicationContext()) || remoteMessage.g() == null) {
return;
}
S.b g6 = remoteMessage.g();
m.b(g6);
String a5 = g6.a();
S.b g7 = remoteMessage.g();
m.b(g7);
g.d(K.a(Y.b()), (V2.g) null, (L) null, new c(g7.c(), a5, b4, str3, null), 3, (Object) null);
}
}
@Override
public void r(String token) {
m.e(token, "token");
w(token);
}
}