Skip to content

Commit a1f9a27

Browse files
authored
chore: Miscellaneous code clean-up
1 parent b11a720 commit a1f9a27

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

android/app/proguard-rules.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
-dontwarn java.awt.**
1414
-dontwarn javax.**
1515

16-
# Keep this for Share Plus or else you can't share log in Settings
16+
# Required for Share Plus, ref: ReVanced/revanced-manager#2474
1717
-keep interface android.content.res.XmlResourceParser { *; }

lib/utils/check_for_supported_patch.dart

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ bool isPatchSupported(Patch patch) {
1818
bool hasUnsupportedRequiredOption(List<Option> options, Patch patch) {
1919
final List<String> requiredOptionsType = [];
2020
final List<String> supportedOptionsType = [
21-
'kotlin.String',
22-
'kotlin.Int',
23-
'kotlin.Boolean',
24-
'kotlin.StringArray',
25-
'kotlin.IntArray',
26-
'kotlin.LongArray',
21+
'kotlin.String',
22+
'kotlin.Int',
23+
'kotlin.Boolean',
24+
'kotlin.StringArray',
25+
'kotlin.IntArray',
26+
'kotlin.LongArray',
2727
];
2828
for (final Option option in options) {
2929
if (option.required &&
@@ -40,7 +40,7 @@ bool hasUnsupportedRequiredOption(List<Option> options, Patch patch) {
4040
for (final String optionType in requiredOptionsType) {
4141
if (!supportedOptionsType.contains(optionType)) {
4242
if (kDebugMode) {
43-
print('${patch.name} has unsupported required patch option: $requiredOptionsType');
43+
print('PatchCompatibilityCheck: ${patch.name} has unsupported required patch option type: $requiredOptionsType');
4444
}
4545
return true;
4646
}

0 commit comments

Comments
 (0)