Skip to content

Commit 3d3d125

Browse files
Switch ios-swift-support.js hook to before_build
Change the timing of the hooks execution.
1 parent bd2a738 commit 3d3d125

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugin.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
</engines>
2020

2121
<platform name="ios">
22-
23-
<hook type="after_prepare" src="extra/hooks/iosrtc-swift-support.js" />
22+
<!-- Using `before_build` instead of `after_prepare` hook because in some environments the hook could get triggered
23+
before the npm dependencies would be installed, which would then break the build process. -->
24+
<hook type="before_build" src="extra/hooks/iosrtc-swift-support.js" />
2425

2526
<config-file target="config.xml" parent="/*">
2627
<feature name="iosrtcPlugin">

0 commit comments

Comments
 (0)