Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,123 @@
package com.google.firebase.crashlytics.internal.network;
import com.google.firebase.crashlytics.internal.Logger;
import com.ironsource.v8;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.net.ssl.HttpsURLConnection;
/* loaded from: classes3.dex */
public class HttpGetRequest {
public final Map headers = new HashMap();
public final Map queryParams;
public final String url;
public HttpGetRequest(String str, Map map) {
this.url = str;
this.queryParams = map;
}
public HttpGetRequest header(String str, String str2) {
this.headers.put(str, str2);
return this;
}
public HttpResponse execute() {
HttpsURLConnection httpsURLConnection;
InputStream inputStream = null;
String readStream = null;
inputStream = null;
try {
String createUrlWithParams = createUrlWithParams(this.url, this.queryParams);
Logger.getLogger().v("GET Request URL: " + createUrlWithParams);
httpsURLConnection = (HttpsURLConnection) new URL(createUrlWithParams).openConnection();
try {
httpsURLConnection.setReadTimeout(10000);
httpsURLConnection.setConnectTimeout(10000);
httpsURLConnection.setRequestMethod("GET");
for (Map.Entry entry : this.headers.entrySet()) {
httpsURLConnection.addRequestProperty((String) entry.getKey(), (String) entry.getValue());
}
httpsURLConnection.connect();
int responseCode = httpsURLConnection.getResponseCode();
InputStream inputStream2 = httpsURLConnection.getInputStream();
if (inputStream2 != null) {
try {
readStream = readStream(inputStream2);
} catch (Throwable th) {
th = th;
inputStream = inputStream2;
if (inputStream != null) {
inputStream.close();
}
if (httpsURLConnection != null) {
httpsURLConnection.disconnect();
}
throw th;
}
}
if (inputStream2 != null) {
inputStream2.close();
}
httpsURLConnection.disconnect();
return new HttpResponse(responseCode, readStream);
} catch (Throwable th2) {
th = th2;
}
} catch (Throwable th3) {
th = th3;
httpsURLConnection = null;
}
}
public final String createUrlWithParams(String str, Map map) {
String createParamsString = createParamsString(map);
if (createParamsString.isEmpty()) {
return str;
}
if (str.contains("?")) {
if (!str.endsWith(v8.i.c)) {
createParamsString = v8.i.c + createParamsString;
}
return str + createParamsString;
}
return str + "?" + createParamsString;
}
public final String createParamsString(Map map) {
StringBuilder sb = new StringBuilder();
Iterator it = map.entrySet().iterator();
Map.Entry entry = (Map.Entry) it.next();
sb.append((String) entry.getKey());
sb.append(v8.i.b);
sb.append(entry.getValue() != null ? URLEncoder.encode((String) entry.getValue(), "UTF-8") : "");
while (it.hasNext()) {
Map.Entry entry2 = (Map.Entry) it.next();
sb.append(v8.i.c);
sb.append((String) entry2.getKey());
sb.append(v8.i.b);
sb.append(entry2.getValue() != null ? URLEncoder.encode((String) entry2.getValue(), "UTF-8") : "");
}
return sb.toString();
}
public final String readStream(InputStream inputStream) {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
char[] cArr = new char[8192];
StringBuilder sb = new StringBuilder();
while (true) {
int read = bufferedReader.read(cArr);
if (read != -1) {
sb.append(cArr, 0, read);
} else {
return sb.toString();
}
}
}
}

View File

@@ -0,0 +1,10 @@
package com.google.firebase.crashlytics.internal.network;
import java.util.Map;
/* loaded from: classes3.dex */
public class HttpRequestFactory {
public HttpGetRequest buildHttpGetRequest(String str, Map map) {
return new HttpGetRequest(str, map);
}
}

View File

@@ -0,0 +1,20 @@
package com.google.firebase.crashlytics.internal.network;
/* loaded from: classes3.dex */
public class HttpResponse {
public final String body;
public final int code;
public String body() {
return this.body;
}
public int code() {
return this.code;
}
public HttpResponse(int i, String str) {
this.code = i;
this.body = str;
}
}