Luno v7.28.0版本的 MD5 值为:08d81b3b88ef7df48c89cb5d56dc11a2
以下内容为反编译后的 r6.java 源代码,内容仅作参考
package com.plaid.internal;
import android.content.Context;
import android.content.SharedPreferences;
import com.mparticle.identity.IdentityHttpResponse;
import com.plaid.internal.f8;
import com.plaid.link.configuration.PlaidEnvironment;
import kotlin.Lazy;
import kotlin.jvm.functions.Function0;
import mdi.sdk.sl2;
import mdi.sdk.un2;
import mdi.sdk.w32;
import mdi.sdk.zj;
public final class r6 implements y0 {
public final Context a;
public final Lazy b;
public final Lazy c;
public static final class a extends sl2 implements Function0<zj<PlaidEnvironment>> {
public a() {
super(0);
}
@Override
public zj<PlaidEnvironment> invoke() {
return zj.e(r6.this.b());
}
}
public static final class b extends sl2 implements Function0<SharedPreferences> {
public b() {
super(0);
}
@Override
public SharedPreferences invoke() {
return r6.this.a.getApplicationContext().getSharedPreferences("plaid_environment_values", 0);
}
}
public r6(Context context) {
Lazy b2;
Lazy b3;
w32.h(context, IdentityHttpResponse.CONTEXT);
this.a = context;
b2 = un2.b(new b());
this.b = b2;
b3 = un2.b(new a());
this.c = b3;
}
@Override
public String a() {
return b().name();
}
public final PlaidEnvironment b() {
SharedPreferences sharedPreferences = (SharedPreferences) this.b.getValue();
w32.g(sharedPreferences, "sharedPrefs");
String json = PlaidEnvironment.SANDBOX.getJson();
w32.h(sharedPreferences, "<this>");
w32.h("plaid_environment", "key");
w32.h(json, "default");
String string = sharedPreferences.getString("plaid_environment", json);
if (string != null) {
json = string;
}
try {
return PlaidEnvironment.INSTANCE.fromJson(json);
} catch (Exception e) {
f8.a.b(f8.a, w32.q("Unknown value was stored in shared prefs: ", json), new Object[]{e}, false, 4, null);
return PlaidEnvironment.SANDBOX;
}
}
public final String c() {
PlaidEnvironment b2 = b();
w32.h(b2, "env");
int i = q6.a[b2.ordinal()];
return i != 1 ? i != 2 ? i != 3 ? "https://production.plaid.com/" : "https://sandbox.plaid.com/" : "https://development.plaid.com/" : "https://production.plaid.com/";
}
}