Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

[Android] CodePushHash.json is not JSON #577

@insaindesign

Description

@insaindesign

CodePushHash.json is just storing a string, and not JSON, so the file type should NOT be JSON. This breaks flow type checking, and generally just seems confusing.

The file is read as a string from https://github.com/Microsoft/react-native-code-push/blob/3dce59f36e0f780f1773342e20c56fe870ba019a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java#L110 and written to as a crypto hex string in https://github.com/Microsoft/react-native-code-push/blob/bb04535fbef4cb580da4c29ae628452cc0774fc8/scripts/generateBundledResourcesHash.js#L74. At no point is it encoded or needing to be decoded as JSON.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions