Run the 'save_assets_hashes.js' in the 'after_prepare' step #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For the iOS version of our App, we run the 'cordova prepare ios' command and then perform the actual build and debugging from within Xcode. As a result of this, the 'save_assets_hashes.js' is not being run and the plugin simply doesn't do anything at runtime.
I've performed the minimal change of running the 'save_assets_hashes.js' both in the 'after_prepare' and in the 'before_compile' so now the plugin functions correctly and we can build and debug from within Xcode.
I've kept the 'before_compile' because there is - of course - a small chance of another plugin modifying the assets during the 'after_prepare'. None of the many plugins we're using does so.
I've moved the 'clear_assets_hashes.js' to the 'before_clean' hook.