Skip to content

Commit

Permalink
fix: TikTok integrations and settings patches should be merged if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ponces committed Sep 22, 2022
1 parent f0f934f commit f986516
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/services/patcher_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,25 @@ class PatcherAPI {

Future<bool> needsIntegrations(List<Patch> selectedPatches) async {
return selectedPatches.any(
(patch) => patch.dependencies.contains('integrations'),
(patch) => patch.dependencies.any(
(dep) => dep.contains('integrations'),
),
);
}

Future<bool> needsResourcePatching(List<Patch> selectedPatches) async {
return selectedPatches.any(
(patch) => patch.dependencies.any((dep) => dep.contains('resource-')),
(patch) => patch.dependencies.any(
(dep) => dep.contains('resource-'),
),
);
}

Future<bool> needsSettingsPatch(List<Patch> selectedPatches) async {
return selectedPatches.any(
(patch) => patch.dependencies.contains('settings'),
(patch) => patch.dependencies.any(
(dep) => dep.contains('settings'),
),
);
}

Expand Down

0 comments on commit f986516

Please sign in to comment.