工作空间 v3.6.5.2版本的 MD5 值为:58e65af156c65a63bf64ed2e64960853
以下内容为反编译后的 UURetrofit.java 源代码,内容仅作参考
package com.uusafe.mcm.net;
import com.zhizhangyi.platform.common.utils.Singleton;
import com.zhizhangyi.platform.network.NetworkUtils;
import java.util.concurrent.Executor;
import okhttp3.HttpUrl;
import retrofit2.w;
public class UURetrofit {
private static final boolean DEBUG = true;
public static final String TAG = "retrofit";
private static final Singleton<w> retrofit = new Singleton<w>() {
@Override
public w create() {
w.a aVar = new w.a();
aVar.a(NetworkUtils.getDefaultFactory());
aVar.a(retrofit2.a.a.a.create());
aVar.a(HttpUrl.parse("https://zhizhangyi.com/"));
return aVar.a();
}
};
private static final Singleton<w> retrofitDirect = new Singleton<w>() {
@Override
public w create() {
w.a c2 = ((w) UURetrofit.retrofit.get()).c();
c2.a(new Executor() {
@Override
public final void execute(Runnable runnable) {
runnable.run();
}
});
return c2.a();
}
};
public static w getRetrofit() {
return retrofitDirect.get();
}
public static w getUIRetrofit() {
return retrofit.get();
}
public static boolean isDebug() {
return true;
}
}