I would like to clarify on how code-push works:
1) I am trying to test code-push on a Staging version by switching a flag within the js code from true to false. However, after release-react, I am getting:
[Error] The uploaded package was not released because it is identical to the contents of the specified deployment's current release.
So my question is how does it know that the js bundle was updated? Should one specify somewhere the version code when he is releasing an update?
2) What happens if there was a "store" release with the same binary version but there is also a code-push release in prior (older version). Will code-push update the app to its own latest version, although it is de facto outdated or there is a way code-push knows bundle versioning stuff on its own somehow?
Thanks.
Hi @bogomazov, thanks for your question.
<relativeFilePath>: <SHA256HashOfFileContents> and then stringify this array and hash that to get a single directoryHash). So if you change file contents then new hash will be generated and code push consider this bundle is updated.Please let us know if it helps or you have more questions.
Hey @bogomazov, I believe we can close the issue if you have no more questions at this time, please do not hesitate to reach us if any other questions or if you see any issues with code push.