Skip to content

Commit 2f7cc6d

Browse files
committed
Merge branch 'main' into next
2 parents 904b22e + 73d8b6d commit 2f7cc6d

10 files changed

Lines changed: 19 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

66
# [9.0.0-alpha.4](https://github.com/ionic-team/capacitor/compare/9.0.0-alpha.3...9.0.0-alpha.4) (2026-06-19)
7+
## [8.4.1](https://github.com/ionic-team/capacitor/compare/8.4.0...8.4.1) (2026-06-19)
78

89
### Bug Fixes
910

android/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

66
# [9.0.0-alpha.4](https://github.com/ionic-team/capacitor/compare/9.0.0-alpha.3...9.0.0-alpha.4) (2026-06-19)
7+
## [8.4.1](https://github.com/ionic-team/capacitor/compare/8.4.0...8.4.1) (2026-06-19)
78

89
# [8.4.0](https://github.com/ionic-team/capacitor/compare/9.0.0-alpha.2...8.4.0) (2026-06-02)
910

android/capacitor/src/main/java/com/getcapacitor/BridgeWebChromeClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public boolean onShowFileChooser(
282282
boolean captureEnabled = fileChooserParams.isCaptureEnabled();
283283
boolean capturePhoto = captureEnabled && acceptTypes.contains("image/*");
284284
final boolean captureVideo = captureEnabled && acceptTypes.contains("video/*");
285-
if ((capturePhoto || captureVideo)) {
285+
if (capturePhoto || captureVideo) {
286286
if (isMediaCaptureSupported()) {
287287
showMediaCaptureOrFilePicker(filePathCallback, fileChooserParams, captureVideo);
288288
} else {
@@ -447,7 +447,7 @@ public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
447447
}
448448

449449
public boolean isValidMsg(String msg) {
450-
return !(msg.contains("%cresult %c") || (msg.contains("%cnative %c")) || msg.equalsIgnoreCase("console.groupEnd"));
450+
return !(msg.contains("%cresult %c") || msg.contains("%cnative %c") || msg.equalsIgnoreCase("console.groupEnd"));
451451
}
452452

453453
private Uri createImageFileUri() throws IOException {

android/capacitor/src/main/java/com/getcapacitor/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private static String getCopyFilePath(Uri uri, Context context) {
218218
Cursor cursor = context.getContentResolver().query(uri, null, null, null, null);
219219
int nameIndex = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME);
220220
cursor.moveToFirst();
221-
String name = (cursor.getString(nameIndex));
221+
String name = cursor.getString(nameIndex);
222222
String fileName = sanitizeFilename(name);
223223
File file = new File(context.getFilesDir(), fileName);
224224
try {

android/capacitor/src/main/java/com/getcapacitor/WebViewLocalServer.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private boolean isErrorUrl(Uri uri) {
208208
}
209209

210210
private boolean isMainUrl(Uri loadingUrl) {
211-
return (bridge.getServerUrl() == null && loadingUrl.getHost().equalsIgnoreCase(bridge.getHost()));
211+
return bridge.getServerUrl() == null && loadingUrl.getHost().equalsIgnoreCase(bridge.getHost());
212212
}
213213

214214
private boolean isAllowedUrl(Uri loadingUrl) {
@@ -709,31 +709,31 @@ private InputStream getInputStream() {
709709
@Override
710710
public int available() throws IOException {
711711
InputStream is = getInputStream();
712-
return (is != null) ? is.available() : -1;
712+
return is != null ? is.available() : -1;
713713
}
714714

715715
@Override
716716
public int read() throws IOException {
717717
InputStream is = getInputStream();
718-
return (is != null) ? is.read() : -1;
718+
return is != null ? is.read() : -1;
719719
}
720720

721721
@Override
722722
public int read(byte[] b) throws IOException {
723723
InputStream is = getInputStream();
724-
return (is != null) ? is.read(b) : -1;
724+
return is != null ? is.read(b) : -1;
725725
}
726726

727727
@Override
728728
public int read(byte[] b, int off, int len) throws IOException {
729729
InputStream is = getInputStream();
730-
return (is != null) ? is.read(b, off, len) : -1;
730+
return is != null ? is.read(b, off, len) : -1;
731731
}
732732

733733
@Override
734734
public long skip(long n) throws IOException {
735735
InputStream is = getInputStream();
736-
return (is != null) ? is.skip(n) : 0;
736+
return is != null ? is.skip(n) : 0;
737737
}
738738
}
739739

android/capacitor/src/main/java/com/getcapacitor/plugin/CapacitorCookieManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ public void flush() {
192192
@Override
193193
public void put(URI uri, Map<String, List<String>> responseHeaders) {
194194
// make sure our args are valid
195-
if ((uri == null) || (responseHeaders == null)) return;
195+
if (uri == null || responseHeaders == null) return;
196196

197197
// go over the headers
198198
for (String headerKey : responseHeaders.keySet()) {
199199
// ignore headers which aren't cookie related
200-
if ((headerKey == null) || !(headerKey.equalsIgnoreCase("Set-Cookie2") || headerKey.equalsIgnoreCase("Set-Cookie"))) continue;
200+
if (headerKey == null || !(headerKey.equalsIgnoreCase("Set-Cookie2") || headerKey.equalsIgnoreCase("Set-Cookie"))) continue;
201201

202202
// process each of the headers
203203
for (String headerValue : Objects.requireNonNull(responseHeaders.get(headerKey))) {
@@ -215,7 +215,7 @@ public void put(URI uri, Map<String, List<String>> responseHeaders) {
215215
@Override
216216
public Map<String, List<String>> get(URI uri, Map<String, List<String>> requestHeaders) {
217217
// make sure our args are valid
218-
if ((uri == null) || (requestHeaders == null)) throw new IllegalArgumentException("Argument is null");
218+
if (uri == null || requestHeaders == null) throw new IllegalArgumentException("Argument is null");
219219

220220
// save our url once
221221
String url = uri.toString();

android/capacitor/src/main/java/com/getcapacitor/plugin/util/HttpRequestHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ public HttpURLConnectionBuilder setUrlParams(JSObject params, boolean shouldEnco
168168
"://" +
169169
uri.getAuthority() +
170170
uri.getPath() +
171-
((!urlQuery.equals("")) ? "?" + urlQuery : "") +
172-
((uri.getFragment() != null) ? uri.getFragment() : "");
171+
(!urlQuery.equals("") ? "?" + urlQuery : "") +
172+
(uri.getFragment() != null ? uri.getFragment() : "");
173173
this.url = new URL(unEncodedUrlString);
174174

175175
return this;

cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

66
# [9.0.0-alpha.4](https://github.com/ionic-team/capacitor/compare/9.0.0-alpha.3...9.0.0-alpha.4) (2026-06-19)
7+
## [8.4.1](https://github.com/ionic-team/capacitor/compare/8.4.0...8.4.1) (2026-06-19)
78

89
### Bug Fixes
910

core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

66
# [9.0.0-alpha.4](https://github.com/ionic-team/capacitor/compare/9.0.0-alpha.3...9.0.0-alpha.4) (2026-06-19)
7+
## [8.4.1](https://github.com/ionic-team/capacitor/compare/8.4.0...8.4.1) (2026-06-19)
78

89
# [8.4.0](https://github.com/ionic-team/capacitor/compare/9.0.0-alpha.2...8.4.0) (2026-06-02)
910

ios/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

66
# [9.0.0-alpha.4](https://github.com/ionic-team/capacitor/compare/9.0.0-alpha.3...9.0.0-alpha.4) (2026-06-19)
7+
## [8.4.1](https://github.com/ionic-team/capacitor/compare/8.4.0...8.4.1) (2026-06-19)
78

89
# [8.4.0](https://github.com/ionic-team/capacitor/compare/9.0.0-alpha.2...8.4.0) (2026-06-02)
910

0 commit comments

Comments
 (0)