Skip to content

Commit 679f026

Browse files
Doc++
1 parent 4ed52e8 commit 679f026

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

README.md

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ application.on(application.resumeEvent, () => {
223223
var application = require("tns-core-modules/application");
224224

225225
application.on(application.resumeEvent, function () {
226-
// call the sync function
226+
// call the sync function
227227
});
228228
```
229229

@@ -266,8 +266,8 @@ nativescript-code-push release <codepush-android-appname> android --targetBinary
266266
```
267267

268268
<details>
269-
<summary>Click here to learn more about `--targetBinaryVersion`</summary>
270-
This specifies the store/binary version of the application you are releasing the update for, so that only users running that version will receive the update, while users running an older and/or newer version of the app binary will not. This is useful for the following reasons:
269+
<summary>Click here to learn more about the --targetBinaryVersion param</summary>
270+
The `targetBinaryVersion` specifies the store/binary version of the application you are releasing the update for, so that only users running that version will receive the update, while users running an older and/or newer version of the app binary will not. This is useful for the following reasons:
271271

272272
1. If a user is running an older binary version, it's possible that there are breaking changes in the CodePush update that wouldn't be compatible with what they're running.
273273

@@ -302,19 +302,6 @@ The following table outlines the version value that CodePush expects your update
302302

303303
</details>
304304

305-
## Rolling back an update
306-
Roll back the latest release (of the `Staging` app, in this case):
307-
308-
> ⚠️ This rolls back the release to the previous CodePush version, NOT the AppStore version (if there was one in between).
309-
310-
```shell
311-
nativescript-code-push rollback CodePushDemoIOS Staging
312-
nativescript-code-push rollback <codepush-appname> Staging
313-
```
314-
315-
Functionally, this will work just like any other CodePush update, but it installs the previous version
316-
and will no longer push the rolled back version to new devices.
317-
318305
## Gaining insight in past releases
319306
Here are a few CodePush CLI commands you may find useful:
320307

@@ -442,7 +429,9 @@ While you could use the `release` command to "manually" migrate an update from o
442429
<details>
443430
<summary>Read this if you want to learn all about rollbacks</summary>
444431

445-
A deployment's release history is immutable, so you cannot delete or remove individual updates once they have been released without deleting all of the deployment's release history. However, if you release an update that is broken or contains unintended features, it is easy to roll it back using the `rollback` command:
432+
A deployment's release history is immutable, so you cannot delete or remove individual updates once they have been released without deleting all of the deployment's release history.
433+
However, if you release an update that is broken or contains unintended features,
434+
it is easy to roll it back using the `rollback` command:
446435

447436
```shell
448437
nativescript-code-push rollback <appName> <deploymentName>
@@ -479,7 +468,9 @@ If you would like to rollback a deployment to a release other than the previous
479468
nativescript-code-push rollback MyAppiOS Production --targetRelease v34
480469
```
481470

482-
*NOTE: The release produced by a rollback will be annotated in the output of the `deployment history` command to help identify them more easily.*
471+
> ⚠️ This rolls back the release to the previous CodePush version, NOT the AppStore version (if there was one in between).
472+
473+
> 💁‍♂️ The release produced by a rollback will be annotated in the output of the `deployment history` command to help identify them more easily.
483474
484475
</details>
485476

0 commit comments

Comments
 (0)