From ece7c47832da400d279a5d21808879315eaab441 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 24 Mar 2020 20:03:26 +0100 Subject: [PATCH] docs(updating): Include beta 1 updating steps (#2629) --- site/docs-md/android/updating.md | 17 ++++++++++------- site/docs-md/ios/updating.md | 4 ++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/site/docs-md/android/updating.md b/site/docs-md/android/updating.md index e70b47cb9..cf22b18ed 100644 --- a/site/docs-md/android/updating.md +++ b/site/docs-md/android/updating.md @@ -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 @@ -49,7 +49,7 @@ npx cap sync android npx cap open android ``` -Mandatory changes: +Mandatory change: * Use Android X @@ -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 @@ -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` @@ -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) diff --git a/site/docs-md/ios/updating.md b/site/docs-md/ios/updating.md index c6071e4b2..1e10cf863 100644 --- a/site/docs-md/ios/updating.md +++ b/site/docs-md/ios/updating.md @@ -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 @@ -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) \ No newline at end of file +For API changes check the [Release Notes](https://github.com/ionic-team/capacitor/releases/tag/2.0.0-beta.1) \ No newline at end of file