Skip to content

Commit

Permalink
docs: some improvements on updating guides (#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jun 17, 2019
1 parent 6c80a55 commit d7ae0b7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
6 changes: 3 additions & 3 deletions site/docs-md/android/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ contributors:

<p class="intro">Occasionally, you'll need to make Capacitor updates to your Android app, including updating the version of Capacitor used in your app, or using new ways of interfacing with Capacitor inside of your Android codebase.</a>

## Updating Capacitor Library
## Updating Capacitor Android Library

To update the version of Capacitor used in your app, just npm install latest version:
To update the version of @capacitor/android used in your app, just npm install latest version:

```bash
npm install --save @capacitor/android@latest
npm install @capacitor/android@latest
```

## Updating Android Project
Expand Down
10 changes: 10 additions & 0 deletions site/docs-md/electron/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ contributors:

<p class="intro">Occasionally, you'll need to make Capacitor updates to your Electron app, including new ways of interfacing with Capacitor inside of your Electron codebase.</a>


## Updating Capacitor Electron Library

To update the version of @capacitor/electron used in your app, just npm install latest version from inside electron folder:

```bash
cd electron
npm install @capacitor/electron@latest
```

## Updating Electron Project

To update the base structure of your Electron project, view the [electron-template](https://github.com/ionic-team/capacitor/tree/master/electron-template) project in the Capacitor repo, under the tag corresponding to the latest stable release of Capacitor. The core project is kept simple on purpose: it shouldn't take much time to see what is different from the core project and your project.
8 changes: 3 additions & 5 deletions site/docs-md/ios/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ contributors:

<p class="intro">Occasionally, you'll need to make Capacitor updates to your iOS app, including updating the version of Capacitor used in your app, or using new ways of interfacing with Capacitor inside of your iOS codebase (for example, with new iOS API changes).</p>

## Updating Capacitor Library
## Updating Capacitor iOS Library

To update the version of Capacitor used in your app, just run
To update the version of @capacitor/ios used in your app, just npm install latest version:

```bash
npx cap update ios
npm install @capacitor/ios@latest
```

to update iOS, including any plugins and the core Capacitor libraries.

## Updating iOS Project

To update the base structure of your Xcode project, view the [ios-template](https://github.com/ionic-team/capacitor/tree/master/ios-template) project in the Capacitor repo, under the tag corresponding to the latest stable release of Capacitor. The core project is kept simple on purpose: it shouldn't take much time to see what is different from the core project and your project.
Expand Down

0 comments on commit d7ae0b7

Please sign in to comment.