Skip to content

Commit

Permalink
fix: Use original packageName to get compatible patches
Browse files Browse the repository at this point in the history
  • Loading branch information
ponces committed Sep 20, 2022
1 parent fd099fb commit 4631982
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/services/patcher_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@ class PatcherAPI {
}

Future<List<Patch>> getFilteredPatches(String packageName) async {
String newPackageName = packageName.replaceFirst(
'app.revanced.',
'com.google.',
);
return _patches
.where((patch) =>
!patch.name.contains('settings') &&
patch.compatiblePackages.any((pack) => pack.name == packageName))
patch.compatiblePackages.any((pack) => pack.name == newPackageName))
.toList();
}

Expand Down

0 comments on commit 4631982

Please sign in to comment.