* 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>
86 lines
5.1 KiB
Java
86 lines
5.1 KiB
Java
package kotlin.text;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import j$.util.DesugarCollections;
|
|
import java.util.EnumSet;
|
|
import java.util.Iterator;
|
|
import java.util.Set;
|
|
import java.util.regex.Matcher;
|
|
import kotlin.Metadata;
|
|
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.ranges.IntRange;
|
|
import kotlin.ranges.RangesKt;
|
|
|
|
@Metadata(d1 = {"\u0000>\n\u0000\n\u0002\u0010\b\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\"\n\u0000\n\u0002\u0010\u0010\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\r\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u0012\u0010\u0000\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0002\u001a-\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00060\u0005\"\u0014\b\u0000\u0010\u0006\u0018\u0001*\u00020\u0003*\b\u0012\u0004\u0012\u0002H\u00060\u00072\u0006\u0010\b\u001a\u00020\u0001H\u0082\b\u001a\u001e\u0010\t\u001a\u0004\u0018\u00010\n*\u00020\u000b2\u0006\u0010\f\u001a\u00020\u00012\u0006\u0010\r\u001a\u00020\u000eH\u0002\u001a\u0016\u0010\u000f\u001a\u0004\u0018\u00010\n*\u00020\u000b2\u0006\u0010\r\u001a\u00020\u000eH\u0002\u001a\f\u0010\u0010\u001a\u00020\u0011*\u00020\u0012H\u0002\u001a\u0014\u0010\u0010\u001a\u00020\u0011*\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0001H\u0002¨\u0006\u0014"}, d2 = {"toInt", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Lkotlin/text/FlagEnum;", "fromInt", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_T, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "value", "findNext", "Lkotlin/text/MatchResult;", "Ljava/util/regex/Matcher;", "from", "input", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "matchEntire", "range", "Lkotlin/ranges/IntRange;", "Ljava/util/regex/MatchResult;", "groupIndex", "kotlin-stdlib"}, k = 2, mv = {2, 2, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nRegex.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Regex.kt\nkotlin/text/RegexKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,404:1\n1803#2,3:405\n*S KotlinDebug\n*F\n+ 1 Regex.kt\nkotlin/text/RegexKt\n*L\n21#1:405,3\n*E\n"})
|
|
/* loaded from: classes4.dex */
|
|
public final class RegexKt {
|
|
public static final /* synthetic */ MatchResult access$findNext(Matcher matcher, int i, CharSequence charSequence) {
|
|
return findNext(matcher, i, charSequence);
|
|
}
|
|
|
|
public static final /* synthetic */ MatchResult access$matchEntire(Matcher matcher, CharSequence charSequence) {
|
|
return matchEntire(matcher, charSequence);
|
|
}
|
|
|
|
public static final /* synthetic */ int access$toInt(Iterable iterable) {
|
|
return toInt(iterable);
|
|
}
|
|
|
|
public static final MatchResult findNext(Matcher matcher, int i, CharSequence charSequence) {
|
|
if (!matcher.find(i)) {
|
|
return null;
|
|
}
|
|
return new MatcherMatchResult(matcher, charSequence);
|
|
}
|
|
|
|
private static final /* synthetic */ <T extends Enum<T> & FlagEnum> Set<T> fromInt(final int i) {
|
|
Intrinsics.reifiedOperationMarker(4, RequestConfiguration.MAX_AD_CONTENT_RATING_T);
|
|
EnumSet allOf = EnumSet.allOf(Enum.class);
|
|
Intrinsics.checkNotNull(allOf);
|
|
Intrinsics.needClassReification();
|
|
CollectionsKt__MutableCollectionsKt.retainAll(allOf, new Function1<T, Boolean>() { // from class: kotlin.text.RegexKt$fromInt$1$1
|
|
/* JADX WARN: Incorrect types in method signature: (TT;)Ljava/lang/Boolean; */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final Boolean invoke(Enum r3) {
|
|
FlagEnum flagEnum = (FlagEnum) r3;
|
|
return Boolean.valueOf((i & flagEnum.getMask()) == flagEnum.getValue());
|
|
}
|
|
});
|
|
Set<T> unmodifiableSet = DesugarCollections.unmodifiableSet(allOf);
|
|
Intrinsics.checkNotNullExpressionValue(unmodifiableSet, "unmodifiableSet(...)");
|
|
return unmodifiableSet;
|
|
}
|
|
|
|
public static final MatchResult matchEntire(Matcher matcher, CharSequence charSequence) {
|
|
if (!matcher.matches()) {
|
|
return null;
|
|
}
|
|
return new MatcherMatchResult(matcher, charSequence);
|
|
}
|
|
|
|
public static final IntRange range(java.util.regex.MatchResult matchResult) {
|
|
return RangesKt.until(matchResult.start(), matchResult.end());
|
|
}
|
|
|
|
public static final int toInt(Iterable<? extends FlagEnum> iterable) {
|
|
Iterator<? extends FlagEnum> it = iterable.iterator();
|
|
int i = 0;
|
|
while (it.hasNext()) {
|
|
i |= it.next().getValue();
|
|
}
|
|
return i;
|
|
}
|
|
|
|
public static final /* synthetic */ IntRange access$range(java.util.regex.MatchResult matchResult, int i) {
|
|
return range(matchResult, i);
|
|
}
|
|
|
|
public static final IntRange range(java.util.regex.MatchResult matchResult, int i) {
|
|
return RangesKt.until(matchResult.start(i), matchResult.end(i));
|
|
}
|
|
}
|