@capacitor/android 4.7.1 → 4.7.2

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
+ ## [4.7.2](https://github.com/ionic-team/capacitor/compare/4.7.1...4.7.2) (2023-03-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **android:** proper app url check for launching intents ([#6451](https://github.com/ionic-team/capacitor/issues/6451)) ([6f8d1ad](https://github.com/ionic-team/capacitor/commit/6f8d1adb6514fe3cd64674215d87ae55d5f12f35))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [4.7.1](https://github.com/ionic-team/capacitor/compare/4.7.0...4.7.1) (2023-03-16)
7
18
 
8
19
  **Note:** Version bump only for package @capacitor/android
@@ -369,7 +369,11 @@ public class Bridge {
369
369
  }
370
370
  }
371
371
 
372
- if (!url.toString().startsWith(appUrl) && !appAllowNavigationMask.matches(url.getHost())) {
372
+ Uri appUri = Uri.parse(appUrl);
373
+ if (
374
+ !(url.getHost().equals(appUri.getHost()) && url.getScheme().equals(appUri.getScheme())) &&
375
+ !appAllowNavigationMask.matches(url.getHost())
376
+ ) {
373
377
  try {
374
378
  Intent openIntent = new Intent(Intent.ACTION_VIEW, url);
375
379
  getContext().startActivity(openIntent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/android",
3
- "version": "4.7.1",
3
+ "version": "4.7.2",
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)",
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "5dc164d02094b03ccea79a3efa97f958feb7eda6"
31
+ "gitHead": "f17e5827ea115250c17c289c3db5432b67df6907"
32
32
  }