@bravemobile/react-native-code-push 9.0.0-beta.6 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CodePush.js +13 -10
- package/README.md +265 -369
- package/package.json +1 -1
- package/docs/setup-android.md +0 -482
- package/docs/setup-ios.md +0 -280
package/CodePush.js
CHANGED
|
@@ -99,26 +99,29 @@ async function checkForUpdate(handleBinaryVersionMismatchCallback = null) {
|
|
|
99
99
|
is_available: latestReleaseInfo.enabled,
|
|
100
100
|
package_hash: latestReleaseInfo.packageHash,
|
|
101
101
|
is_mandatory: isMandatory,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
/**
|
|
103
|
+
* The `ReleaseHistoryInterface` data returned by the `releaseHistoryFetcher` function is
|
|
104
|
+
* based on the assumption that it is compatible with the current runtime binary.
|
|
105
|
+
* (because it is querying the update history deployed for the current binary version)
|
|
106
|
+
* Therefore, the current runtime binary version should be passed as it is.
|
|
107
|
+
*/
|
|
105
108
|
target_binary_range: updateRequest.app_version,
|
|
106
109
|
/**
|
|
107
110
|
* Retrieve the update version from the ReleaseHistory and store it in the label.
|
|
108
111
|
* This information can be accessed at runtime through the CodePush bundle metadata.
|
|
109
112
|
*/
|
|
110
113
|
label: latestVersion,
|
|
111
|
-
// false
|
|
114
|
+
// `false` should be passed to work properly
|
|
112
115
|
update_app_version: false,
|
|
113
|
-
//
|
|
114
|
-
description:
|
|
115
|
-
//
|
|
116
|
+
// currently not used.
|
|
117
|
+
description: "",
|
|
118
|
+
// not used at runtime.
|
|
116
119
|
is_disabled: false,
|
|
117
|
-
//
|
|
120
|
+
// not used at runtime.
|
|
118
121
|
package_size: 0,
|
|
119
|
-
//
|
|
122
|
+
// not used at runtime.
|
|
120
123
|
should_run_binary_version: false,
|
|
121
|
-
}
|
|
124
|
+
};
|
|
122
125
|
|
|
123
126
|
return mapToRemotePackageMetadata(updateInfo);
|
|
124
127
|
}
|