- 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
38 lines
1.0 KiB
Java
38 lines
1.0 KiB
Java
package com.ironsource.sdk.controller;
|
|
|
|
import android.webkit.JavascriptInterface;
|
|
import com.ironsource.sdk.controller.v;
|
|
import com.ironsource.sdk.utils.Logger;
|
|
import java.lang.reflect.Method;
|
|
import java.security.AccessControlException;
|
|
|
|
/* loaded from: classes4.dex */
|
|
class b {
|
|
private static final String b = "b";
|
|
private final v.r a;
|
|
|
|
public b(v.r rVar) {
|
|
this.a = rVar;
|
|
}
|
|
|
|
public void a(String str) {
|
|
v.r rVar = this.a;
|
|
if (rVar != null) {
|
|
rVar.c(str);
|
|
}
|
|
}
|
|
|
|
public synchronized void a(String str, String str2) throws Exception {
|
|
if (this.a == null) {
|
|
Logger.e(b, "!!! nativeAPI == null !!!");
|
|
return;
|
|
}
|
|
Method declaredMethod = v.r.class.getDeclaredMethod(str, String.class);
|
|
if (declaredMethod.isAnnotationPresent(JavascriptInterface.class)) {
|
|
declaredMethod.invoke(this.a, str2);
|
|
return;
|
|
}
|
|
throw new AccessControlException("Trying to access a private function: " + str);
|
|
}
|
|
}
|