We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e7aeb5 commit cca0b80Copy full SHA for cca0b80
cli/src/util/iosplugin.ts
@@ -45,12 +45,12 @@ export async function findPluginClasses(files: string[]): Promise<string[]> {
45
const objcPluginRegex = RegExp(/CAP_PLUGIN\(([A-Za-z0-9_-]+)/);
46
47
const swiftMatches = swiftPluginRegex.exec(fileData);
48
- if (swiftMatches?.[1] != null) {
+ if (swiftMatches?.[1] && !classList.includes(swiftMatches[1])) {
49
classList.push(swiftMatches[1]);
50
}
51
52
const objcMatches = objcPluginRegex.exec(fileData);
53
- if (objcMatches?.[1] != null) {
+ if (objcMatches?.[1] && !classList.includes(objcMatches[1])) {
54
classList.push(objcMatches[1]);
55
56
0 commit comments