- 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
245 lines
9.3 KiB
Java
245 lines
9.3 KiB
Java
package com.ironsource.sdk.controller;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.net.Uri;
|
|
import android.text.TextUtils;
|
|
import com.ironsource.i9;
|
|
import com.ironsource.ln;
|
|
import com.ironsource.mn;
|
|
import com.ironsource.sdk.controller.OpenUrlActivity;
|
|
import com.ironsource.sdk.controller.k;
|
|
import com.ironsource.v8;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public interface p {
|
|
|
|
public static final class a implements p {
|
|
private b a;
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public a(String method, mn openUrlConfigurations) {
|
|
this(method, openUrlConfigurations, new k.b(), new k.a());
|
|
Intrinsics.checkNotNullParameter(method, "method");
|
|
Intrinsics.checkNotNullParameter(openUrlConfigurations, "openUrlConfigurations");
|
|
}
|
|
|
|
public a(String method, mn openUrlConfigurations, com.ironsource.h activityIntentFactory, com.ironsource.g actionIntentFactory) {
|
|
b aVar;
|
|
Intrinsics.checkNotNullParameter(method, "method");
|
|
Intrinsics.checkNotNullParameter(openUrlConfigurations, "openUrlConfigurations");
|
|
Intrinsics.checkNotNullParameter(activityIntentFactory, "activityIntentFactory");
|
|
Intrinsics.checkNotNullParameter(actionIntentFactory, "actionIntentFactory");
|
|
int hashCode = method.hashCode();
|
|
if (hashCode == -1455867212) {
|
|
if (method.equals(v8.h.J)) {
|
|
aVar = new b.a(openUrlConfigurations, actionIntentFactory);
|
|
}
|
|
aVar = new b.C0183b(method);
|
|
} else if (hashCode != 109770977) {
|
|
if (hashCode == 1224424441 && method.equals(v8.h.K)) {
|
|
aVar = new b.d(openUrlConfigurations, activityIntentFactory);
|
|
}
|
|
aVar = new b.C0183b(method);
|
|
} else {
|
|
if (method.equals(v8.h.U)) {
|
|
aVar = new b.c(openUrlConfigurations, activityIntentFactory);
|
|
}
|
|
aVar = new b.C0183b(method);
|
|
}
|
|
this.a = aVar;
|
|
}
|
|
|
|
@Override // com.ironsource.sdk.controller.p
|
|
public c a(Context context, ln openUrl) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(openUrl, "openUrl");
|
|
try {
|
|
return this.a.a(context, openUrl);
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
String message = e.getMessage();
|
|
String message2 = (message == null || message.length() == 0) ? "" : e.getMessage();
|
|
Intrinsics.checkNotNull(message2);
|
|
return new c.a(message2);
|
|
}
|
|
}
|
|
}
|
|
|
|
public interface b {
|
|
|
|
@SourceDebugExtension({"SMAP\nOpenUrlService.kt\nKotlin\n*S Kotlin\n*F\n+ 1 OpenUrlService.kt\ncom/ironsource/sdk/controller/OpenUrlService$OpenUrlStrategy$ExternalBrowser\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,158:1\n1#2:159\n*E\n"})
|
|
public static final class a implements b {
|
|
private final mn a;
|
|
private final com.ironsource.g b;
|
|
|
|
public a(mn configurations, com.ironsource.g intentFactory) {
|
|
Intrinsics.checkNotNullParameter(configurations, "configurations");
|
|
Intrinsics.checkNotNullParameter(intentFactory, "intentFactory");
|
|
this.a = configurations;
|
|
this.b = intentFactory;
|
|
}
|
|
|
|
@Override // com.ironsource.sdk.controller.p.b
|
|
public c a(Context context, ln openUrl) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(openUrl, "openUrl");
|
|
if (TextUtils.isEmpty(openUrl.d())) {
|
|
return new c.a("url is empty");
|
|
}
|
|
Intent a = this.b.a();
|
|
a.setData(Uri.parse(openUrl.d()));
|
|
String c = openUrl.c();
|
|
if (c != null && c.length() != 0) {
|
|
a = a.setPackage(openUrl.c());
|
|
Intrinsics.checkNotNullExpressionValue(a, "this.setPackage(openUrl.packageName)");
|
|
}
|
|
if (!(context instanceof Activity)) {
|
|
a = a.addFlags(this.a.c());
|
|
}
|
|
Intrinsics.checkNotNullExpressionValue(a, "intentFactory\n …ations.flags) else this }");
|
|
context.startActivity(a);
|
|
return c.b.a;
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.ironsource.sdk.controller.p$b$b, reason: collision with other inner class name */
|
|
public static final class C0183b implements b {
|
|
private final String a;
|
|
|
|
public C0183b(String method) {
|
|
Intrinsics.checkNotNullParameter(method, "method");
|
|
this.a = method;
|
|
}
|
|
|
|
@Override // com.ironsource.sdk.controller.p.b
|
|
public c a(Context context, ln openUrl) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(openUrl, "openUrl");
|
|
return new c.a("method " + this.a + " is unsupported");
|
|
}
|
|
}
|
|
|
|
public static final class c implements b {
|
|
private final mn a;
|
|
private final com.ironsource.h b;
|
|
|
|
public c(mn configurations, com.ironsource.h intentFactory) {
|
|
Intrinsics.checkNotNullParameter(configurations, "configurations");
|
|
Intrinsics.checkNotNullParameter(intentFactory, "intentFactory");
|
|
this.a = configurations;
|
|
this.b = intentFactory;
|
|
}
|
|
|
|
@Override // com.ironsource.sdk.controller.p.b
|
|
public c a(Context context, ln openUrl) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(openUrl, "openUrl");
|
|
context.startActivity(new OpenUrlActivity.e(this.b).a(this.a.c()).a(openUrl.d()).b(true).c(true).a(context));
|
|
return c.b.a;
|
|
}
|
|
}
|
|
|
|
public static final class d implements b {
|
|
private final mn a;
|
|
private final com.ironsource.h b;
|
|
|
|
public d(mn configurations, com.ironsource.h intentFactory) {
|
|
Intrinsics.checkNotNullParameter(configurations, "configurations");
|
|
Intrinsics.checkNotNullParameter(intentFactory, "intentFactory");
|
|
this.a = configurations;
|
|
this.b = intentFactory;
|
|
}
|
|
|
|
@Override // com.ironsource.sdk.controller.p.b
|
|
public c a(Context context, ln openUrl) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(openUrl, "openUrl");
|
|
context.startActivity(new OpenUrlActivity.e(this.b).a(this.a.c()).a(openUrl.d()).a(this.a.d()).b(true).a(context));
|
|
return c.b.a;
|
|
}
|
|
}
|
|
|
|
c a(Context context, ln lnVar);
|
|
}
|
|
|
|
public static abstract class c {
|
|
|
|
public static final class a extends c {
|
|
private final String a;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public a() {
|
|
this(null, 1, 0 == true ? 1 : 0);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public a(String errorMessage) {
|
|
super(null);
|
|
Intrinsics.checkNotNullParameter(errorMessage, "errorMessage");
|
|
this.a = errorMessage;
|
|
}
|
|
|
|
public /* synthetic */ a(String str, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? "" : str);
|
|
}
|
|
|
|
public static /* synthetic */ a a(a aVar, String str, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = aVar.a;
|
|
}
|
|
return aVar.a(str);
|
|
}
|
|
|
|
public final a a(String errorMessage) {
|
|
Intrinsics.checkNotNullParameter(errorMessage, "errorMessage");
|
|
return new a(errorMessage);
|
|
}
|
|
|
|
public final String a() {
|
|
return this.a;
|
|
}
|
|
|
|
public final String b() {
|
|
return this.a;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
return (obj instanceof a) && Intrinsics.areEqual(this.a, ((a) obj).a);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return this.a.hashCode();
|
|
}
|
|
|
|
public String toString() {
|
|
return "Error(errorMessage=" + this.a + ')';
|
|
}
|
|
}
|
|
|
|
public static final class b extends c {
|
|
public static final b a = new b();
|
|
|
|
private b() {
|
|
super(null);
|
|
}
|
|
}
|
|
|
|
private c() {
|
|
}
|
|
|
|
public /* synthetic */ c(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
c a(Context context, ln lnVar);
|
|
}
|