soul-browser/sources/java/kotlin/text/Regex$splitToSequence$1.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

174 lines
7.4 KiB
Java

package kotlin.text;
import com.google.android.gms.ads.RequestConfiguration;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.RestrictedSuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.sequences.SequenceScope;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\u0010\u0000\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\u00030\u0002H\n"}, d2 = {"<anonymous>", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Lkotlin/sequences/SequenceScope;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED}, k = 3, mv = {2, 2, 0}, xi = 48)
@DebugMetadata(c = "kotlin.text.Regex$splitToSequence$1", f = "Regex.kt", i = {0, 0, 1, 1, 1, 1, 2, 2, 2, 2}, l = {280, 288, 292}, m = "invokeSuspend", n = {"$this$sequence", "matcher", "$this$sequence", "matcher", "nextStart", "splitCount", "$this$sequence", "matcher", "nextStart", "splitCount"}, nl = {281, 289, 293}, s = {"L$0", "L$1", "L$0", "L$1", "I$0", "I$1", "L$0", "L$1", "I$0", "I$1"}, v = 2)
/* loaded from: classes4.dex */
public final class Regex$splitToSequence$1 extends RestrictedSuspendLambda implements Function2<SequenceScope<? super String>, Continuation<? super Unit>, Object> {
final /* synthetic */ CharSequence $input;
final /* synthetic */ int $limit;
int I$0;
int I$1;
private /* synthetic */ Object L$0;
Object L$1;
int label;
final /* synthetic */ Regex this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Regex$splitToSequence$1(Regex regex, CharSequence charSequence, int i, Continuation<? super Regex$splitToSequence$1> continuation) {
super(2, continuation);
this.this$0 = regex;
this.$input = charSequence;
this.$limit = i;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
Regex$splitToSequence$1 regex$splitToSequence$1 = new Regex$splitToSequence$1(this.this$0, this.$input, this.$limit, continuation);
regex$splitToSequence$1.L$0 = obj;
return regex$splitToSequence$1;
}
/* JADX WARN: Code restructure failed: missing block: B:23:0x00af, code lost:
if (r0.yield(r4, r10) != r1) goto L31;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x00cd, code lost:
if (r0.yield(r2, r10) == r1) goto L35;
*/
/* JADX WARN: Removed duplicated region for block: B:20:0x0075 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:20:0x0075 -> B:13:0x0076). Please report as a decompilation issue!!! */
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object invokeSuspend(java.lang.Object r11) {
/*
r10 = this;
java.lang.Object r0 = r10.L$0
kotlin.sequences.SequenceScope r0 = (kotlin.sequences.SequenceScope) r0
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r10.label
r3 = 3
r4 = 2
r5 = 1
if (r2 == 0) goto L39
if (r2 == r5) goto L30
if (r2 == r4) goto L26
if (r2 != r3) goto L1e
java.lang.Object r0 = r10.L$1
java.util.regex.Matcher r0 = (java.util.regex.Matcher) r0
kotlin.ResultKt.throwOnFailure(r11)
goto Lb2
L1e:
java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
r11.<init>(r0)
throw r11
L26:
int r2 = r10.I$1
java.lang.Object r6 = r10.L$1
java.util.regex.Matcher r6 = (java.util.regex.Matcher) r6
kotlin.ResultKt.throwOnFailure(r11)
goto L76
L30:
java.lang.Object r0 = r10.L$1
java.util.regex.Matcher r0 = (java.util.regex.Matcher) r0
kotlin.ResultKt.throwOnFailure(r11)
goto Ld0
L39:
kotlin.ResultKt.throwOnFailure(r11)
kotlin.text.Regex r11 = r10.this$0
java.util.regex.Pattern r11 = kotlin.text.Regex.access$getNativePattern$p(r11)
java.lang.CharSequence r2 = r10.$input
java.util.regex.Matcher r11 = r11.matcher(r2)
int r2 = r10.$limit
if (r2 == r5) goto Lb5
boolean r2 = r11.find()
if (r2 != 0) goto L53
goto Lb5
L53:
r2 = 0
r6 = r11
r11 = r2
L56:
java.lang.CharSequence r7 = r10.$input
int r8 = r6.start()
java.lang.CharSequence r7 = r7.subSequence(r2, r8)
java.lang.String r7 = r7.toString()
r10.L$0 = r0
r10.L$1 = r6
r10.I$0 = r2
r10.I$1 = r11
r10.label = r4
java.lang.Object r2 = r0.yield(r7, r10)
if (r2 != r1) goto L75
goto Lcf
L75:
r2 = r11
L76:
int r11 = r6.end()
int r2 = r2 + r5
int r7 = r10.$limit
int r7 = r7 - r5
if (r2 == r7) goto L8b
boolean r7 = r6.find()
if (r7 != 0) goto L87
goto L8b
L87:
r9 = r2
r2 = r11
r11 = r9
goto L56
L8b:
java.lang.CharSequence r4 = r10.$input
int r5 = r4.length()
java.lang.CharSequence r4 = r4.subSequence(r11, r5)
java.lang.String r4 = r4.toString()
java.lang.Object r5 = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(r0)
r10.L$0 = r5
java.lang.Object r5 = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(r6)
r10.L$1 = r5
r10.I$0 = r11
r10.I$1 = r2
r10.label = r3
java.lang.Object r11 = r0.yield(r4, r10)
if (r11 != r1) goto Lb2
goto Lcf
Lb2:
kotlin.Unit r11 = kotlin.Unit.INSTANCE
return r11
Lb5:
java.lang.CharSequence r2 = r10.$input
java.lang.String r2 = r2.toString()
java.lang.Object r3 = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(r0)
r10.L$0 = r3
java.lang.Object r11 = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(r11)
r10.L$1 = r11
r10.label = r5
java.lang.Object r11 = r0.yield(r2, r10)
if (r11 != r1) goto Ld0
Lcf:
return r1
Ld0:
kotlin.Unit r11 = kotlin.Unit.INSTANCE
return r11
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.Regex$splitToSequence$1.invokeSuspend(java.lang.Object):java.lang.Object");
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(SequenceScope<? super String> sequenceScope, Continuation<? super Unit> continuation) {
return ((Regex$splitToSequence$1) create(sequenceScope, continuation)).invokeSuspend(Unit.INSTANCE);
}
}