Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(updating): Include beta 1 updating steps #2629

Merged
merged 1 commit into from
Mar 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions site/docs-md/android/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Recommended change:

* Update `strings.xml` file inside `android/app/src/main/res/values/` folder with [this change](https://github.com/ionic-team/capacitor/commit/ed6647b35a8da08d26a7ff13cc9f4fd918b923a0#diff-15c65f143d85c95277307da1bdd0528e)

### From <= 1.5.1 to 2.0.0-beta.0
### From <= 1.5.1 to 2.0.0-beta.1

Since Capacitor 2.0 is still beta, install it using `next` tag

Expand All @@ -49,7 +49,7 @@ npx cap sync android
npx cap open android
```

Mandatory changes:
Mandatory change:

* Use Android X

Expand All @@ -66,6 +66,8 @@ Mandatory changes:

To run it automatically after every package install, add `"postinstall": "jetifier"` in the `package.json`.

Recommended changes:

* Create common variables

Create a `variables.gradle` file inside `android` folder with this content
Expand All @@ -91,12 +93,9 @@ Mandatory changes:

In `android/build.gradle` file, add `apply from: "variables.gradle"`


Recommended changes:

* Use common variables

Since we have common variables, it's recommended to update your project to use them. In the `android/app/build.gradle` file, change:
If you created the `variables.gradle` file, update your project to use them. In the `android/app/build.gradle` file, change:
- `compileSdkVersion 28` to `compileSdkVersion rootProject.ext.compileSdkVersion`
- `minSdkVersion 21` to `minSdkVersion rootProject.ext.minSdkVersion`
- `targetSdkVersion 28` to `targetSdkVersion rootProject.ext.targetSdkVersion`
Expand All @@ -121,4 +120,8 @@ Recommended changes:

In `android/build.gradle` file, change `classpath 'com.google.gms:google-services:4.2.0'` to `classpath 'com.google.gms:google-services:4.3.3'`.

For API changes check the [Release Notes](https://github.com/ionic-team/capacitor/releases/tag/2.0.0-beta.0)
* Change configChanges to avoid app restarts

In `android/app/src/main/AndroidManifest.xml` file, add `|smallestScreenSize|screenLayout|uiMode` in the activity `android:configChanges` attribute.

For API changes check the [Release Notes](https://github.com/ionic-team/capacitor/releases/tag/2.0.0-beta.1)
4 changes: 2 additions & 2 deletions site/docs-md/ios/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Recommended change:

* Update `.gitignore` file inside `ios` folder with [this changes](https://github.com/ionic-team/capacitor/commit/91941975ea5fe5389e0b09bb8331d5cb16ea6a78#diff-ea346566a7f09b5e88ed28d3d6362ec3)

### From <= 1.5.1 to 2.0.0-beta.0
### From <= 1.5.1 to 2.0.0-beta.1

Since Capacitor 2.0 is still beta, install it using `next` tag

Expand All @@ -60,4 +60,4 @@ Recommended change:

Finally, click the `Update` button.

For API changes check the [Release Notes](https://github.com/ionic-team/capacitor/releases/tag/2.0.0-beta.0)
For API changes check the [Release Notes](https://github.com/ionic-team/capacitor/releases/tag/2.0.0-beta.1)