chore: Miscellaneous code clean-up

This commit is contained in:
Pun Butrach 2025-04-14 17:17:51 +07:00 committed by GitHub
parent b11a720621
commit a1f9a2786f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

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

View File

@ -18,12 +18,12 @@ bool isPatchSupported(Patch patch) {
bool hasUnsupportedRequiredOption(List<Option> options, Patch patch) { bool hasUnsupportedRequiredOption(List<Option> options, Patch patch) {
final List<String> requiredOptionsType = []; final List<String> requiredOptionsType = [];
final List<String> supportedOptionsType = [ final List<String> supportedOptionsType = [
'kotlin.String', 'kotlin.String',
'kotlin.Int', 'kotlin.Int',
'kotlin.Boolean', 'kotlin.Boolean',
'kotlin.StringArray', 'kotlin.StringArray',
'kotlin.IntArray', 'kotlin.IntArray',
'kotlin.LongArray', 'kotlin.LongArray',
]; ];
for (final Option option in options) { for (final Option option in options) {
if (option.required && if (option.required &&
@ -40,7 +40,7 @@ bool hasUnsupportedRequiredOption(List<Option> options, Patch patch) {
for (final String optionType in requiredOptionsType) { for (final String optionType in requiredOptionsType) {
if (!supportedOptionsType.contains(optionType)) { if (!supportedOptionsType.contains(optionType)) {
if (kDebugMode) { if (kDebugMode) {
print('${patch.name} has unsupported required patch option: $requiredOptionsType'); print('PatchCompatibilityCheck: ${patch.name} has unsupported required patch option type: $requiredOptionsType');
} }
return true; return true;
} }