Money Lover v8.14.0.6版本的 MD5 值为:48b9d922212c7ccfd438cdcc183ff396
以下内容为反编译后的 d.java 源代码,内容仅作参考
package uf;
import android.content.Context;
import androidx.lifecycle.l0;
import androidx.lifecycle.w;
import com.zoostudio.moneylover.MoneyApplication;
import com.zoostudio.moneylover.adapter.item.h0;
import java.util.Date;
import java.util.Iterator;
import kn.o;
import kn.v;
import kotlin.coroutines.jvm.internal.f;
import kotlin.coroutines.jvm.internal.l;
import kotlin.jvm.internal.j;
import kotlin.jvm.internal.r;
import org.json.JSONObject;
import rq.k;
import rq.m0;
import wn.p;
public final class d extends l0 {
public static final a f35276e = new a(null);
private final w<JSONObject> f35277d = new w<>();
public static final class a {
private a() {
}
public a(j jVar) {
this();
}
}
@f(c = "com.zoostudio.moneylover.main.birthday.BirthdayWrappedViewModel$getData$1", f = "BirthdayWrappedViewModel.kt", l = {32}, m = "invokeSuspend")
static final class b extends l implements p<m0, on.d<? super v>, Object> {
int f35278a;
final Context f35279b;
final Date f35280c;
final h0 f35281d;
final d f35282e;
b(Context context, Date date, h0 h0Var, d dVar, on.d<? super b> dVar2) {
super(2, dVar2);
this.f35279b = context;
this.f35280c = date;
this.f35281d = h0Var;
this.f35282e = dVar;
}
@Override
public final on.d<v> create(Object obj, on.d<?> dVar) {
return new b(this.f35279b, this.f35280c, this.f35281d, this.f35282e, dVar);
}
@Override
public final Object invoke(m0 m0Var, on.d<? super v> dVar) {
return ((b) create(m0Var, dVar)).invokeSuspend(v.f26314a);
}
@Override
public final Object invokeSuspend(Object obj) {
Object c10;
c10 = pn.d.c();
int i10 = this.f35278a;
if (i10 != 0) {
if (i10 == 1) {
o.b(obj);
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
} else {
o.b(obj);
Context context = this.f35279b;
Date date = this.f35280c;
l9.b defaultCurrency = this.f35281d.getDefaultCurrency();
r.g(defaultCurrency, "getDefaultCurrency(...)");
vf.a aVar = new vf.a(context, date, defaultCurrency, uf.a.a());
this.f35278a = 1;
obj = aVar.f(this);
if (obj == c10) {
return c10;
}
}
JSONObject jSONObject = (JSONObject) obj;
if (jSONObject != null) {
this.f35282e.g().p(jSONObject);
}
return v.f26314a;
}
}
public final w<JSONObject> g() {
return this.f35277d;
}
public final void h(Context context) {
r.h(context, "context");
h0 o10 = MoneyApplication.f11023j.o(context);
Date createdDate = o10.getCreatedDate();
if (createdDate != null) {
k.d(androidx.lifecycle.m0.a(this), null, null, new b(context, createdDate, o10, this, null), 3, null);
} else {
qj.c.n(context);
}
}
public final String i(JSONObject jsData) {
r.h(jsData, "jsData");
StringBuilder sb2 = new StringBuilder();
sb2.append("https://test-birthday.moneylover.me/?");
Iterator<String> keys = jsData.keys();
r.g(keys, "keys(...)");
while (keys.hasNext()) {
String next = keys.next();
sb2.append("&");
sb2.append(next);
sb2.append("=");
sb2.append(jsData.getString(next));
}
String sb3 = sb2.toString();
r.g(sb3, "toString(...)");
return sb3;
}
}