@@ -37,7 +37,7 @@ Recommended change:
37
37
38
38
* 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 )
39
39
40
- ### From <= 1.5.1 to 2.0.0-beta.0
40
+ ### From <= 1.5.1 to 2.0.0-beta.1
41
41
42
42
Since Capacitor 2.0 is still beta, install it using ` next ` tag
43
43
@@ -49,7 +49,7 @@ npx cap sync android
49
49
npx cap open android
50
50
```
51
51
52
- Mandatory changes :
52
+ Mandatory change :
53
53
54
54
* Use Android X
55
55
@@ -66,6 +66,8 @@ Mandatory changes:
66
66
67
67
To run it automatically after every package install, add ` "postinstall": "jetifier" ` in the ` package.json ` .
68
68
69
+ Recommended changes:
70
+
69
71
* Create common variables
70
72
71
73
Create a ` variables.gradle ` file inside ` android ` folder with this content
@@ -91,12 +93,9 @@ Mandatory changes:
91
93
92
94
In ` android/build.gradle ` file, add ` apply from: "variables.gradle" `
93
95
94
-
95
- Recommended changes:
96
-
97
96
* Use common variables
98
97
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:
100
99
- ` compileSdkVersion 28 ` to ` compileSdkVersion rootProject.ext.compileSdkVersion `
101
100
- ` minSdkVersion 21 ` to ` minSdkVersion rootProject.ext.minSdkVersion `
102
101
- ` targetSdkVersion 28 ` to ` targetSdkVersion rootProject.ext.targetSdkVersion `
@@ -121,4 +120,8 @@ Recommended changes:
121
120
122
121
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' ` .
123
122
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 )
0 commit comments