* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
182 lines
7.5 KiB
Java
182 lines
7.5 KiB
Java
package kotlin.text;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import kotlin.Metadata;
|
|
import kotlin.SinceKotlin;
|
|
import kotlin.jvm.internal.IntCompanionObject;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Metadata(d1 = {"\u0000.\n\u0000\n\u0002\u0010\u0005\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\n\n\u0002\b\u0006\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\u0001\n\u0002\b\u0002\u001a\u0013\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u00020\u0002H\u0007¢\u0006\u0002\u0010\u0003\u001a\u001b\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0005H\u0007¢\u0006\u0002\u0010\u0006\u001a\u0013\u0010\u0007\u001a\u0004\u0018\u00010\b*\u00020\u0002H\u0007¢\u0006\u0002\u0010\t\u001a\u001b\u0010\u0007\u001a\u0004\u0018\u00010\b*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0005H\u0007¢\u0006\u0002\u0010\n\u001a\u0013\u0010\u000b\u001a\u0004\u0018\u00010\u0005*\u00020\u0002H\u0007¢\u0006\u0002\u0010\f\u001a\u001b\u0010\u000b\u001a\u0004\u0018\u00010\u0005*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0005H\u0007¢\u0006\u0002\u0010\r\u001a\u0013\u0010\u000e\u001a\u0004\u0018\u00010\u000f*\u00020\u0002H\u0007¢\u0006\u0002\u0010\u0010\u001a\u001b\u0010\u000e\u001a\u0004\u0018\u00010\u000f*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0005H\u0007¢\u0006\u0002\u0010\u0011\u001a\u0010\u0010\u0012\u001a\u00020\u00132\u0006\u0010\u0014\u001a\u00020\u0002H\u0000¨\u0006\u0015"}, d2 = {"toByteOrNull", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(Ljava/lang/String;)Ljava/lang/Byte;", "radix", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(Ljava/lang/String;I)Ljava/lang/Byte;", "toShortOrNull", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(Ljava/lang/String;)Ljava/lang/Short;", "(Ljava/lang/String;I)Ljava/lang/Short;", "toIntOrNull", "(Ljava/lang/String;)Ljava/lang/Integer;", "(Ljava/lang/String;I)Ljava/lang/Integer;", "toLongOrNull", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(Ljava/lang/String;)Ljava/lang/Long;", "(Ljava/lang/String;I)Ljava/lang/Long;", "numberFormatError", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "input", "kotlin-stdlib"}, k = 5, mv = {2, 2, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
|
/* loaded from: classes4.dex */
|
|
public class StringsKt__StringNumberConversionsKt extends StringsKt__StringNumberConversionsJVMKt {
|
|
@NotNull
|
|
public static final Void numberFormatError(@NotNull String input) {
|
|
Intrinsics.checkNotNullParameter(input, "input");
|
|
throw new NumberFormatException("Invalid number format: '" + input + '\'');
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@Nullable
|
|
public static final Byte toByteOrNull(@NotNull String str) {
|
|
Intrinsics.checkNotNullParameter(str, "<this>");
|
|
return toByteOrNull(str, 10);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@Nullable
|
|
public static Integer toIntOrNull(@NotNull String str) {
|
|
Intrinsics.checkNotNullParameter(str, "<this>");
|
|
return toIntOrNull(str, 10);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@Nullable
|
|
public static Long toLongOrNull(@NotNull String str) {
|
|
Intrinsics.checkNotNullParameter(str, "<this>");
|
|
return toLongOrNull(str, 10);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@Nullable
|
|
public static final Short toShortOrNull(@NotNull String str) {
|
|
Intrinsics.checkNotNullParameter(str, "<this>");
|
|
return toShortOrNull(str, 10);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@Nullable
|
|
public static final Byte toByteOrNull(@NotNull String str, int i) {
|
|
int intValue;
|
|
Intrinsics.checkNotNullParameter(str, "<this>");
|
|
Integer intOrNull = toIntOrNull(str, i);
|
|
if (intOrNull == null || (intValue = intOrNull.intValue()) < -128 || intValue > 127) {
|
|
return null;
|
|
}
|
|
return Byte.valueOf((byte) intValue);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@Nullable
|
|
public static final Integer toIntOrNull(@NotNull String str, int i) {
|
|
boolean z;
|
|
int i2;
|
|
int i3;
|
|
Intrinsics.checkNotNullParameter(str, "<this>");
|
|
CharsKt__CharJVMKt.checkRadix(i);
|
|
int length = str.length();
|
|
if (length == 0) {
|
|
return null;
|
|
}
|
|
int i4 = 0;
|
|
char charAt = str.charAt(0);
|
|
int i5 = -2147483647;
|
|
if (Intrinsics.compare((int) charAt, 48) < 0) {
|
|
i2 = 1;
|
|
if (length == 1) {
|
|
return null;
|
|
}
|
|
if (charAt == '+') {
|
|
z = false;
|
|
} else {
|
|
if (charAt != '-') {
|
|
return null;
|
|
}
|
|
i5 = IntCompanionObject.MIN_VALUE;
|
|
z = true;
|
|
}
|
|
} else {
|
|
z = false;
|
|
i2 = 0;
|
|
}
|
|
int i6 = -59652323;
|
|
while (i2 < length) {
|
|
int digitOf = CharsKt__CharJVMKt.digitOf(str.charAt(i2), i);
|
|
if (digitOf < 0) {
|
|
return null;
|
|
}
|
|
if ((i4 < i6 && (i6 != -59652323 || i4 < (i6 = i5 / i))) || (i3 = i4 * i) < i5 + digitOf) {
|
|
return null;
|
|
}
|
|
i4 = i3 - digitOf;
|
|
i2++;
|
|
}
|
|
return z ? Integer.valueOf(i4) : Integer.valueOf(-i4);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@Nullable
|
|
public static final Long toLongOrNull(@NotNull String str, int i) {
|
|
boolean z;
|
|
Intrinsics.checkNotNullParameter(str, "<this>");
|
|
CharsKt__CharJVMKt.checkRadix(i);
|
|
int length = str.length();
|
|
Long l = null;
|
|
if (length == 0) {
|
|
return null;
|
|
}
|
|
int i2 = 0;
|
|
char charAt = str.charAt(0);
|
|
long j = -9223372036854775807L;
|
|
if (Intrinsics.compare((int) charAt, 48) < 0) {
|
|
z = true;
|
|
if (length == 1) {
|
|
return null;
|
|
}
|
|
if (charAt == '+') {
|
|
z = false;
|
|
i2 = 1;
|
|
} else {
|
|
if (charAt != '-') {
|
|
return null;
|
|
}
|
|
j = Long.MIN_VALUE;
|
|
i2 = 1;
|
|
}
|
|
} else {
|
|
z = false;
|
|
}
|
|
long j2 = 0;
|
|
long j3 = -256204778801521550L;
|
|
while (i2 < length) {
|
|
int digitOf = CharsKt__CharJVMKt.digitOf(str.charAt(i2), i);
|
|
if (digitOf < 0) {
|
|
return l;
|
|
}
|
|
if (j2 < j3) {
|
|
if (j3 != -256204778801521550L) {
|
|
return l;
|
|
}
|
|
j3 = j / i;
|
|
if (j2 < j3) {
|
|
return l;
|
|
}
|
|
}
|
|
Long l2 = l;
|
|
int i3 = i2;
|
|
long j4 = j2 * i;
|
|
long j5 = digitOf;
|
|
if (j4 < j + j5) {
|
|
return l2;
|
|
}
|
|
j2 = j4 - j5;
|
|
i2 = i3 + 1;
|
|
l = l2;
|
|
}
|
|
return z ? Long.valueOf(j2) : Long.valueOf(-j2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@Nullable
|
|
public static final Short toShortOrNull(@NotNull String str, int i) {
|
|
int intValue;
|
|
Intrinsics.checkNotNullParameter(str, "<this>");
|
|
Integer intOrNull = toIntOrNull(str, i);
|
|
if (intOrNull == null || (intValue = intOrNull.intValue()) < -32768 || intValue > 32767) {
|
|
return null;
|
|
}
|
|
return Short.valueOf((short) intValue);
|
|
}
|
|
}
|