@capacitor/android 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.5.1](https://github.com/ionic-team/capacitor/compare/3.5.0...3.5.1) (2022-05-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **android:** move initialFocus on webview into config ([#5579](https://github.com/ionic-team/capacitor/issues/5579)) ([8b4e861](https://github.com/ionic-team/capacitor/commit/8b4e861514b0fbe08e9296f49c280234f54742e1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.5.0](https://github.com/ionic-team/capacitor/compare/3.4.3...3.5.0) (2022-04-22)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -447,7 +447,10 @@ public class Bridge {
|
|
|
447
447
|
Logger.debug("WebView background color not applied");
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
|
|
450
|
+
if (config.isInitialFocus()) {
|
|
451
|
+
webView.requestFocusFromTouch();
|
|
452
|
+
}
|
|
453
|
+
|
|
451
454
|
WebView.setWebContentsDebuggingEnabled(this.config.isWebContentsDebuggingEnabled());
|
|
452
455
|
}
|
|
453
456
|
|
|
@@ -40,6 +40,7 @@ public class CapConfig {
|
|
|
40
40
|
private boolean captureInput = false;
|
|
41
41
|
private boolean webContentsDebuggingEnabled = false;
|
|
42
42
|
private boolean loggingEnabled = true;
|
|
43
|
+
private boolean initialFocus = true;
|
|
43
44
|
|
|
44
45
|
// Embedded
|
|
45
46
|
private String startPath;
|
|
@@ -116,6 +117,7 @@ public class CapConfig {
|
|
|
116
117
|
this.captureInput = builder.captureInput;
|
|
117
118
|
this.webContentsDebuggingEnabled = builder.webContentsDebuggingEnabled;
|
|
118
119
|
this.loggingEnabled = builder.loggingEnabled;
|
|
120
|
+
this.initialFocus = builder.initialFocus;
|
|
119
121
|
|
|
120
122
|
// Embedded
|
|
121
123
|
this.startPath = builder.startPath;
|
|
@@ -187,6 +189,8 @@ public class CapConfig {
|
|
|
187
189
|
loggingEnabled = isDebug;
|
|
188
190
|
}
|
|
189
191
|
|
|
192
|
+
initialFocus = JSONUtils.getBoolean(configJSON, "android.initialFocus", initialFocus);
|
|
193
|
+
|
|
190
194
|
// Plugins
|
|
191
195
|
pluginsConfiguration = deserializePluginsConfig(JSONUtils.getObject(configJSON, "plugins"));
|
|
192
196
|
}
|
|
@@ -243,6 +247,10 @@ public class CapConfig {
|
|
|
243
247
|
return loggingEnabled;
|
|
244
248
|
}
|
|
245
249
|
|
|
250
|
+
public boolean isInitialFocus() {
|
|
251
|
+
return initialFocus;
|
|
252
|
+
}
|
|
253
|
+
|
|
246
254
|
public PluginConfig getPluginConfiguration(String pluginId) {
|
|
247
255
|
PluginConfig pluginConfig = pluginsConfiguration.get(pluginId);
|
|
248
256
|
if (pluginConfig == null) {
|
|
@@ -398,6 +406,7 @@ public class CapConfig {
|
|
|
398
406
|
private boolean captureInput = false;
|
|
399
407
|
private Boolean webContentsDebuggingEnabled = null;
|
|
400
408
|
private boolean loggingEnabled = true;
|
|
409
|
+
private boolean initialFocus = false;
|
|
401
410
|
|
|
402
411
|
// Embedded
|
|
403
412
|
private String startPath = null;
|
|
@@ -496,5 +505,10 @@ public class CapConfig {
|
|
|
496
505
|
this.loggingEnabled = enabled;
|
|
497
506
|
return this;
|
|
498
507
|
}
|
|
508
|
+
|
|
509
|
+
public Builder setInitialFocus(boolean focus) {
|
|
510
|
+
this.initialFocus = focus;
|
|
511
|
+
return this;
|
|
512
|
+
}
|
|
499
513
|
}
|
|
500
514
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/android",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "Capacitor: Cross-platform apps with JavaScript and the web",
|
|
5
5
|
"homepage": "https://capacitorjs.com",
|
|
6
6
|
"author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "009064dbf01cbc5900bbc16053b6d7535ad4c2b4"
|
|
31
31
|
}
|