Skip to content

Commit e4491fd

Browse files
committed
Merge pull request #197 from Microsoft/doc_update
Version bump and doc updates
2 parents a61d0c4 + 18e0ebe commit e4491fd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CodePush.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'CodePush'
4-
s.version = '1.7.2-beta'
4+
s.version = '1.7.3-beta'
55
s.summary = 'React Native plugin for the CodePush service'
66
s.author = 'Microsoft Corporation'
77
s.license = 'MIT'

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,14 @@ codePush.getCurrentPackage(): Promise<LocalPackage>;
399399
400400
Retrieves the metadata about the currently installed "package" (e.g. description, installation time). This can be useful for scenarios such as displaying a "what's new?" dialog after an update has been applied or checking whether there is a pending update that is waiting to be applied via a resume or restart.
401401
402-
This method returns a `Promise` which resolves to the [`LocalPackage`](#localpackage) instance that represents the currently running update.
402+
This method returns a `Promise` which resolves to one of two possible values:
403+
404+
1. `null` if the app is currently running the JS bundle from the binary and not a CodePush update. This occurs in the following scenarios:
405+
406+
1. The end-user installed the app binary and has yet to install a CodePush update
407+
1. The end-user installed an update of the binary (e.g. from the store), which cleared away the old CodePush updates, and gave precedence back to the JS binary in the binary.
408+
409+
2. A [`LocalPackage`](#localpackage) instance which represents the metadata for the currently running CodePush update.
403410
404411
Example Usage:
405412

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-code-push",
3-
"version": "1.7.2-beta",
3+
"version": "1.7.3-beta",
44
"description": "React Native plugin for the CodePush service",
55
"main": "CodePush.js",
66
"homepage": "https://microsoft.github.io/code-push",

0 commit comments

Comments
 (0)