The manifest format was incorrect and/or changed. It was previously
{
"filename1": "hash1",
"filename2": "hash2"
....
}
But it should be
[ "filename1:hash1", "filename2:hash2"... ]
For packageHash, we were using the hash of the content of the zip file, we should be using the hash of the manifest file.
Also, for update packages, consistency checks were failing because we were sending the hash of the diff and not the hash of the latest version.
The code-push client takes the diff, merges with existing package, and computes the hash from that merged version.
The manifest format was incorrect and/or changed. It was previously { "filename1": "hash1", "filename2": "hash2" .... }
But it should be [ "filename1:hash1", "filename2:hash2"... ]
For packageHash, we were using the hash of the content of the zip file, we should be using the hash of the manifest file.
Also, for update packages, consistency checks were failing because we were sending the hash of the diff and not the hash of the latest version. The code-push client takes the diff, merges with existing package, and computes the hash from that merged version.
Fixes #23