mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 05:54:26 +02:00
chore: Miscellaneous code clean-up
This commit is contained in:
parent
b11a720621
commit
a1f9a2786f
2
android/app/proguard-rules.pro
vendored
2
android/app/proguard-rules.pro
vendored
@ -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 { *; }
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user