PhotoRoom v4.8.2版本的 MD5 值为:c40a01bb3380c0f75c0cb6ac6760f295
以下内容为反编译后的 Shake.java 源代码,内容仅作参考
package com.shakebugs.shake;
import android.app.Activity;
import android.app.Application;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import androidx.annotation.Keep;
import com.shakebugs.shake.chat.ChatNotification;
import com.shakebugs.shake.chat.UnreadChatMessagesListener;
import com.shakebugs.shake.internal.a0;
import com.shakebugs.shake.internal.a1;
import com.shakebugs.shake.internal.a4;
import com.shakebugs.shake.internal.b;
import com.shakebugs.shake.internal.b1;
import com.shakebugs.shake.internal.b4;
import com.shakebugs.shake.internal.b7;
import com.shakebugs.shake.internal.c0;
import com.shakebugs.shake.internal.c1;
import com.shakebugs.shake.internal.c2;
import com.shakebugs.shake.internal.c4;
import com.shakebugs.shake.internal.d0;
import com.shakebugs.shake.internal.d1;
import com.shakebugs.shake.internal.d2;
import com.shakebugs.shake.internal.d4;
import com.shakebugs.shake.internal.domain.models.NetworkRequest;
import com.shakebugs.shake.internal.domain.models.NotificationEvent;
import com.shakebugs.shake.internal.domain.models.deviceinfo.DeviceInfo;
import com.shakebugs.shake.internal.e;
import com.shakebugs.shake.internal.e1;
import com.shakebugs.shake.internal.e2;
import com.shakebugs.shake.internal.f1;
import com.shakebugs.shake.internal.f2;
import com.shakebugs.shake.internal.f4;
import com.shakebugs.shake.internal.g1;
import com.shakebugs.shake.internal.g2;
import com.shakebugs.shake.internal.g4;
import com.shakebugs.shake.internal.h1;
import com.shakebugs.shake.internal.h2;
import com.shakebugs.shake.internal.h4;
import com.shakebugs.shake.internal.helpers.BackgroundObserver;
import com.shakebugs.shake.internal.helpers.d;
import com.shakebugs.shake.internal.i0;
import com.shakebugs.shake.internal.i1;
import com.shakebugs.shake.internal.i2;
import com.shakebugs.shake.internal.j0;
import com.shakebugs.shake.internal.j1;
import com.shakebugs.shake.internal.j2;
import com.shakebugs.shake.internal.j4;
import com.shakebugs.shake.internal.k;
import com.shakebugs.shake.internal.k1;
import com.shakebugs.shake.internal.k2;
import com.shakebugs.shake.internal.k4;
import com.shakebugs.shake.internal.k7;
import com.shakebugs.shake.internal.l;
import com.shakebugs.shake.internal.l1;
import com.shakebugs.shake.internal.l4;
import com.shakebugs.shake.internal.m;
import com.shakebugs.shake.internal.m0;
import com.shakebugs.shake.internal.m1;
import com.shakebugs.shake.internal.m2;
import com.shakebugs.shake.internal.m4;
import com.shakebugs.shake.internal.n;
import com.shakebugs.shake.internal.n0;
import com.shakebugs.shake.internal.n1;
import com.shakebugs.shake.internal.n2;
import com.shakebugs.shake.internal.n4;
import com.shakebugs.shake.internal.n7;
import com.shakebugs.shake.internal.n8;
import com.shakebugs.shake.internal.o;
import com.shakebugs.shake.internal.o0;
import com.shakebugs.shake.internal.o1;
import com.shakebugs.shake.internal.o2;
import com.shakebugs.shake.internal.p;
import com.shakebugs.shake.internal.p0;
import com.shakebugs.shake.internal.p1;
import com.shakebugs.shake.internal.p2;
import com.shakebugs.shake.internal.p3;
import com.shakebugs.shake.internal.p4;
import com.shakebugs.shake.internal.q;
import com.shakebugs.shake.internal.q0;
import com.shakebugs.shake.internal.q1;
import com.shakebugs.shake.internal.q4;
import com.shakebugs.shake.internal.r0;
import com.shakebugs.shake.internal.r1;
import com.shakebugs.shake.internal.r2;
import com.shakebugs.shake.internal.r3;
import com.shakebugs.shake.internal.s;
import com.shakebugs.shake.internal.s0;
import com.shakebugs.shake.internal.s1;
import com.shakebugs.shake.internal.s2;
import com.shakebugs.shake.internal.s3;
import com.shakebugs.shake.internal.s7;
import com.shakebugs.shake.internal.shake.recording.c;
import com.shakebugs.shake.internal.shake.recording.f;
import com.shakebugs.shake.internal.shake.recording.g;
import com.shakebugs.shake.internal.shake.recording.h;
import com.shakebugs.shake.internal.shake.theme.ShakeThemeLoader;
import com.shakebugs.shake.internal.t;
import com.shakebugs.shake.internal.t0;
import com.shakebugs.shake.internal.t2;
import com.shakebugs.shake.internal.t3;
import com.shakebugs.shake.internal.t7;
import com.shakebugs.shake.internal.u;
import com.shakebugs.shake.internal.u0;
import com.shakebugs.shake.internal.u2;
import com.shakebugs.shake.internal.u3;
import com.shakebugs.shake.internal.utils.r;
import com.shakebugs.shake.internal.v;
import com.shakebugs.shake.internal.v0;
import com.shakebugs.shake.internal.v2;
import com.shakebugs.shake.internal.w;
import com.shakebugs.shake.internal.w0;
import com.shakebugs.shake.internal.w2;
import com.shakebugs.shake.internal.w3;
import com.shakebugs.shake.internal.x0;
import com.shakebugs.shake.internal.x1;
import com.shakebugs.shake.internal.x2;
import com.shakebugs.shake.internal.x3;
import com.shakebugs.shake.internal.y0;
import com.shakebugs.shake.internal.y2;
import com.shakebugs.shake.internal.y6;
import com.shakebugs.shake.internal.z;
import com.shakebugs.shake.internal.z0;
import com.shakebugs.shake.internal.z1;
import com.shakebugs.shake.internal.z3;
import com.shakebugs.shake.network.NetworkRequestBuilder;
import com.shakebugs.shake.privacy.NetworkRequestsFilter;
import com.shakebugs.shake.privacy.NotificationEventsFilter;
import com.shakebugs.shake.report.ShakeReportData;
import java.net.HttpURLConnection;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.Executors;
@Keep
public final class Shake {
private static final String TAG = "Shake";
public static class a {
static final int[] f36898a;
static {
int[] iArr = new int[ShakeScreen.values().length];
f36898a = iArr;
try {
iArr[ShakeScreen.NEW.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
f36898a[ShakeScreen.HOME.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
f36898a[ShakeScreen.CHAT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
private Shake() {
}
public static void addPrivateView(Activity... activityArr) {
w3 C = w.C();
if (C == null) {
Log.w(TAG, "Can not add private view. Please start Shake SDK before usage.");
return;
}
for (Activity activity : activityArr) {
Window window = activity.getWindow();
if (window != null) {
C.b().a(window.getDecorView());
}
}
}
public static void addPrivateView(View... viewArr) {
w3 C = w.C();
if (C == null) {
Log.w(TAG, "Can not add private view. Please start Shake SDK before usage.");
} else {
C.c().a(viewArr);
}
}
public static void clearMetadata() {
b.a();
}
public static void clearPrivateViews() {
w3 C = w.C();
if (C == null) {
Log.w(TAG, "Can not clear private views. Please start Shake SDK before usage.");
return;
}
C.c().a();
C.b().a();
}
public static ShakeGlobalReportConfiguration getReportConfiguration() {
return com.shakebugs.shake.internal.a.i();
}
public static boolean getShowIntroMessage() {
return com.shakebugs.shake.internal.a.k();
}
public static void handleError(Throwable th2, String str) {
if (com.shakebugs.shake.internal.a.o()) {
o2 j11 = w.j();
if (j11 == null) {
Log.w(TAG, "Can not handle error. Please start Shake SDK before usage.");
} else {
j11.b(th2, str);
}
}
}
public static void handleNetworkRequest(HttpURLConnection httpURLConnection, String str, String str2) {
s3 s11 = w.s();
if (s11 == null) {
Log.w(TAG, "Can not handle network request. Please start Shake SDK before usage.");
} else {
s11.a(httpURLConnection, str, str2);
}
}
@Deprecated
public static void handleTouchEvent(MotionEvent motionEvent, Activity activity) {
q4 Y = w.Y();
if (Y == null) {
Log.w(TAG, "Can not handle touch event. Please start Shake SDK before usage.");
} else {
Y.a(motionEvent, activity);
}
}
private static void insertNetworkRequest(NetworkRequest networkRequest) {
s3 s11 = w.s();
if (s11 == null) {
Log.w(TAG, "Can not insert network request. Please start Shake SDK before usage.");
} else {
s11.a(networkRequest, false);
}
}
public static void insertNetworkRequest(NetworkRequestBuilder networkRequestBuilder) {
s3 s11 = w.s();
if (s11 == null) {
Log.w(TAG, "Can not insert network request. Please start Shake SDK before usage.");
} else {
s11.a(networkRequestBuilder.build(), true);
}
}
private static void insertNotificationEvent(NotificationEvent notificationEvent) {
com.shakebugs.shake.internal.shake.notification.b u11 = w.u();
if (u11 == null) {
Log.w(TAG, "Can not insert notification event. Please start Shake SDK before usage.");
} else {
u11.b(notificationEvent);
}
}
public static void insertNotificationEvent(String str, String str2) {
com.shakebugs.shake.internal.shake.notification.b u11 = w.u();
if (u11 == null) {
Log.w(TAG, "Can not insert notification event. Please start Shake SDK before usage.");
} else {
u11.a(new NotificationEvent(-1, str, str2));
}
}
public static boolean isAskForCrashDescription() {
return com.shakebugs.shake.internal.a.n();
}
public static boolean isCrashReportingEnabled() {
return com.shakebugs.shake.internal.a.o();
}
public static boolean isUserFeedbackEnabled() {
return com.shakebugs.shake.internal.a.u();
}
public static void log(LogLevel logLevel, String str) {
r3 r11 = w.r();
if (r11 == null) {
Log.w(TAG, "Can not insert log event. Please start Shake SDK before usage.");
} else {
r11.a(logLevel, str);
}
}
public static void onPrepareData(ShakeReportData shakeReportData) {
b.a(shakeReportData);
}
public static void registerUser(String str) {
if (com.shakebugs.shake.internal.a.m()) {
return;
}
s1 a02 = w.a0();
if (a02 == null) {
Log.w(TAG, "Cannot register user. Please start Shake SDK before usage.");
} else {
a02.a(new n1.a(str));
}
}
public static void removePrivateView(Activity... activityArr) {
w3 C = w.C();
if (C == null) {
Log.w(TAG, "Can not remove private view. Please start Shake SDK before usage.");
return;
}
for (Activity activity : activityArr) {
Window window = activity.getWindow();
if (window != null) {
C.b().b(window.getDecorView());
}
}
}
public static void removePrivateView(View... viewArr) {
w3 C = w.C();
if (C == null) {
Log.w(TAG, "Can not remove private view. Please start Shake SDK before usage.");
} else {
C.c().b(viewArr);
}
}
public static void setAskForCrashDescription(boolean z11) {
com.shakebugs.shake.internal.a.a(z11);
}
public static void setCrashReportingEnabled(boolean z11) {
com.shakebugs.shake.internal.a.b(z11);
}
public static void setMetadata(String str, String str2) {
b.a(str, str2);
}
public static void setNetworkRequestsFilter(NetworkRequestsFilter networkRequestsFilter) {
w3 C = w.C();
if (C == null) {
Log.w(TAG, "Can not set network requests filter. Please start Shake SDK before usage.");
} else {
C.a().a(networkRequestsFilter);
}
}
public static void setNotificationEventsFilter(NotificationEventsFilter notificationEventsFilter) {
w3 C = w.C();
if (C == null) {
Log.w(TAG, "Can not set notification events filter. Please start Shake SDK before usage.");
} else {
C.a().a(notificationEventsFilter);
}
}
public static void setPushNotificationsToken(String str) {
if (com.shakebugs.shake.internal.a.m()) {
return;
}
x0 Z = w.Z();
if (Z == null) {
Log.w(TAG, "Cannot update firebase token. Please start Shake SDK before usage.");
} else {
Z.a2(new x0.a(str));
}
}
private static void setShakeInfo(ShakeInfo shakeInfo) {
com.shakebugs.shake.internal.a.a(shakeInfo);
}
public static void setShowIntroMessage(boolean z11) {
com.shakebugs.shake.internal.a.i(z11);
}
public static void setUnreadChatMessagesListener(UnreadChatMessagesListener unreadChatMessagesListener) {
com.shakebugs.shake.internal.a.b(unreadChatMessagesListener);
}
public static void setUserFeedbackEnabled(boolean z11) {
com.shakebugs.shake.internal.a.j(z11);
}
public static void show() {
show(ShakeScreen.NEW);
}
public static void show(ShakeScreen shakeScreen) {
if (!com.shakebugs.shake.internal.a.u() || com.shakebugs.shake.internal.a.q() || com.shakebugs.shake.internal.a.r()) {
return;
}
y2 L = w.L();
if (L == null) {
Log.w(TAG, "Can not show Shake screen. Please start Shake SDK before usage.");
return;
}
int i11 = a.f36898a[shakeScreen.ordinal()];
if (i11 == 1) {
L.a(com.shakebugs.shake.internal.a.i().isScreenshotIncluded(), true, true);
} else if (i11 == 2) {
L.a();
} else if (i11 != 3) {
} else {
L.b();
}
}
public static void showChatNotification(ChatNotification chatNotification) {
y0 O = w.O();
if (O == null) {
Log.w(TAG, "Cannot show notification. Please start Shake SDK before usage.");
} else {
O.a(new y0.a(chatNotification));
}
}
public static void silentReport(String str, ShakeReportData shakeReportData, ShakeReportConfiguration shakeReportConfiguration) {
if (com.shakebugs.shake.internal.a.u()) {
n4 P = w.P();
if (P == null) {
Log.w(TAG, "Can not send silent report. Please start Shake SDK before usage.");
} else {
P.a(str, shakeReportData, b.c(), shakeReportConfiguration);
}
}
}
public static void start(Activity activity, String str, String str2) {
if (activity == null) {
Log.w(TAG, "Shake not started. Activity is null.");
} else {
start(activity.getApplication(), str, str2);
}
}
public static void start(Application application, String str, String str2) {
if (application == null) {
Log.w(TAG, "Shake not started. Application is null.");
} else if (com.shakebugs.shake.internal.utils.w.b(str)) {
Log.w(TAG, "Shake not started. Client secret is empty.");
} else if (com.shakebugs.shake.internal.utils.w.b(str2)) {
Log.w(TAG, "Shake not started. Client id is empty.");
} else if (com.shakebugs.shake.internal.a.p()) {
Log.i(TAG, "Shake already started. Skipping the start method.");
} else {
Log.i(TAG, "Shake started.");
if (com.shakebugs.shake.internal.a.j() == null) {
ShakeInfo shakeInfo = new ShakeInfo();
shakeInfo.setPlatform("Android");
shakeInfo.setVersionName("16.2.2");
shakeInfo.setVersionCode(String.valueOf(1602021599));
com.shakebugs.shake.internal.a.a(shakeInfo);
}
d dVar = new d();
w.a(new c0(d0.a(application), dVar));
a0 a0Var = new a0(application, new z(application, new DeviceInfo(application)));
w.a(a0Var);
com.shakebugs.shake.internal.a.c(true);
com.shakebugs.shake.internal.a.a(application);
com.shakebugs.shake.internal.a.b(application.getPackageName());
com.shakebugs.shake.internal.a.c(str);
com.shakebugs.shake.internal.a.d(str2);
com.shakebugs.shake.internal.a.d(r.a(application, "is_archived"));
if (r.d(application, "app_uuid").equals("")) {
r.a(application, "app_uuid", UUID.randomUUID().toString());
}
r2 r2Var = new r2(application);
r2Var.a();
z1 z1Var = new z1();
w.a(z1Var);
p2 p2Var = new p2();
w.a(p2Var);
c4 c4Var = new c4();
a4.f36933b = c4Var;
v2 v2Var = new v2();
w.a(v2Var);
k4 k4Var = new k4();
w.a(k4Var);
w.a(new ShakeThemeLoader(application));
l lVar = new l(application, new k());
w.a(lVar);
e b11 = v.b();
com.shakebugs.shake.internal.d a11 = v.a();
m mVar = new m(z1Var);
w.a(mVar);
b4 b4Var = new b4(z1Var);
w.a(b4Var);
n nVar = new n();
w.a(new b7());
w.a(new y6());
w.a(new k7());
w.a(new n7());
t7 t7Var = new t7(application);
w.a(t7Var);
w.a(new s7(application));
q qVar = new q(application);
o oVar = new o(application);
p pVar = new p(application);
com.shakebugs.shake.internal.r rVar = new com.shakebugs.shake.internal.r(application);
t tVar = new t(lVar, b11, mVar);
w.a(tVar);
s sVar = new s(a11, b11, pVar, oVar);
w.a(sVar);
u uVar = new u(lVar, b11, nVar, rVar);
w.a(uVar);
a4 a4Var = new a4(application);
w.a(a4Var);
y0 y0Var = new y0(application, uVar);
n0 n0Var = new n0(application);
w.a(new o0(application));
d1 d1Var = new d1(qVar, tVar, uVar, rVar, y0Var);
w.a(d1Var);
i1 i1Var = new i1(a4Var);
w.a(i1Var);
w.a(new j1(tVar, i1Var, d1Var));
e1 e1Var = new e1(d1Var, tVar);
h2 h2Var = new h2("https://ws.shakebugs.com/", new i2(d1Var), new f2(d1Var));
p0 p0Var = new p0(h2Var, uVar);
q0 q0Var = new q0(h2Var, uVar);
w.a(new m1(uVar));
p1 p1Var = new p1(uVar, tVar, qVar, q0Var, n0Var);
w.a(p1Var);
o1 o1Var = new o1(uVar, p0Var, d1Var);
w.a(o1Var);
n1 n1Var = new n1(uVar, p1Var, o1Var);
w.a(n1Var);
q1 q1Var = new q1(uVar, o1Var);
w.a(q1Var);
r1 r1Var = new r1(uVar, o1Var);
w.a(r1Var);
s1 s1Var = new s1(n1Var, r1Var, q1Var, o1Var, p1Var);
w.a(s1Var);
w.a(new x0(rVar, o1Var));
w.a(new v0(tVar, uVar));
w.a(new z0(tVar, uVar));
w.a(new w0(tVar, uVar));
w.a(new r0(tVar, uVar));
w.a(new l1(uVar));
w.a(new t0(tVar, uVar));
w.a(new u0(tVar, uVar));
w.a(new g1(tVar, uVar));
w.a(new h1(tVar));
w.a(new f1(a4Var, b4Var, c4Var));
w.a(new c1(dVar));
w.a(new b1(application, dVar));
w.a(new a1(application, t7Var));
j0 j0Var = new j0(sVar, s1Var);
w.a(j0Var);
i0 i0Var = new i0(sVar, j0Var);
w.a(i0Var);
s0 s0Var = new s0(tVar);
w.a(s0Var);
com.shakebugs.shake.internal.a.g(r.a(application, "app_is_registered"));
if (!com.shakebugs.shake.internal.a.s()) {
i0Var.a2((px.f1) null);
}
w3 w3Var = new w3();
w.a(w3Var);
u3 u3Var = new u3();
w.a(u3Var);
q4 q4Var = new q4(lVar, p2Var, w3Var);
w.a(q4Var);
p4 p4Var = new p4(application, q4Var);
p4Var.c();
w.a(p4Var);
s3 s3Var = new s3(lVar, p2Var, w3Var, new t3(), u3Var);
w.a(s3Var);
x1 x1Var = new x1();
w.a(x1Var);
com.shakebugs.shake.internal.shake.notification.b bVar = new com.shakebugs.shake.internal.shake.notification.b(lVar, x1Var, p2Var, w3Var, Executors.newCachedThreadPool(), u3Var, new com.shakebugs.shake.internal.shake.notification.a(x1Var));
w.a(bVar);
r3 r3Var = new r3(lVar, x1Var, p2Var, Executors.newCachedThreadPool());
w.a(r3Var);
p3 p3Var = new p3(lVar);
w.a(p3Var);
m4 m4Var = new m4(p2Var, lVar, Executors.newCachedThreadPool());
w.a(m4Var);
m4Var.a();
l4 l4Var = new l4(m4Var, new BackgroundObserver());
l4Var.c();
w.a(l4Var);
c2 c2Var = new c2(lVar, p2Var);
w.a(c2Var);
d2 d2Var = new d2(application, c2Var);
d2Var.c();
w.a(d2Var);
g4 g4Var = new g4();
w.a(g4Var);
x3 x3Var = new x3(application.getApplicationContext(), w3Var);
w.a(x3Var);
e2 e2Var = new e2(application, p2Var);
w.a(e2Var);
e2Var.a();
j4 j4Var = new j4(application, k4Var);
w.a(j4Var);
j4Var.c();
DeviceInfo deviceInfo = new DeviceInfo(application);
ShakeInfo j11 = com.shakebugs.shake.internal.a.j();
h hVar = new h(r2Var.c());
h hVar2 = new h(r2Var.e());
com.shakebugs.shake.internal.shake.recording.d dVar2 = new com.shakebugs.shake.internal.shake.recording.d(hVar);
c cVar = new c(application, p2Var, hVar2, hVar, new g(), new g());
w.a(cVar);
new f(application, cVar, p2Var, new BackgroundObserver()).c();
u2 u2Var = new u2(r2Var, x3Var);
new g2(new BackgroundObserver(), tVar, uVar).c();
f4 f4Var = new f4(p2Var, j11, deviceInfo, e2Var, new z3(m4Var, q4Var, s3Var, c2Var, r3Var, p3Var, bVar, p2Var), k4Var, g4Var, uVar);
x2 x2Var = new x2(k4Var, u2Var, cVar, f4Var);
w.a(x2Var);
y2 y2Var = new y2(k4Var, p2Var, q4Var, cVar, v2Var, x2Var, i0Var, uVar);
w.a(y2Var);
w2 w2Var = new w2(application, k4Var, p2Var, cVar, y2Var, com.shakebugs.shake.internal.a.i());
w.a(w2Var);
w.a(new m0(p2Var, uVar, y2Var));
w.a(new y0(application, uVar));
y2Var.a(w2Var);
h4 h4Var = new h4(q4Var, a4Var);
w.a(h4Var);
s2 s2Var = new s2(p2Var, v2Var, w2Var);
w.a(new n4(k4Var, p2Var, a4Var, s2Var, x2Var, cVar));
n2 n2Var = new n2(application, new d4());
k2 k2Var = new k2(n2Var, dVar2, p2Var, s2Var, y2Var, h4Var);
w.a(k2Var);
o2 o2Var = new o2(application, k4Var, p2Var, q4Var, u2Var, f4Var, a4Var, new j2(), new m2(application), n2Var, k2Var, cVar);
o2Var.a();
o2Var.b();
w.a(o2Var);
s2Var.a(k2Var);
t2 t2Var = new t2(application, s2Var);
w.a(t2Var);
t2Var.c();
w.a(new n8(application, r2Var));
w.a(new androidx.lifecycle.g1());
w.a(new k1(x2Var, v2Var));
com.shakebugs.shake.internal.utils.p.d(application);
a0Var.b();
a4Var.f();
s0Var.a2((px.f1) null);
e1Var.a2((px.f1) null);
p0Var.a2((px.f1) null);
s1Var.a();
}
}
private static void startFromWrapper(Activity activity, String str, String str2) {
if (com.shakebugs.shake.internal.a.p()) {
return;
}
start(activity, str, str2);
t2 p11 = w.p();
if (p11 != null) {
p11.onActivityStarted(activity);
p11.onActivityResumed(activity);
}
d2 a11 = w.a();
if (a11 != null) {
a11.onActivityStarted(activity);
a11.onActivityResumed(activity);
}
j4 E = w.E();
if (E != null) {
E.onActivityStarted(activity);
E.onActivityResumed(activity);
}
p4 X = w.X();
if (X != null) {
X.onActivityStarted(activity);
X.onActivityResumed(activity);
}
k2 i11 = w.i();
if (i11 != null) {
i11.onActivityStarted(activity);
i11.onActivityResumed(activity);
}
}
public static void unregisterUser() {
s1 a02 = w.a0();
if (a02 == null) {
Log.w(TAG, "Cannot unregister user. Please start Shake SDK before usage.");
} else {
a02.b();
}
}
public static void updateUserId(String str) {
if (com.shakebugs.shake.internal.a.m()) {
return;
}
s1 a02 = w.a0();
if (a02 == null) {
Log.w(TAG, "Cannot update user id. Please start Shake SDK before usage.");
} else {
a02.a(new q1.a(str));
}
}
public static void updateUserMetadata(Map<String, String> map) {
if (com.shakebugs.shake.internal.a.m()) {
return;
}
s1 a02 = w.a0();
if (a02 == null) {
Log.w(TAG, "Cannot update user metadata. Please start Shake SDK before usage.");
} else {
a02.a(new r1.a(map));
}
}
}