* 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>
822 lines
19 KiB
Smali
822 lines
19 KiB
Smali
.class public final Lkotlin/uuid/Uuid$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lkotlin/uuid/Uuid;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000P\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u0008\n\u0002\u0008\u0003\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u000e\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\t\u0008\u0002\u00a2\u0006\u0004\u0008\u0002\u0010\u0003J\u0016\u0010\u000b\u001a\u00020\u00052\u0006\u0010\u000c\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\rJ\u001d\u0010\u000f\u001a\u00020\u00052\u0006\u0010\u000c\u001a\u00020\u00102\u0006\u0010\u000e\u001a\u00020\u0010\u00a2\u0006\u0004\u0008\u0011\u0010\u0012J\u000e\u0010\u0013\u001a\u00020\u00052\u0006\u0010\u0014\u001a\u00020\u0015J\u0017\u0010\u0016\u001a\u00020\u00052\u0006\u0010\u0017\u001a\u00020\u0018H\u0007\u00a2\u0006\u0004\u0008\u0019\u0010\u001aJ\u000e\u0010\u001b\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\u001dJ\u0010\u0010\u001e\u001a\u00020\u00052\u0006\u0010\u001f\u001a\u00020\u001dH\u0007J\u000e\u0010 \u001a\u00020\u00052\u0006\u0010!\u001a\u00020\u001dJ\u0006\u0010\"\u001a\u00020\u0005R\u0011\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0006\u0010\u0007R\u000e\u0010\u0008\u001a\u00020\tX\u0086T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\tX\u0086T\u00a2\u0006\u0002\n\u0000R*\u0010#\u001a\u0012\u0012\u0004\u0012\u00020\u00050$j\u0008\u0012\u0004\u0012\u00020\u0005`%8FX\u0087\u0004\u00a2\u0006\u000c\u0012\u0004\u0008&\u0010\u0003\u001a\u0004\u0008\'\u0010(\u00a8\u0006)"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/uuid/Uuid$Companion;",
|
|
"",
|
|
"<init>",
|
|
"()V",
|
|
"NIL",
|
|
"Lkotlin/uuid/Uuid;",
|
|
"getNIL",
|
|
"()Lkotlin/uuid/Uuid;",
|
|
"SIZE_BYTES",
|
|
"",
|
|
"SIZE_BITS",
|
|
"fromLongs",
|
|
"mostSignificantBits",
|
|
"",
|
|
"leastSignificantBits",
|
|
"fromULongs",
|
|
"Lkotlin/ULong;",
|
|
"fromULongs-eb3DHEI",
|
|
"(JJ)Lkotlin/uuid/Uuid;",
|
|
"fromByteArray",
|
|
"byteArray",
|
|
"",
|
|
"fromUByteArray",
|
|
"ubyteArray",
|
|
"Lkotlin/UByteArray;",
|
|
"fromUByteArray-GBYM_sE",
|
|
"([B)Lkotlin/uuid/Uuid;",
|
|
"parse",
|
|
"uuidString",
|
|
"",
|
|
"parseHexDash",
|
|
"hexDashString",
|
|
"parseHex",
|
|
"hexString",
|
|
"random",
|
|
"LEXICAL_ORDER",
|
|
"Ljava/util/Comparator;",
|
|
"Lkotlin/Comparator;",
|
|
"getLEXICAL_ORDER$annotations",
|
|
"getLEXICAL_ORDER",
|
|
"()Ljava/util/Comparator;",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lkotlin/uuid/Uuid$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic getLEXICAL_ORDER$annotations()V
|
|
.locals 0
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
message = "Use naturalOrder<Uuid>() instead"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "naturalOrder<Uuid>()"
|
|
imports = {
|
|
"kotlin.comparisons.naturalOrder"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/DeprecatedSinceKotlin;
|
|
warningSince = "2.1"
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final fromByteArray([B)Lkotlin/uuid/Uuid;
|
|
.locals 4
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "byteArray"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
array-length v0, p1
|
|
|
|
.line 7
|
|
const/16 v1, 0x10
|
|
|
|
.line 8
|
|
.line 9
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v0, 0x0
|
|
|
|
.line 12
|
|
invoke-static {p1, v0}, Lkotlin/uuid/UuidKt__UuidJVMKt;->getLongAt([BI)J
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-wide v0
|
|
|
|
.line 16
|
|
const/16 v2, 0x8
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-static {p1, v2}, Lkotlin/uuid/UuidKt__UuidJVMKt;->getLongAt([BI)J
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-wide v2
|
|
|
|
.line 22
|
|
invoke-virtual {p0, v0, v1, v2, v3}, Lkotlin/uuid/Uuid$Companion;->fromLongs(JJ)Lkotlin/uuid/Uuid;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object p1
|
|
|
|
.line 26
|
|
return-object p1
|
|
|
|
.line 27
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 28
|
|
.line 29
|
|
const-string v1, "Expected exactly 16 bytes, but was "
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
const/16 v1, 0x20
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-static {p1, v1}, Lkotlin/uuid/UuidKt__UuidKt;->access$truncateForErrorMessage([BI)Ljava/lang/String;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object v1
|
|
|
|
.line 40
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
const-string v1, " of size "
|
|
|
|
.line 44
|
|
.line 45
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
array-length p1, p1
|
|
|
|
.line 49
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result-object p1
|
|
|
|
.line 56
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result-object p1
|
|
|
|
.line 62
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final fromLongs(JJ)Lkotlin/uuid/Uuid;
|
|
.locals 6
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 2
|
|
.line 3
|
|
cmp-long v2, p1, v0
|
|
|
|
.line 4
|
|
.line 5
|
|
if-nez v2, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
cmp-long v0, p3, v0
|
|
|
|
.line 8
|
|
.line 9
|
|
if-nez v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p0}, Lkotlin/uuid/Uuid$Companion;->getNIL()Lkotlin/uuid/Uuid;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
return-object p1
|
|
|
|
.line 16
|
|
:cond_0
|
|
new-instance v0, Lkotlin/uuid/Uuid;
|
|
|
|
.line 17
|
|
.line 18
|
|
const/4 v5, 0x0
|
|
|
|
.line 19
|
|
move-wide v1, p1
|
|
|
|
.line 20
|
|
move-wide v3, p3
|
|
|
|
.line 21
|
|
invoke-direct/range {v0 .. v5}, Lkotlin/uuid/Uuid;-><init>(JJLkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final fromUByteArray-GBYM_sE([B)Lkotlin/uuid/Uuid;
|
|
.locals 1
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/ExperimentalUnsignedTypes;
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "2.1"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "$v$c$kotlin-UByteArray$-ubyteArray$0"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0, p1}, Lkotlin/uuid/Uuid$Companion;->fromByteArray([B)Lkotlin/uuid/Uuid;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final fromULongs-eb3DHEI(JJ)Lkotlin/uuid/Uuid;
|
|
.locals 0
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Lkotlin/uuid/Uuid$Companion;->fromLongs(JJ)Lkotlin/uuid/Uuid;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getLEXICAL_ORDER()Ljava/util/Comparator;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Comparator<",
|
|
"Lkotlin/uuid/Uuid;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {}, Lkotlin/comparisons/ComparisonsKt;->naturalOrder()Ljava/util/Comparator;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getNIL()Lkotlin/uuid/Uuid;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {}, Lkotlin/uuid/Uuid;->access$getNIL$cp()Lkotlin/uuid/Uuid;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final parse(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
.locals 3
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "uuidString"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v0
|
|
|
|
.line 10
|
|
const/16 v1, 0x20
|
|
|
|
.line 11
|
|
.line 12
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
const/16 v1, 0x24
|
|
|
|
.line 15
|
|
.line 16
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-static {p1}, Lkotlin/uuid/UuidKt__UuidJVMKt;->uuidParseHexDash(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object p1
|
|
|
|
.line 22
|
|
return-object p1
|
|
|
|
.line 23
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 24
|
|
.line 25
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 26
|
|
.line 27
|
|
const-string v2, "Expected either a 36-char string in the standard hex-and-dash UUID format or a 32-char hexadecimal string, but was \""
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
const/16 v2, 0x40
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-static {p1, v2}, Lkotlin/uuid/UuidKt__UuidKt;->access$truncateForErrorMessage(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v2
|
|
|
|
.line 38
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
const-string v2, "\" of length "
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result p1
|
|
|
|
.line 50
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object p1
|
|
|
|
.line 57
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
throw v0
|
|
|
|
.line 61
|
|
:cond_1
|
|
invoke-static {p1}, Lkotlin/uuid/UuidKt__UuidJVMKt;->uuidParseHex(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result-object p1
|
|
|
|
.line 65
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final parseHex(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
.locals 2
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "hexString"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v0
|
|
|
|
.line 10
|
|
const/16 v1, 0x20
|
|
|
|
.line 11
|
|
.line 12
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {p1}, Lkotlin/uuid/UuidKt__UuidJVMKt;->uuidParseHex(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
return-object p1
|
|
|
|
.line 19
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string v1, "Expected a 32-char hexadecimal string, but was \""
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
const/16 v1, 0x40
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-static {p1, v1}, Lkotlin/uuid/UuidKt__UuidKt;->access$truncateForErrorMessage(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v1
|
|
|
|
.line 32
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
const-string v1, "\" of length "
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result p1
|
|
|
|
.line 44
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object p1
|
|
|
|
.line 51
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object p1
|
|
|
|
.line 57
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final parseHexDash(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
.locals 2
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "2.1"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "hexDashString"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v0
|
|
|
|
.line 10
|
|
const/16 v1, 0x24
|
|
|
|
.line 11
|
|
.line 12
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {p1}, Lkotlin/uuid/UuidKt__UuidJVMKt;->uuidParseHexDash(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
return-object p1
|
|
|
|
.line 19
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string v1, "Expected a 36-char string in the standard hex-and-dash UUID format, but was \""
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
const/16 v1, 0x40
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-static {p1, v1}, Lkotlin/uuid/UuidKt__UuidKt;->access$truncateForErrorMessage(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v1
|
|
|
|
.line 32
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
const-string v1, "\" of length "
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result p1
|
|
|
|
.line 44
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object p1
|
|
|
|
.line 51
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object p1
|
|
|
|
.line 57
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final random()Lkotlin/uuid/Uuid;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {}, Lkotlin/uuid/UuidKt__UuidJVMKt;->secureRandomUuid()Lkotlin/uuid/Uuid;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
return-object v0
|
|
.end method
|