soul-browser/sources/java/kotlin/text/HexFormat.java
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

730 lines
40 KiB
Java

package kotlin.text;
import com.google.android.gms.ads.RequestConfiguration;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.PublishedApi;
import kotlin.SinceKotlin;
import kotlin.Unit;
import kotlin.WasExperimental;
import kotlin.internal.InlineOnly;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@SinceKotlin(version = "2.2")
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000e\n\u0002\b\u0005\b\u0007\u0018\u0000 \u00152\u00020\u0001:\u0004\u0012\u0013\u0014\u0015B!\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0004\b\b\u0010\tJ\b\u0010\u0010\u001a\u00020\u0011H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000f¨\u0006\u0016"}, d2 = {"Lkotlin/text/HexFormat;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "upperCase", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "bytes", "Lkotlin/text/HexFormat$BytesHexFormat;", "number", "Lkotlin/text/HexFormat$NumberHexFormat;", "<init>", "(ZLkotlin/text/HexFormat$BytesHexFormat;Lkotlin/text/HexFormat$NumberHexFormat;)V", "getUpperCase", "()Z", "getBytes", "()Lkotlin/text/HexFormat$BytesHexFormat;", "getNumber", "()Lkotlin/text/HexFormat$NumberHexFormat;", "toString", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "BytesHexFormat", "NumberHexFormat", "Builder", "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
/* loaded from: classes4.dex */
public final class HexFormat {
/* renamed from: Companion, reason: from kotlin metadata */
@NotNull
public static final Companion INSTANCE = new Companion(null);
@NotNull
private static final HexFormat Default;
@NotNull
private static final HexFormat UpperCase;
@NotNull
private final BytesHexFormat bytes;
@NotNull
private final NumberHexFormat number;
private final boolean upperCase;
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\t\b\u0001¢\u0006\u0004\b\u0002\u0010\u0003J%\u0010\n\u001a\u00020\u00142\u0017\u0010\u0015\u001a\u0013\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\u00140\u0016¢\u0006\u0002\b\u0017H\u0087\\u0001\u0000J%\u0010\u000f\u001a\u00020\u00142\u0017\u0010\u0015\u001a\u0013\u0012\u0004\u0012\u00020\u0010\u0012\u0004\u0012\u00020\u00140\u0016¢\u0006\u0002\b\u0017H\u0087\\u0001\u0000J\b\u0010\u0018\u001a\u00020\u0019H\u0001R\u001a\u0010\u0004\u001a\u00020\u0005X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR\u0011\u0010\n\u001a\u00020\u000b8F¢\u0006\u0006\u001a\u0004\b\f\u0010\rR\u0010\u0010\u000e\u001a\u0004\u0018\u00010\u000bX\u0082\u000e¢\u0006\u0002\n\u0000R\u0011\u0010\u000f\u001a\u00020\u00108F¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012R\u0010\u0010\u0013\u001a\u0004\u0018\u00010\u0010X\u0082\u000e¢\u0006\u0002\n\u0000\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u001a"}, d2 = {"Lkotlin/text/HexFormat$Builder;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "upperCase", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "getUpperCase", "()Z", "setUpperCase", "(Z)V", "bytes", "Lkotlin/text/HexFormat$BytesHexFormat$Builder;", "getBytes", "()Lkotlin/text/HexFormat$BytesHexFormat$Builder;", "_bytes", "number", "Lkotlin/text/HexFormat$NumberHexFormat$Builder;", "getNumber", "()Lkotlin/text/HexFormat$NumberHexFormat$Builder;", "_number", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "builderAction", "Lkotlin/Function1;", "Lkotlin/ExtensionFunctionType;", "build", "Lkotlin/text/HexFormat;", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class Builder {
@Nullable
private BytesHexFormat.Builder _bytes;
@Nullable
private NumberHexFormat.Builder _number;
private boolean upperCase = HexFormat.INSTANCE.getDefault().getUpperCase();
@PublishedApi
public Builder() {
}
@InlineOnly
private final void bytes(Function1<? super BytesHexFormat.Builder, Unit> builderAction) {
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
builderAction.invoke(getBytes());
}
@InlineOnly
private final void number(Function1<? super NumberHexFormat.Builder, Unit> builderAction) {
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
builderAction.invoke(getNumber());
}
@PublishedApi
@NotNull
public final HexFormat build() {
BytesHexFormat default$kotlin_stdlib;
NumberHexFormat default$kotlin_stdlib2;
boolean z = this.upperCase;
BytesHexFormat.Builder builder = this._bytes;
if (builder == null || (default$kotlin_stdlib = builder.build$kotlin_stdlib()) == null) {
default$kotlin_stdlib = BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib();
}
NumberHexFormat.Builder builder2 = this._number;
if (builder2 == null || (default$kotlin_stdlib2 = builder2.build$kotlin_stdlib()) == null) {
default$kotlin_stdlib2 = NumberHexFormat.INSTANCE.getDefault$kotlin_stdlib();
}
return new HexFormat(z, default$kotlin_stdlib, default$kotlin_stdlib2);
}
@NotNull
public final BytesHexFormat.Builder getBytes() {
if (this._bytes == null) {
this._bytes = new BytesHexFormat.Builder();
}
BytesHexFormat.Builder builder = this._bytes;
Intrinsics.checkNotNull(builder);
return builder;
}
@NotNull
public final NumberHexFormat.Builder getNumber() {
if (this._number == null) {
this._number = new NumberHexFormat.Builder();
}
NumberHexFormat.Builder builder = this._number;
Intrinsics.checkNotNull(builder);
return builder;
}
public final boolean getUpperCase() {
return this.upperCase;
}
public final void setUpperCase(boolean z) {
this.upperCase = z;
}
}
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u000e\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000 %2\u00020\u0001:\u0002$%B9\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\b\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\u0006¢\u0006\u0004\b\n\u0010\u000bJ\b\u0010\u001c\u001a\u00020\u0006H\u0016J'\u0010\u001d\u001a\u00060\u001ej\u0002`\u001f2\n\u0010 \u001a\u00060\u001ej\u0002`\u001f2\u0006\u0010!\u001a\u00020\u0006H\u0000¢\u0006\u0004\b\"\u0010#R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\rR\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0011\u0010\u0007\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0010R\u0011\u0010\b\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u0010R\u0011\u0010\t\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0010R\u0014\u0010\u0014\u001a\u00020\u0015X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0017R\u0014\u0010\u0018\u001a\u00020\u0015X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0017R\u0014\u0010\u001a\u001a\u00020\u0015X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u0017¨\u0006&"}, d2 = {"Lkotlin/text/HexFormat$BytesHexFormat;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "bytesPerLine", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "bytesPerGroup", "groupSeparator", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "byteSeparator", "bytePrefix", "byteSuffix", "<init>", "(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getBytesPerLine", "()I", "getBytesPerGroup", "getGroupSeparator", "()Ljava/lang/String;", "getByteSeparator", "getBytePrefix", "getByteSuffix", "noLineAndGroupSeparator", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "getNoLineAndGroupSeparator$kotlin_stdlib", "()Z", "shortByteSeparatorNoPrefixAndSuffix", "getShortByteSeparatorNoPrefixAndSuffix$kotlin_stdlib", "ignoreCase", "getIgnoreCase$kotlin_stdlib", "toString", "appendOptionsTo", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "sb", "indent", "appendOptionsTo$kotlin_stdlib", "(Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/StringBuilder;", "Builder", "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class BytesHexFormat {
/* renamed from: Companion, reason: from kotlin metadata */
@NotNull
public static final Companion INSTANCE = new Companion(null);
@NotNull
private static final BytesHexFormat Default = new BytesHexFormat(Integer.MAX_VALUE, Integer.MAX_VALUE, " ", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED);
@NotNull
private final String bytePrefix;
@NotNull
private final String byteSeparator;
@NotNull
private final String byteSuffix;
private final int bytesPerGroup;
private final int bytesPerLine;
@NotNull
private final String groupSeparator;
private final boolean ignoreCase;
private final boolean noLineAndGroupSeparator;
private final boolean shortByteSeparatorNoPrefixAndSuffix;
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\t\n\u0002\u0010\u000e\n\u0002\b\u000e\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\t\b\u0000¢\u0006\u0004\b\u0002\u0010\u0003J\r\u0010\u001d\u001a\u00020\u001eH\u0000¢\u0006\u0002\b\u001fR$\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0005@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0007\u0010\b\"\u0004\b\t\u0010\nR$\u0010\u000b\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0005@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\b\"\u0004\b\r\u0010\nR\u001a\u0010\u000e\u001a\u00020\u000fX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013R$\u0010\u0014\u001a\u00020\u000f2\u0006\u0010\u0004\u001a\u00020\u000f@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0015\u0010\u0011\"\u0004\b\u0016\u0010\u0013R$\u0010\u0017\u001a\u00020\u000f2\u0006\u0010\u0004\u001a\u00020\u000f@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0018\u0010\u0011\"\u0004\b\u0019\u0010\u0013R$\u0010\u001a\u001a\u00020\u000f2\u0006\u0010\u0004\u001a\u00020\u000f@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001b\u0010\u0011\"\u0004\b\u001c\u0010\u0013¨\u0006 "}, d2 = {"Lkotlin/text/HexFormat$BytesHexFormat$Builder;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "value", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "bytesPerLine", "getBytesPerLine", "()I", "setBytesPerLine", "(I)V", "bytesPerGroup", "getBytesPerGroup", "setBytesPerGroup", "groupSeparator", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "getGroupSeparator", "()Ljava/lang/String;", "setGroupSeparator", "(Ljava/lang/String;)V", "byteSeparator", "getByteSeparator", "setByteSeparator", "bytePrefix", "getBytePrefix", "setBytePrefix", "byteSuffix", "getByteSuffix", "setByteSuffix", "build", "Lkotlin/text/HexFormat$BytesHexFormat;", "build$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class Builder {
@NotNull
private String bytePrefix;
@NotNull
private String byteSeparator;
@NotNull
private String byteSuffix;
private int bytesPerGroup;
private int bytesPerLine;
@NotNull
private String groupSeparator;
public Builder() {
Companion companion = BytesHexFormat.INSTANCE;
this.bytesPerLine = companion.getDefault$kotlin_stdlib().getBytesPerLine();
this.bytesPerGroup = companion.getDefault$kotlin_stdlib().getBytesPerGroup();
this.groupSeparator = companion.getDefault$kotlin_stdlib().getGroupSeparator();
this.byteSeparator = companion.getDefault$kotlin_stdlib().getByteSeparator();
this.bytePrefix = companion.getDefault$kotlin_stdlib().getBytePrefix();
this.byteSuffix = companion.getDefault$kotlin_stdlib().getByteSuffix();
}
@NotNull
public final BytesHexFormat build$kotlin_stdlib() {
return new BytesHexFormat(this.bytesPerLine, this.bytesPerGroup, this.groupSeparator, this.byteSeparator, this.bytePrefix, this.byteSuffix);
}
@NotNull
public final String getBytePrefix() {
return this.bytePrefix;
}
@NotNull
public final String getByteSeparator() {
return this.byteSeparator;
}
@NotNull
public final String getByteSuffix() {
return this.byteSuffix;
}
public final int getBytesPerGroup() {
return this.bytesPerGroup;
}
public final int getBytesPerLine() {
return this.bytesPerLine;
}
@NotNull
public final String getGroupSeparator() {
return this.groupSeparator;
}
public final void setBytePrefix(@NotNull String value) {
Intrinsics.checkNotNullParameter(value, "value");
if (!StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) && !StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
this.bytePrefix = value;
return;
}
throw new IllegalArgumentException(android.support.v4.media.a.C("LF and CR characters are prohibited in bytePrefix, but was ", value));
}
public final void setByteSeparator(@NotNull String value) {
Intrinsics.checkNotNullParameter(value, "value");
if (!StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) && !StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
this.byteSeparator = value;
return;
}
throw new IllegalArgumentException(android.support.v4.media.a.C("LF and CR characters are prohibited in byteSeparator, but was ", value));
}
public final void setByteSuffix(@NotNull String value) {
Intrinsics.checkNotNullParameter(value, "value");
if (!StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) && !StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
this.byteSuffix = value;
return;
}
throw new IllegalArgumentException(android.support.v4.media.a.C("LF and CR characters are prohibited in byteSuffix, but was ", value));
}
public final void setBytesPerGroup(int i) {
if (i > 0) {
this.bytesPerGroup = i;
return;
}
throw new IllegalArgumentException(android.support.v4.media.a.e(i, "Non-positive values are prohibited for bytesPerGroup, but was "));
}
public final void setBytesPerLine(int i) {
if (i > 0) {
this.bytesPerLine = i;
return;
}
throw new IllegalArgumentException(android.support.v4.media.a.e(i, "Non-positive values are prohibited for bytesPerLine, but was "));
}
public final void setGroupSeparator(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "<set-?>");
this.groupSeparator = str;
}
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R\u0014\u0010\u0004\u001a\u00020\u0005X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007¨\u0006\b"}, d2 = {"Lkotlin/text/HexFormat$BytesHexFormat$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "Default", "Lkotlin/text/HexFormat$BytesHexFormat;", "getDefault$kotlin_stdlib", "()Lkotlin/text/HexFormat$BytesHexFormat;", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@NotNull
public final BytesHexFormat getDefault$kotlin_stdlib() {
return BytesHexFormat.Default;
}
private Companion() {
}
}
/* JADX WARN: Code restructure failed: missing block: B:19:0x005e, code lost:
if (r4 != false) goto L23;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public BytesHexFormat(int r4, int r5, @org.jetbrains.annotations.NotNull java.lang.String r6, @org.jetbrains.annotations.NotNull java.lang.String r7, @org.jetbrains.annotations.NotNull java.lang.String r8, @org.jetbrains.annotations.NotNull java.lang.String r9) {
/*
r3 = this;
java.lang.String r0 = "groupSeparator"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r6, r0)
java.lang.String r0 = "byteSeparator"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r7, r0)
java.lang.String r0 = "bytePrefix"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
java.lang.String r0 = "byteSuffix"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)
r3.<init>()
r3.bytesPerLine = r4
r3.bytesPerGroup = r5
r3.groupSeparator = r6
r3.byteSeparator = r7
r3.bytePrefix = r8
r3.byteSuffix = r9
r0 = 0
r1 = 1
r2 = 2147483647(0x7fffffff, float:NaN)
if (r4 != r2) goto L2e
if (r5 != r2) goto L2e
r4 = r1
goto L2f
L2e:
r4 = r0
L2f:
r3.noLineAndGroupSeparator = r4
int r4 = r8.length()
if (r4 != 0) goto L45
int r4 = r9.length()
if (r4 != 0) goto L45
int r4 = r7.length()
if (r4 > r1) goto L45
r4 = r1
goto L46
L45:
r4 = r0
L46:
r3.shortByteSeparatorNoPrefixAndSuffix = r4
boolean r4 = kotlin.text.HexFormatKt.access$isCaseSensitive(r6)
if (r4 != 0) goto L60
boolean r4 = kotlin.text.HexFormatKt.access$isCaseSensitive(r7)
if (r4 != 0) goto L60
boolean r4 = kotlin.text.HexFormatKt.access$isCaseSensitive(r8)
if (r4 != 0) goto L60
boolean r4 = kotlin.text.HexFormatKt.access$isCaseSensitive(r9)
if (r4 == 0) goto L61
L60:
r0 = r1
L61:
r3.ignoreCase = r0
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.HexFormat.BytesHexFormat.<init>(int, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String):void");
}
@NotNull
public final StringBuilder appendOptionsTo$kotlin_stdlib(@NotNull StringBuilder sb, @NotNull String indent) {
Intrinsics.checkNotNullParameter(sb, "sb");
Intrinsics.checkNotNullParameter(indent, "indent");
sb.append(indent);
sb.append("bytesPerLine = ");
sb.append(this.bytesPerLine);
sb.append(",");
sb.append('\n');
sb.append(indent);
sb.append("bytesPerGroup = ");
sb.append(this.bytesPerGroup);
sb.append(",");
sb.append('\n');
sb.append(indent);
sb.append("groupSeparator = \"");
sb.append(this.groupSeparator);
sb.append("\",");
sb.append('\n');
sb.append(indent);
sb.append("byteSeparator = \"");
sb.append(this.byteSeparator);
sb.append("\",");
sb.append('\n');
sb.append(indent);
sb.append("bytePrefix = \"");
sb.append(this.bytePrefix);
sb.append("\",");
sb.append('\n');
sb.append(indent);
sb.append("byteSuffix = \"");
sb.append(this.byteSuffix);
sb.append("\"");
return sb;
}
@NotNull
public final String getBytePrefix() {
return this.bytePrefix;
}
@NotNull
public final String getByteSeparator() {
return this.byteSeparator;
}
@NotNull
public final String getByteSuffix() {
return this.byteSuffix;
}
public final int getBytesPerGroup() {
return this.bytesPerGroup;
}
public final int getBytesPerLine() {
return this.bytesPerLine;
}
@NotNull
public final String getGroupSeparator() {
return this.groupSeparator;
}
/* renamed from: getIgnoreCase$kotlin_stdlib, reason: from getter */
public final boolean getIgnoreCase() {
return this.ignoreCase;
}
/* renamed from: getNoLineAndGroupSeparator$kotlin_stdlib, reason: from getter */
public final boolean getNoLineAndGroupSeparator() {
return this.noLineAndGroupSeparator;
}
/* renamed from: getShortByteSeparatorNoPrefixAndSuffix$kotlin_stdlib, reason: from getter */
public final boolean getShortByteSeparatorNoPrefixAndSuffix() {
return this.shortByteSeparatorNoPrefixAndSuffix;
}
@NotNull
public String toString() {
StringBuilder t = android.support.v4.media.a.t("BytesHexFormat(\n");
appendOptionsTo$kotlin_stdlib(t, " ").append('\n');
t.append(")");
return t.toString();
}
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0011\u0010\b\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\u0007¨\u0006\n"}, d2 = {"Lkotlin/text/HexFormat$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "Default", "Lkotlin/text/HexFormat;", "getDefault", "()Lkotlin/text/HexFormat;", "UpperCase", "getUpperCase", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@NotNull
public final HexFormat getDefault() {
return HexFormat.Default;
}
@NotNull
public final HexFormat getUpperCase() {
return HexFormat.UpperCase;
}
private Companion() {
}
}
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000 #2\u00020\u0001:\u0002\"#B)\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\\u0006\u0004\b\t\u0010\nJ\b\u0010\u001a\u001a\u00020\u0003H\u0016J'\u0010\u001b\u001a\u00060\u001cj\u0002`\u001d2\n\u0010\u001e\u001a\u00060\u001cj\u0002`\u001d2\u0006\u0010\u001f\u001a\u00020\u0003H\u0000¢\u0006\u0004\b \u0010!R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\fR\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u001c\u0010\u0007\u001a\u00020\b8\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013R\u0014\u0010\u0014\u001a\u00020\u0006X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u000fR\u0014\u0010\u0016\u001a\u00020\u0006X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u000fR\u0014\u0010\u0018\u001a\u00020\u0006X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u000f¨\u0006$"}, d2 = {"Lkotlin/text/HexFormat$NumberHexFormat;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "prefix", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "suffix", "removeLeadingZeros", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "minLength", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "(Ljava/lang/String;Ljava/lang/String;ZI)V", "getPrefix", "()Ljava/lang/String;", "getSuffix", "getRemoveLeadingZeros", "()Z", "getMinLength$annotations", "()V", "getMinLength", "()I", "isDigitsOnly", "isDigitsOnly$kotlin_stdlib", "isDigitsOnlyAndNoPadding", "isDigitsOnlyAndNoPadding$kotlin_stdlib", "ignoreCase", "getIgnoreCase$kotlin_stdlib", "toString", "appendOptionsTo", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "sb", "indent", "appendOptionsTo$kotlin_stdlib", "(Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/StringBuilder;", "Builder", "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class NumberHexFormat {
/* renamed from: Companion, reason: from kotlin metadata */
@NotNull
public static final Companion INSTANCE = new Companion(null);
@NotNull
private static final NumberHexFormat Default = new NumberHexFormat(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, false, 1);
private final boolean ignoreCase;
private final boolean isDigitsOnly;
private final boolean isDigitsOnlyAndNoPadding;
private final int minLength;
@NotNull
private final String prefix;
private final boolean removeLeadingZeros;
@NotNull
private final String suffix;
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\t\b\u0000¢\u0006\u0004\b\u0002\u0010\u0003J\r\u0010\u001b\u001a\u00020\u001cH\u0000¢\u0006\u0002\b\u001dR$\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0005@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0007\u0010\b\"\u0004\b\t\u0010\nR$\u0010\u000b\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0005@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\b\"\u0004\b\r\u0010\nR\u001a\u0010\u000e\u001a\u00020\u000fX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013R,\u0010\u0015\u001a\u00020\u00142\u0006\u0010\u0004\u001a\u00020\u00148\u0006@FX\u0087\u000e¢\u0006\u0014\n\u0000\u0012\u0004\b\u0016\u0010\u0003\u001a\u0004\b\u0017\u0010\u0018\"\u0004\b\u0019\u0010\u001a¨\u0006\u001e"}, d2 = {"Lkotlin/text/HexFormat$NumberHexFormat$Builder;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "value", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "prefix", "getPrefix", "()Ljava/lang/String;", "setPrefix", "(Ljava/lang/String;)V", "suffix", "getSuffix", "setSuffix", "removeLeadingZeros", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "getRemoveLeadingZeros", "()Z", "setRemoveLeadingZeros", "(Z)V", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "minLength", "getMinLength$annotations", "getMinLength", "()I", "setMinLength", "(I)V", "build", "Lkotlin/text/HexFormat$NumberHexFormat;", "build$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nHexFormat.kt\nKotlin\n*S Kotlin\n*F\n+ 1 HexFormat.kt\nkotlin/text/HexFormat$NumberHexFormat$Builder\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,845:1\n1#2:846\n*E\n"})
/* loaded from: classes4.dex */
public static final class Builder {
private int minLength;
@NotNull
private String prefix;
private boolean removeLeadingZeros;
@NotNull
private String suffix;
public Builder() {
Companion companion = NumberHexFormat.INSTANCE;
this.prefix = companion.getDefault$kotlin_stdlib().getPrefix();
this.suffix = companion.getDefault$kotlin_stdlib().getSuffix();
this.removeLeadingZeros = companion.getDefault$kotlin_stdlib().getRemoveLeadingZeros();
this.minLength = companion.getDefault$kotlin_stdlib().getMinLength();
}
@SinceKotlin(version = "2.0")
public static /* synthetic */ void getMinLength$annotations() {
}
@NotNull
public final NumberHexFormat build$kotlin_stdlib() {
return new NumberHexFormat(this.prefix, this.suffix, this.removeLeadingZeros, this.minLength);
}
public final int getMinLength() {
return this.minLength;
}
@NotNull
public final String getPrefix() {
return this.prefix;
}
public final boolean getRemoveLeadingZeros() {
return this.removeLeadingZeros;
}
@NotNull
public final String getSuffix() {
return this.suffix;
}
public final void setMinLength(int i) {
if (i > 0) {
this.minLength = i;
return;
}
throw new IllegalArgumentException(android.support.v4.media.a.e(i, "Non-positive values are prohibited for minLength, but was ").toString());
}
public final void setPrefix(@NotNull String value) {
Intrinsics.checkNotNullParameter(value, "value");
if (!StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) && !StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
this.prefix = value;
return;
}
throw new IllegalArgumentException(android.support.v4.media.a.C("LF and CR characters are prohibited in prefix, but was ", value));
}
public final void setRemoveLeadingZeros(boolean z) {
this.removeLeadingZeros = z;
}
public final void setSuffix(@NotNull String value) {
Intrinsics.checkNotNullParameter(value, "value");
if (!StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) && !StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
this.suffix = value;
return;
}
throw new IllegalArgumentException(android.support.v4.media.a.C("LF and CR characters are prohibited in suffix, but was ", value));
}
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0080\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R\u0014\u0010\u0004\u001a\u00020\u0005X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007¨\u0006\b"}, d2 = {"Lkotlin/text/HexFormat$NumberHexFormat$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "Default", "Lkotlin/text/HexFormat$NumberHexFormat;", "getDefault$kotlin_stdlib", "()Lkotlin/text/HexFormat$NumberHexFormat;", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@NotNull
public final NumberHexFormat getDefault$kotlin_stdlib() {
return NumberHexFormat.Default;
}
private Companion() {
}
}
/* JADX WARN: Code restructure failed: missing block: B:13:0x003b, code lost:
if (r3 != false) goto L17;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public NumberHexFormat(@org.jetbrains.annotations.NotNull java.lang.String r3, @org.jetbrains.annotations.NotNull java.lang.String r4, boolean r5, int r6) {
/*
r2 = this;
java.lang.String r0 = "prefix"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r3, r0)
java.lang.String r0 = "suffix"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r4, r0)
r2.<init>()
r2.prefix = r3
r2.suffix = r4
r2.removeLeadingZeros = r5
r2.minLength = r6
int r5 = r3.length()
r0 = 0
r1 = 1
if (r5 != 0) goto L25
int r5 = r4.length()
if (r5 != 0) goto L25
r5 = r1
goto L26
L25:
r5 = r0
L26:
r2.isDigitsOnly = r5
if (r5 == 0) goto L2e
if (r6 != r1) goto L2e
r5 = r1
goto L2f
L2e:
r5 = r0
L2f:
r2.isDigitsOnlyAndNoPadding = r5
boolean r3 = kotlin.text.HexFormatKt.access$isCaseSensitive(r3)
if (r3 != 0) goto L3d
boolean r3 = kotlin.text.HexFormatKt.access$isCaseSensitive(r4)
if (r3 == 0) goto L3e
L3d:
r0 = r1
L3e:
r2.ignoreCase = r0
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.HexFormat.NumberHexFormat.<init>(java.lang.String, java.lang.String, boolean, int):void");
}
@SinceKotlin(version = "2.0")
public static /* synthetic */ void getMinLength$annotations() {
}
@NotNull
public final StringBuilder appendOptionsTo$kotlin_stdlib(@NotNull StringBuilder sb, @NotNull String indent) {
Intrinsics.checkNotNullParameter(sb, "sb");
Intrinsics.checkNotNullParameter(indent, "indent");
sb.append(indent);
sb.append("prefix = \"");
sb.append(this.prefix);
sb.append("\",");
sb.append('\n');
sb.append(indent);
sb.append("suffix = \"");
sb.append(this.suffix);
sb.append("\",");
sb.append('\n');
sb.append(indent);
sb.append("removeLeadingZeros = ");
sb.append(this.removeLeadingZeros);
sb.append(',');
sb.append('\n');
sb.append(indent);
sb.append("minLength = ");
sb.append(this.minLength);
return sb;
}
/* renamed from: getIgnoreCase$kotlin_stdlib, reason: from getter */
public final boolean getIgnoreCase() {
return this.ignoreCase;
}
public final int getMinLength() {
return this.minLength;
}
@NotNull
public final String getPrefix() {
return this.prefix;
}
public final boolean getRemoveLeadingZeros() {
return this.removeLeadingZeros;
}
@NotNull
public final String getSuffix() {
return this.suffix;
}
/* renamed from: isDigitsOnly$kotlin_stdlib, reason: from getter */
public final boolean getIsDigitsOnly() {
return this.isDigitsOnly;
}
/* renamed from: isDigitsOnlyAndNoPadding$kotlin_stdlib, reason: from getter */
public final boolean getIsDigitsOnlyAndNoPadding() {
return this.isDigitsOnlyAndNoPadding;
}
@NotNull
public String toString() {
StringBuilder t = android.support.v4.media.a.t("NumberHexFormat(\n");
appendOptionsTo$kotlin_stdlib(t, " ").append('\n');
t.append(")");
return t.toString();
}
}
static {
BytesHexFormat.Companion companion = BytesHexFormat.INSTANCE;
BytesHexFormat default$kotlin_stdlib = companion.getDefault$kotlin_stdlib();
NumberHexFormat.Companion companion2 = NumberHexFormat.INSTANCE;
Default = new HexFormat(false, default$kotlin_stdlib, companion2.getDefault$kotlin_stdlib());
UpperCase = new HexFormat(true, companion.getDefault$kotlin_stdlib(), companion2.getDefault$kotlin_stdlib());
}
public HexFormat(boolean z, @NotNull BytesHexFormat bytes, @NotNull NumberHexFormat number) {
Intrinsics.checkNotNullParameter(bytes, "bytes");
Intrinsics.checkNotNullParameter(number, "number");
this.upperCase = z;
this.bytes = bytes;
this.number = number;
}
@NotNull
public final BytesHexFormat getBytes() {
return this.bytes;
}
@NotNull
public final NumberHexFormat getNumber() {
return this.number;
}
public final boolean getUpperCase() {
return this.upperCase;
}
@NotNull
public String toString() {
StringBuilder t = android.support.v4.media.a.t("HexFormat(\n upperCase = ");
t.append(this.upperCase);
t.append(",\n bytes = BytesHexFormat(\n");
this.bytes.appendOptionsTo$kotlin_stdlib(t, " ").append('\n');
t.append(" ),");
t.append('\n');
t.append(" number = NumberHexFormat(");
t.append('\n');
this.number.appendOptionsTo$kotlin_stdlib(t, " ").append('\n');
t.append(" )");
t.append('\n');
t.append(")");
return t.toString();
}
}