@capacitor/android 8.0.0-nightly-20250729T150805.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.
@@ -44,7 +44,7 @@ android {
44
44
  namespace "com.getcapacitor.android"
45
45
  compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
46
46
  defaultConfig {
47
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
47
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
48
48
  targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
49
49
  versionCode 1
50
50
  versionName "1.0"
@@ -280,7 +280,7 @@ public class Bridge {
280
280
  webView.setWebChromeClient(new BridgeWebChromeClient(this));
281
281
  webView.setWebViewClient(this.webViewClient);
282
282
 
283
- if (Build.VERSION.SDK_INT >= 24 && config.isResolveServiceWorkerRequests()) {
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
- String webViewPackage = "com.google.android.webview";
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
- // TODO: add support for video capture on Android M and older
317
- // On Android M and lower the VIDEO_CAPTURE_INTENT (e.g.: intent.getData())
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);
@@ -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-20250729T150805.0",
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-20250729T150805.0"
26
+ "@capacitor/core": "^8.0.0-nightly-20250731T150711.0"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"