@capacitor/android 8.0.0-nightly-20250730T150636.0 → 8.0.0-nightly-20250731T150711.0
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/capacitor/src/main/java/com/getcapacitor/Bridge.java +2 -6
- package/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java +2 -7
- package/capacitor/src/main/java/com/getcapacitor/BridgeWebViewClient.java +0 -6
- package/capacitor/src/main/java/com/getcapacitor/plugin/util/CapacitorHttpUrlConnection.java +1 -6
- package/package.json +2 -2
|
@@ -280,7 +280,7 @@ public class Bridge {
|
|
|
280
280
|
webView.setWebChromeClient(new BridgeWebChromeClient(this));
|
|
281
281
|
webView.setWebViewClient(this.webViewClient);
|
|
282
282
|
|
|
283
|
-
if (
|
|
283
|
+
if (config.isResolveServiceWorkerRequests()) {
|
|
284
284
|
ServiceWorkerController swController = ServiceWorkerController.getInstance();
|
|
285
285
|
swController.setServiceWorkerClient(
|
|
286
286
|
new ServiceWorkerClient() {
|
|
@@ -348,11 +348,7 @@ public class Bridge {
|
|
|
348
348
|
|
|
349
349
|
// Otherwise manually check WebView versions
|
|
350
350
|
try {
|
|
351
|
-
|
|
352
|
-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
|
353
|
-
webViewPackage = "com.android.chrome";
|
|
354
|
-
}
|
|
355
|
-
PackageInfo info = InternalUtils.getPackageInfo(pm, webViewPackage);
|
|
351
|
+
PackageInfo info = InternalUtils.getPackageInfo(pm, "com.android.chrome");
|
|
356
352
|
String majorVersionStr = info.versionName.split("\\.")[0];
|
|
357
353
|
int majorVersion = Integer.parseInt(majorVersionStr);
|
|
358
354
|
return majorVersion >= config.getMinWebViewVersion();
|
|
@@ -313,13 +313,8 @@ public class BridgeWebChromeClient extends WebChromeClient {
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
private void showMediaCaptureOrFilePicker(ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams, boolean isVideo) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
// returns a file:// URI instead of the expected content:// URI.
|
|
319
|
-
// So we disable it for now because it requires a bit more work
|
|
320
|
-
boolean isVideoCaptureSupported = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N;
|
|
321
|
-
boolean shown = false;
|
|
322
|
-
if (isVideo && isVideoCaptureSupported) {
|
|
316
|
+
boolean shown;
|
|
317
|
+
if (isVideo) {
|
|
323
318
|
shown = showVideoCapturePicker(filePathCallback);
|
|
324
319
|
} else {
|
|
325
320
|
shown = showImageCapturePicker(filePathCallback);
|
|
@@ -29,12 +29,6 @@ public class BridgeWebViewClient extends WebViewClient {
|
|
|
29
29
|
return bridge.launchIntent(url);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
@Deprecated
|
|
33
|
-
@Override
|
|
34
|
-
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
|
35
|
-
return bridge.launchIntent(Uri.parse(url));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
32
|
@Override
|
|
39
33
|
public void onPageFinished(WebView view, String url) {
|
|
40
34
|
super.onPageFinished(view, url);
|
package/capacitor/src/main/java/com/getcapacitor/plugin/util/CapacitorHttpUrlConnection.java
CHANGED
|
@@ -442,12 +442,7 @@ public class CapacitorHttpUrlConnection implements ICapacitorHttpUrlConnection {
|
|
|
442
442
|
* Builds and returns a locale string describing the device's current locale preferences.
|
|
443
443
|
*/
|
|
444
444
|
private String buildDefaultAcceptLanguageProperty() {
|
|
445
|
-
Locale locale;
|
|
446
|
-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
|
447
|
-
locale = LocaleList.getDefault().get(0);
|
|
448
|
-
} else {
|
|
449
|
-
locale = Locale.getDefault();
|
|
450
|
-
}
|
|
445
|
+
Locale locale = LocaleList.getDefault().get(0);
|
|
451
446
|
String result = "";
|
|
452
447
|
String lang = locale.getLanguage();
|
|
453
448
|
String country = locale.getCountry();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/android",
|
|
3
|
-
"version": "8.0.0-nightly-
|
|
3
|
+
"version": "8.0.0-nightly-20250731T150711.0",
|
|
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)",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"verify": "./gradlew clean lint build test -b capacitor/build.gradle"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@capacitor/core": "^8.0.0-nightly-
|
|
26
|
+
"@capacitor/core": "^8.0.0-nightly-20250731T150711.0"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|