流利说-英语 v8.47.26版本的 MD5 值为:0079dce5ff96e6cdbc95c261b3f51387
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.geetest.onelogin.i;
import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import android.webkit.WebViewClient;
import com.geetest.onelogin.config.AuthRegisterViewConfig;
import com.geetest.onelogin.config.OLAlgorithmOption;
import com.geetest.onelogin.config.OneLoginThemeConfig;
import com.geetest.onelogin.listener.AbstractOneLoginListener;
import com.geetest.onelogin.listener.SecurityPhoneListener;
import com.geetest.onelogin.p.f;
import com.geetest.onelogin.t.k;
import com.geetest.onelogin.t.o;
import com.geetest.onelogin.t.r;
import com.geetest.onelogin.t.x;
import com.geetest.onelogin.t.y;
import org.json.JSONObject;
public class c {
private static volatile c f1176b;
private AbstractOneLoginListener c;
private SecurityPhoneListener e;
private int d = 0;
private final com.geetest.onelogin.p.c f1177a = new com.geetest.onelogin.p.c();
private int c(int i) {
if (i < 1000) {
i = 1000;
}
if (i > 15000) {
return 15000;
}
return i;
}
public String l() {
return "2.8.7.1";
}
public void a(String str) {
f.a().b(str);
}
public void a() {
k.b("privatization mode is enabled");
f.a().b(true);
}
public AbstractOneLoginListener b() {
return this.c;
}
public boolean c() {
return (this.d & 1) != 0;
}
public boolean d() {
return (this.d & 2) != 0;
}
public boolean e() {
return (this.d & 4) != 0;
}
public void b(String str) {
if (TextUtils.isEmpty(str)) {
k.d("operator can't be empty");
return;
}
k.b("setOperator : " + str);
this.f1177a.a(str);
}
public void a(String str, String str2, String str3, int i) {
if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2) || TextUtils.isEmpty(str3) || i <= 0) {
k.d("addOpAppInfo failed, params can't be empty");
} else {
this.f1177a.a(str, str2, str3, i);
}
}
public void f() {
this.f1177a.e();
}
public boolean g() {
return this.f1177a.f();
}
public void a(boolean z) {
this.f1177a.b(z);
}
public void b(boolean z) {
this.f1177a.c(z);
}
public boolean h() {
return this.f1177a.g();
}
public void c(boolean z) {
this.f1177a.d(z);
}
public boolean i() {
return this.f1177a.h();
}
public String j() {
return this.f1177a.i();
}
private c() {
}
public static c k() {
if (f1176b == null) {
synchronized (c.class) {
if (f1176b == null) {
f1176b = new c();
}
}
}
return f1176b;
}
public void a(Context context) {
if (context == null) {
k.d("当前传入的 Context 为 null");
} else {
this.f1177a.a(context);
}
}
public void a(Context context, String str) {
if (TextUtils.isEmpty(str)) {
k.d("当前传入的 APP_ID 为 null");
} else {
f.a().a(str);
a(context);
}
}
public void d(boolean z) {
a(z, (String) null);
}
public void a(boolean z, String str) {
int i = z ? 2 : 6;
if (TextUtils.isEmpty(str)) {
str = "Geetest_OneLogin";
}
k.a(i, str);
r.a(z ? 1 : 6);
f.a().a(z);
}
public void a(long j) {
this.f1177a.a(j);
}
public void a(String str, int i) {
if (!d(str)) {
k.d("appId 不能为空");
return;
}
k.b("register timeout=" + i);
a(i, (AbstractOneLoginListener) null);
}
public void c(String str) {
if (!d(str)) {
k.d("appId 不能为空");
} else {
k.b("register");
a(0, (AbstractOneLoginListener) null);
}
}
private boolean d(String str) {
if (!TextUtils.isEmpty(f.a().b())) {
return true;
}
if (TextUtils.isEmpty(str)) {
return false;
}
f.a().a(str);
return true;
}
public void a(String str, int i, AbstractOneLoginListener abstractOneLoginListener) {
if (!d(str)) {
k.d("appId 不能为空");
return;
}
k.b("preGetToken timeout=" + i);
a(i, abstractOneLoginListener);
}
public void a(String str, AbstractOneLoginListener abstractOneLoginListener) {
if (!d(str)) {
k.d("appId 不能为空");
} else {
k.b("preGetToken");
a(0, abstractOneLoginListener);
}
}
private void a(int i, AbstractOneLoginListener abstractOneLoginListener) {
y.a().a("preToken");
y.a().a("PRE_GET_TOKEN:P");
k.b("准备预取号");
if (i != 0) {
int c = c(i);
f.a().a(c);
f.a().b(c);
}
this.c = abstractOneLoginListener;
if (abstractOneLoginListener != null) {
a(1);
} else {
b(14);
}
this.f1177a.a(abstractOneLoginListener == null);
}
public void a(Activity activity, OneLoginThemeConfig oneLoginThemeConfig, AbstractOneLoginListener abstractOneLoginListener) {
k.b("准备取号");
y.a().a("openAuth");
if (abstractOneLoginListener == null) {
k.e("当前传入的 AbstractOneLoginListener 为 null");
return;
}
this.c = abstractOneLoginListener;
a(2);
f.a().a(activity);
f.a().a(oneLoginThemeConfig);
if (oneLoginThemeConfig == null) {
this.f1177a.c();
} else {
this.f1177a.b();
}
}
public void a(JSONObject jSONObject) {
this.f1177a.a(jSONObject);
}
public void requestSecurityPhone(SecurityPhoneListener securityPhoneListener) {
if (securityPhoneListener == null) {
k.e("当前传入的 SecurityPhoneListener 为 null");
return;
}
k.b("准备获取脱敏手机号");
this.e = securityPhoneListener;
a(4);
this.f1177a.a();
}
public void a(JSONObject jSONObject, String str) {
this.f1177a.a(jSONObject, str);
}
public void m() {
k.b("Holder startRequestToken enter ");
this.f1177a.c();
}
public void n() {
k.b("dismissAuthActivity is called");
this.f1177a.s();
}
public void a(String str, AuthRegisterViewConfig authRegisterViewConfig) {
f.a().a(str, authRegisterViewConfig);
}
public void a(WebViewClient webViewClient) {
f.a().a(webViewClient);
}
public boolean o() {
return this.f1177a.j();
}
public boolean p() {
return this.f1177a.k();
}
public boolean q() {
return this.f1177a.n();
}
public boolean r() {
return this.f1177a.m();
}
public boolean s() {
return this.f1177a.o();
}
public boolean t() {
return this.f1177a.p();
}
public boolean u() {
return this.f1177a.l();
}
public String b(Context context) {
return o.b(context);
}
public JSONObject c(Context context) {
return com.geetest.onelogin.t.a.a(context, false);
}
public String v() {
return this.f1177a.r();
}
public String w() {
return this.f1177a.q();
}
public void x() {
com.geetest.onelogin.listener.a.a();
}
public void y() {
this.c = null;
this.e = null;
b(0);
k.b("remove all listeners");
}
public void a(int i) {
this.d |= i;
k.b("setListenerReady, code:" + i + " result:" + this.d);
}
public void b(int i) {
this.d &= i;
k.b("setListenerDisable, code:" + i + " result:" + this.d);
}
public void z() {
y();
this.f1177a.d();
f.a().a((WebViewClient) null);
f.a().l();
f.a().a((Activity) null);
f.n();
x.a().b();
k.b("cancel is called");
k.a();
}
public static void A() {
f1176b = null;
}
public SecurityPhoneListener B() {
return this.e;
}
public void C() {
this.f1177a.t();
}
public void D() {
f.a().l();
}
public void E() {
k.b("requestTokenDelay enter");
this.f1177a.c();
}
public void a(OLAlgorithmOption oLAlgorithmOption) {
if (oLAlgorithmOption == null) {
k.d("algorithm can not be null");
return;
}
k.b("setAlgorithmOption: " + oLAlgorithmOption.name);
f.a().a(oLAlgorithmOption);
}
public void a(int i, int i2) {
k.a("preGetTokenTimeout: " + i + " requestTokenTimeout: " + i2);
f.a().a(c(i));
f.a().b(c(i2));
}
public void F() {
k.b("delete PreResult Cache");
this.f1177a.u();
}
public void a(CharSequence charSequence) {
this.f1177a.a(charSequence);
}
public String G() {
return this.f1177a.v();
}
public void H() {
f.a().a((Activity) null);
}
}