Skip to content

Commit ece7c47

Browse files
authored
docs(updating): Include beta 1 updating steps (#2629)
1 parent 6c0dc4b commit ece7c47

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

site/docs-md/android/updating.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Recommended change:
3737

3838
* 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)
3939

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

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

@@ -49,7 +49,7 @@ npx cap sync android
4949
npx cap open android
5050
```
5151

52-
Mandatory changes:
52+
Mandatory change:
5353

5454
* Use Android X
5555

@@ -66,6 +66,8 @@ Mandatory changes:
6666

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

69+
Recommended changes:
70+
6971
* Create common variables
7072

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

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

94-
95-
Recommended changes:
96-
9796
* Use common variables
9897

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

122121
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'`.
123122

124-
For API changes check the [Release Notes](https://github.com/ionic-team/capacitor/releases/tag/2.0.0-beta.0)
123+
* Change configChanges to avoid app restarts
124+
125+
In `android/app/src/main/AndroidManifest.xml` file, add `|smallestScreenSize|screenLayout|uiMode` in the activity `android:configChanges` attribute.
126+
127+
For API changes check the [Release Notes](https://github.com/ionic-team/capacitor/releases/tag/2.0.0-beta.1)

site/docs-md/ios/updating.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Recommended change:
3636

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

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

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

@@ -60,4 +60,4 @@ Recommended change:
6060

6161
Finally, click the `Update` button.
6262

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

0 commit comments

Comments
 (0)