From 99d16fb32348894555036389a27e27b5c3b65b2a Mon Sep 17 00:00:00 2001 From: OS-pedrogustavobilro Date: Fri, 7 Aug 2026 12:32:55 +0100 Subject: [PATCH 1/6] ci: update node to 24 and update action versions --- .github/workflows/bot.yml | 2 +- .github/workflows/ci.yml | 48 +++++++++---------- .github/workflows/dev-releases-for-pr.yml | 18 +++---- .github/workflows/publish-android.yml | 2 +- .github/workflows/publish-ios.yml | 6 +-- .github/workflows/publish-npm-alpha.yml | 6 +-- .github/workflows/publish-npm-beta.yml | 6 +-- .github/workflows/publish-npm-dev.yml | 6 +-- .../workflows/publish-npm-latest-from-pre.yml | 6 +-- .github/workflows/publish-npm-latest.yml | 6 +-- .github/workflows/publish-npm-nightly.yml | 6 +-- .github/workflows/publish-npm-rc.yml | 6 +-- 12 files changed, 59 insertions(+), 59 deletions(-) diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index 87d895ff9..df788ee0d 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -13,7 +13,7 @@ jobs: name: ${{ github.event_name }}/${{ github.event.action }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 - uses: ionic-team/bot@main with: repo-token: ${{ secrets.BOT_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 449a87e03..3d54f8355 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,13 +22,13 @@ jobs: with: access_token: ${{ secrets.GITHUB_TOKEN }} - name: Get Latest - uses: actions/setup-node@v6 + uses: actions/setup-node@v7 with: - node-version: 22 - - uses: actions/checkout@v5 + node-version: 24 + - uses: actions/checkout@v7 - name: Restore Dependency Cache id: cache-modules - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: | node_modules @@ -54,13 +54,13 @@ jobs: needs: - setup steps: - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 - - uses: actions/checkout@v5 + node-version: 24 + - uses: actions/checkout@v7 - name: Restore Dependency Cache id: cache-modules - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: | node_modules @@ -80,13 +80,13 @@ jobs: matrix: plugin: ${{ fromJson(needs.setup.outputs.plugins) }} steps: - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 - - uses: actions/checkout@v5 + node-version: 24 + - uses: actions/checkout@v7 - name: Restore Dependency Cache id: cache-modules - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: | node_modules @@ -113,13 +113,13 @@ jobs: - run: sudo xcode-select --switch ${{ matrix.xcode }} - run: xcrun simctl list > /dev/null - run: xcodebuild -downloadPlatform iOS - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 - - uses: actions/checkout@v5 + node-version: 24 + - uses: actions/checkout@v7 - name: Restore Dependency Cache id: cache-modules - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: | node_modules @@ -141,18 +141,18 @@ jobs: matrix: plugin: ${{ fromJson(needs.setup.outputs.plugins) }} steps: - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 + node-version: 24 - name: set up JDK 21 uses: actions/setup-java@v5 with: java-version: '21' distribution: 'zulu' - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 - name: Restore Dependency Cache id: cache-modules - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: | node_modules @@ -175,13 +175,13 @@ jobs: matrix: plugin: ${{ fromJson(needs.setup.outputs.plugins) }} steps: - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 - - uses: actions/checkout@v5 + node-version: 24 + - uses: actions/checkout@v7 - name: Restore Dependency Cache id: cache-modules - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: | node_modules diff --git a/.github/workflows/dev-releases-for-pr.yml b/.github/workflows/dev-releases-for-pr.yml index 12c52e150..4373c0853 100644 --- a/.github/workflows/dev-releases-for-pr.yml +++ b/.github/workflows/dev-releases-for-pr.yml @@ -23,13 +23,13 @@ jobs: with: access_token: ${{ secrets.GITHUB_TOKEN }} - name: Get Latest - uses: actions/setup-node@v6 + uses: actions/setup-node@v7 with: - node-version: 22 - - uses: actions/checkout@v5 + node-version: 24 + - uses: actions/checkout@v7 - name: Restore Dependency Cache id: cache-modules - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: | node_modules @@ -61,13 +61,13 @@ jobs: matrix: plugin: ${{ fromJson(needs.setup.outputs.plugins) }} steps: - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 - - uses: actions/checkout@v5 + node-version: 24 + - uses: actions/checkout@v7 - name: Restore Dependency Cache id: cache-modules - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: | node_modules @@ -93,7 +93,7 @@ jobs: uses: martinbeentjes/npm-get-version-action@v1.3.1 with: path: ${{ matrix.plugin }} - - uses: mshick/add-pr-comment@v2 + - uses: mshick/add-pr-comment@v3 with: message: | Released dev build of ${{ matrix.plugin }} with dev version: ${{ steps.package-version.outputs.current-version }} diff --git a/.github/workflows/publish-android.yml b/.github/workflows/publish-android.yml index 615fe91c4..318f3f947 100644 --- a/.github/workflows/publish-android.yml +++ b/.github/workflows/publish-android.yml @@ -46,7 +46,7 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} diff --git a/.github/workflows/publish-ios.yml b/.github/workflows/publish-ios.yml index 867f76a93..14d65ee3b 100644 --- a/.github/workflows/publish-ios.yml +++ b/.github/workflows/publish-ios.yml @@ -18,10 +18,10 @@ jobs: - run: sudo xcode-select --switch /Applications/Xcode_26.0.app - run: xcrun simctl list > /dev/null - run: xcodebuild -downloadPlatform iOS - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 - - uses: actions/checkout@v5 + node-version: 24 + - uses: actions/checkout@v7 - name: Install Cocoapods run: | gem install cocoapods diff --git a/.github/workflows/publish-npm-alpha.yml b/.github/workflows/publish-npm-alpha.yml index d5a5e1012..99ed8927e 100644 --- a/.github/workflows/publish-npm-alpha.yml +++ b/.github/workflows/publish-npm-alpha.yml @@ -11,13 +11,13 @@ jobs: runs-on: macos-15 timeout-minutes: 30 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ cache: npm cache-dependency-path: '**/package.json' diff --git a/.github/workflows/publish-npm-beta.yml b/.github/workflows/publish-npm-beta.yml index 29a075ef5..5c294411e 100644 --- a/.github/workflows/publish-npm-beta.yml +++ b/.github/workflows/publish-npm-beta.yml @@ -11,13 +11,13 @@ jobs: runs-on: macos-15 timeout-minutes: 30 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ cache: npm cache-dependency-path: '**/package.json' diff --git a/.github/workflows/publish-npm-dev.yml b/.github/workflows/publish-npm-dev.yml index 476379719..d87422baf 100644 --- a/.github/workflows/publish-npm-dev.yml +++ b/.github/workflows/publish-npm-dev.yml @@ -11,13 +11,13 @@ jobs: runs-on: macos-15 timeout-minutes: 30 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ cache: npm cache-dependency-path: '**/package.json' diff --git a/.github/workflows/publish-npm-latest-from-pre.yml b/.github/workflows/publish-npm-latest-from-pre.yml index 40774817a..1c1fe0bac 100644 --- a/.github/workflows/publish-npm-latest-from-pre.yml +++ b/.github/workflows/publish-npm-latest-from-pre.yml @@ -19,13 +19,13 @@ jobs: runs-on: macos-15 timeout-minutes: 30 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ cache: npm cache-dependency-path: '**/package.json' diff --git a/.github/workflows/publish-npm-latest.yml b/.github/workflows/publish-npm-latest.yml index ee73c6777..694f967cb 100644 --- a/.github/workflows/publish-npm-latest.yml +++ b/.github/workflows/publish-npm-latest.yml @@ -19,13 +19,13 @@ jobs: runs-on: macos-15 timeout-minutes: 30 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ cache: npm cache-dependency-path: '**/package.json' diff --git a/.github/workflows/publish-npm-nightly.yml b/.github/workflows/publish-npm-nightly.yml index a1f5bc7ba..3f5fe6f11 100644 --- a/.github/workflows/publish-npm-nightly.yml +++ b/.github/workflows/publish-npm-nightly.yml @@ -14,13 +14,13 @@ jobs: runs-on: macos-15 timeout-minutes: 30 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ cache: npm cache-dependency-path: '**/package.json' diff --git a/.github/workflows/publish-npm-rc.yml b/.github/workflows/publish-npm-rc.yml index 9dae59b55..610590a8a 100644 --- a/.github/workflows/publish-npm-rc.yml +++ b/.github/workflows/publish-npm-rc.yml @@ -11,13 +11,13 @@ jobs: runs-on: macos-15 timeout-minutes: 30 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v7 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ cache: npm cache-dependency-path: '**/package.json' From 6fa307297f388d182e823ee10a599a7031b4d53b Mon Sep 17 00:00:00 2001 From: OS-pedrogustavobilro Date: Fri, 7 Aug 2026 12:33:51 +0100 Subject: [PATCH 2/6] ci: Update changed-packages action to use node24 There was no node22 to use last year, but thre is node24 to use this year References: - https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax#runsusing-for-javascript-actions - https://outsystemsrd.atlassian.net/browse/RMET-4731 --- .github/actions/changed-packages/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/changed-packages/action.yml b/.github/actions/changed-packages/action.yml index 0ca05df81..aea8b3f0f 100644 --- a/.github/actions/changed-packages/action.yml +++ b/.github/actions/changed-packages/action.yml @@ -8,5 +8,5 @@ outputs: paths: description: An array of relative paths to packages that were changed runs: - using: node20 + using: node24 main: main.js From 95de039883b54534a0430eb21c23f7423ab366f9 Mon Sep 17 00:00:00 2001 From: OS-pedrogustavobilro Date: Fri, 7 Aug 2026 13:06:16 +0100 Subject: [PATCH 3/6] tmp: change to trigger ci --- action-sheet/CHANGELOG.md | 1 + app-launcher/CHANGELOG.md | 1 + app/CHANGELOG.md | 1 + browser/CHANGELOG.md | 1 + clipboard/CHANGELOG.md | 1 + device/CHANGELOG.md | 1 + dialog/CHANGELOG.md | 1 + local-notifications/CHANGELOG.md | 1 + motion/CHANGELOG.md | 1 + network/CHANGELOG.md | 1 + preferences/CHANGELOG.md | 1 + push-notifications/CHANGELOG.md | 1 + screen-orientation/CHANGELOG.md | 1 + screen-reader/CHANGELOG.md | 1 + share/CHANGELOG.md | 1 + splash-screen/CHANGELOG.md | 1 + status-bar/CHANGELOG.md | 1 + text-zoom/CHANGELOG.md | 1 + toast/CHANGELOG.md | 1 + 19 files changed, 19 insertions(+) diff --git a/action-sheet/CHANGELOG.md b/action-sheet/CHANGELOG.md index ac20d8c38..1d9524f44 100644 --- a/action-sheet/CHANGELOG.md +++ b/action-sheet/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/app-launcher/CHANGELOG.md b/app-launcher/CHANGELOG.md index 7ace16148..3cd0d1017 100644 --- a/app-launcher/CHANGELOG.md +++ b/app-launcher/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/app/CHANGELOG.md b/app/CHANGELOG.md index 5fa026f0a..5aae1398b 100644 --- a/app/CHANGELOG.md +++ b/app/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/browser/CHANGELOG.md b/browser/CHANGELOG.md index cd770cee0..ca92c0868 100644 --- a/browser/CHANGELOG.md +++ b/browser/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/clipboard/CHANGELOG.md b/clipboard/CHANGELOG.md index 6d8ddb976..24d73a5ae 100644 --- a/clipboard/CHANGELOG.md +++ b/clipboard/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/device/CHANGELOG.md b/device/CHANGELOG.md index a78dd20cb..12c69c37c 100644 --- a/device/CHANGELOG.md +++ b/device/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/dialog/CHANGELOG.md b/dialog/CHANGELOG.md index 15736b15e..7b796146b 100644 --- a/dialog/CHANGELOG.md +++ b/dialog/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/local-notifications/CHANGELOG.md b/local-notifications/CHANGELOG.md index e4cb4c16a..286436cb5 100644 --- a/local-notifications/CHANGELOG.md +++ b/local-notifications/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/motion/CHANGELOG.md b/motion/CHANGELOG.md index 4eeebd7c1..a4daa5ada 100644 --- a/motion/CHANGELOG.md +++ b/motion/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/network/CHANGELOG.md b/network/CHANGELOG.md index a2d661f72..108cb2201 100644 --- a/network/CHANGELOG.md +++ b/network/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/preferences/CHANGELOG.md b/preferences/CHANGELOG.md index 7fc1b1f69..dceae7df1 100644 --- a/preferences/CHANGELOG.md +++ b/preferences/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/push-notifications/CHANGELOG.md b/push-notifications/CHANGELOG.md index a75f0ff70..50b23df81 100644 --- a/push-notifications/CHANGELOG.md +++ b/push-notifications/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/screen-orientation/CHANGELOG.md b/screen-orientation/CHANGELOG.md index 82db35e27..68ad3b40f 100644 --- a/screen-orientation/CHANGELOG.md +++ b/screen-orientation/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/screen-reader/CHANGELOG.md b/screen-reader/CHANGELOG.md index cafbfee33..c25c29896 100644 --- a/screen-reader/CHANGELOG.md +++ b/screen-reader/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/share/CHANGELOG.md b/share/CHANGELOG.md index fc6b913e3..2e8e11a6b 100644 --- a/share/CHANGELOG.md +++ b/share/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/splash-screen/CHANGELOG.md b/splash-screen/CHANGELOG.md index 094bae77c..d9c7443e6 100644 --- a/splash-screen/CHANGELOG.md +++ b/splash-screen/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/status-bar/CHANGELOG.md b/status-bar/CHANGELOG.md index 8240aaee8..d046d819e 100644 --- a/status-bar/CHANGELOG.md +++ b/status-bar/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/text-zoom/CHANGELOG.md b/text-zoom/CHANGELOG.md index 98e18a91b..5ce39695b 100644 --- a/text-zoom/CHANGELOG.md +++ b/text-zoom/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/toast/CHANGELOG.md b/toast/CHANGELOG.md index bd089d75b..ee2915fe8 100644 --- a/toast/CHANGELOG.md +++ b/toast/CHANGELOG.md @@ -1,5 +1,6 @@ # Change Log + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. From 3f28d0bd01193386bb8bc11e6e4bf5113efc23a9 Mon Sep 17 00:00:00 2001 From: OS-pedrogustavobilro Date: Fri, 7 Aug 2026 13:30:59 +0100 Subject: [PATCH 4/6] chore: fix lint issues --- .../capacitorjs/plugins/app/AppPlugin.java | 26 +++++----- .../plugins/splashscreen/SplashScreen.java | 49 +++++++++++-------- 2 files changed, 44 insertions(+), 31 deletions(-) diff --git a/app/android/src/main/java/com/capacitorjs/plugins/app/AppPlugin.java b/app/android/src/main/java/com/capacitorjs/plugins/app/AppPlugin.java index 2989f0b22..ec9ab04bb 100644 --- a/app/android/src/main/java/com/capacitorjs/plugins/app/AppPlugin.java +++ b/app/android/src/main/java/com/capacitorjs/plugins/app/AppPlugin.java @@ -53,17 +53,21 @@ public void load() { this.backButtonHandlerEnabled = !getConfig().getBoolean("disableBackButtonHandler", false); this.edgeGestureHandlerEnabled = canUseEdgeGesture && getConfig().getBoolean("enableEdgeGestureHandler", false); - bridge.getApp().setStatusChangeListener((isActive) -> { - Logger.debug(getLogTag(), "Firing change: " + isActive); - JSObject data = new JSObject(); - data.put("isActive", isActive); - notifyListeners(EVENT_STATE_CHANGE, data, false); - }); - - bridge.getApp().setAppRestoredListener((result) -> { - Logger.debug(getLogTag(), "Firing restored result"); - notifyListeners(EVENT_RESTORED_RESULT, result.getWrappedResult(), true); - }); + bridge + .getApp() + .setStatusChangeListener((isActive) -> { + Logger.debug(getLogTag(), "Firing change: " + isActive); + JSObject data = new JSObject(); + data.put("isActive", isActive); + notifyListeners(EVENT_STATE_CHANGE, data, false); + }); + + bridge + .getApp() + .setAppRestoredListener((result) -> { + Logger.debug(getLogTag(), "Firing restored result"); + notifyListeners(EVENT_RESTORED_RESULT, result.getWrappedResult(), true); + }); this.onBackPressedCallback = new OnBackPressedCallback(false) { @Override diff --git a/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java b/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java index 756a2d6d5..af87b3ecf 100644 --- a/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java +++ b/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java @@ -138,14 +138,17 @@ public boolean onPreDraw() { if (!isVisible && !isHiding) { isVisible = true; - new Handler(context.getMainLooper()).postDelayed(() -> { - // Splash screen is done... start drawing content. - if (settings.isAutoHide()) { - isVisible = false; - onPreDrawListener = null; - content.getViewTreeObserver().removeOnPreDrawListener(this); - } - }, settings.getShowDuration()); + new Handler(context.getMainLooper()).postDelayed( + () -> { + // Splash screen is done... start drawing content. + if (settings.isAutoHide()) { + isVisible = false; + onPreDrawListener = null; + content.getViewTreeObserver().removeOnPreDrawListener(this); + } + }, + settings.getShowDuration() + ); } // Not ready to dismiss splash screen @@ -222,13 +225,16 @@ private void showDialog( isVisible = true; if (settings.isAutoHide()) { - new Handler(context.getMainLooper()).postDelayed(() -> { - hideDialog(activity, isLaunchSplash); + new Handler(context.getMainLooper()).postDelayed( + () -> { + hideDialog(activity, isLaunchSplash); - if (splashListener != null) { - splashListener.completed(); - } - }, settings.getShowDuration()); + if (splashListener != null) { + splashListener.completed(); + } + }, + settings.getShowDuration() + ); } else { // If no autoHide, call complete if (splashListener != null) { @@ -391,13 +397,16 @@ public void onAnimationEnd(Animator animator) { isVisible = true; if (settings.isAutoHide()) { - new Handler(context.getMainLooper()).postDelayed(() -> { - hide(settings.getFadeOutDuration(), isLaunchSplash); + new Handler(context.getMainLooper()).postDelayed( + () -> { + hide(settings.getFadeOutDuration(), isLaunchSplash); - if (splashListener != null) { - splashListener.completed(); - } - }, settings.getShowDuration()); + if (splashListener != null) { + splashListener.completed(); + } + }, + settings.getShowDuration() + ); } else { // If no autoHide, call complete if (splashListener != null) { From d2c1c06e7b475bc1957b9de4d8ee82334c9f07bf Mon Sep 17 00:00:00 2001 From: OS-pedrogustavobilro Date: Fri, 7 Aug 2026 13:39:28 +0100 Subject: [PATCH 5/6] chore: more lint fixes --- .../capacitorjs/plugins/app/AppPlugin.java | 26 +++++----- .../plugins/splashscreen/SplashScreen.java | 49 ++++++++----------- splash-screen/src/definitions.ts | 9 +--- 3 files changed, 32 insertions(+), 52 deletions(-) diff --git a/app/android/src/main/java/com/capacitorjs/plugins/app/AppPlugin.java b/app/android/src/main/java/com/capacitorjs/plugins/app/AppPlugin.java index ec9ab04bb..2989f0b22 100644 --- a/app/android/src/main/java/com/capacitorjs/plugins/app/AppPlugin.java +++ b/app/android/src/main/java/com/capacitorjs/plugins/app/AppPlugin.java @@ -53,21 +53,17 @@ public void load() { this.backButtonHandlerEnabled = !getConfig().getBoolean("disableBackButtonHandler", false); this.edgeGestureHandlerEnabled = canUseEdgeGesture && getConfig().getBoolean("enableEdgeGestureHandler", false); - bridge - .getApp() - .setStatusChangeListener((isActive) -> { - Logger.debug(getLogTag(), "Firing change: " + isActive); - JSObject data = new JSObject(); - data.put("isActive", isActive); - notifyListeners(EVENT_STATE_CHANGE, data, false); - }); - - bridge - .getApp() - .setAppRestoredListener((result) -> { - Logger.debug(getLogTag(), "Firing restored result"); - notifyListeners(EVENT_RESTORED_RESULT, result.getWrappedResult(), true); - }); + bridge.getApp().setStatusChangeListener((isActive) -> { + Logger.debug(getLogTag(), "Firing change: " + isActive); + JSObject data = new JSObject(); + data.put("isActive", isActive); + notifyListeners(EVENT_STATE_CHANGE, data, false); + }); + + bridge.getApp().setAppRestoredListener((result) -> { + Logger.debug(getLogTag(), "Firing restored result"); + notifyListeners(EVENT_RESTORED_RESULT, result.getWrappedResult(), true); + }); this.onBackPressedCallback = new OnBackPressedCallback(false) { @Override diff --git a/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java b/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java index af87b3ecf..756a2d6d5 100644 --- a/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java +++ b/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java @@ -138,17 +138,14 @@ public boolean onPreDraw() { if (!isVisible && !isHiding) { isVisible = true; - new Handler(context.getMainLooper()).postDelayed( - () -> { - // Splash screen is done... start drawing content. - if (settings.isAutoHide()) { - isVisible = false; - onPreDrawListener = null; - content.getViewTreeObserver().removeOnPreDrawListener(this); - } - }, - settings.getShowDuration() - ); + new Handler(context.getMainLooper()).postDelayed(() -> { + // Splash screen is done... start drawing content. + if (settings.isAutoHide()) { + isVisible = false; + onPreDrawListener = null; + content.getViewTreeObserver().removeOnPreDrawListener(this); + } + }, settings.getShowDuration()); } // Not ready to dismiss splash screen @@ -225,16 +222,13 @@ private void showDialog( isVisible = true; if (settings.isAutoHide()) { - new Handler(context.getMainLooper()).postDelayed( - () -> { - hideDialog(activity, isLaunchSplash); + new Handler(context.getMainLooper()).postDelayed(() -> { + hideDialog(activity, isLaunchSplash); - if (splashListener != null) { - splashListener.completed(); - } - }, - settings.getShowDuration() - ); + if (splashListener != null) { + splashListener.completed(); + } + }, settings.getShowDuration()); } else { // If no autoHide, call complete if (splashListener != null) { @@ -397,16 +391,13 @@ public void onAnimationEnd(Animator animator) { isVisible = true; if (settings.isAutoHide()) { - new Handler(context.getMainLooper()).postDelayed( - () -> { - hide(settings.getFadeOutDuration(), isLaunchSplash); + new Handler(context.getMainLooper()).postDelayed(() -> { + hide(settings.getFadeOutDuration(), isLaunchSplash); - if (splashListener != null) { - splashListener.completed(); - } - }, - settings.getShowDuration() - ); + if (splashListener != null) { + splashListener.completed(); + } + }, settings.getShowDuration()); } else { // If no autoHide, call complete if (splashListener != null) { diff --git a/splash-screen/src/definitions.ts b/splash-screen/src/definitions.ts index f06dcc9da..3ec92a8de 100644 --- a/splash-screen/src/definitions.ts +++ b/splash-screen/src/definitions.ts @@ -69,14 +69,7 @@ declare module '@capacitor/cli' { * @example "CENTER_CROP" */ androidScaleType?: - | 'CENTER' - | 'CENTER_CROP' - | 'CENTER_INSIDE' - | 'FIT_CENTER' - | 'FIT_END' - | 'FIT_START' - | 'FIT_XY' - | 'MATRIX'; + 'CENTER' | 'CENTER_CROP' | 'CENTER_INSIDE' | 'FIT_CENTER' | 'FIT_END' | 'FIT_START' | 'FIT_XY' | 'MATRIX'; /** * Show a loading spinner on the Splash Screen. From 3a4f0196528e9cb250a539c5d3e43b27c97c542e Mon Sep 17 00:00:00 2001 From: OS-pedrogustavobilro Date: Fri, 7 Aug 2026 13:52:07 +0100 Subject: [PATCH 6/6] Revert "tmp: change to trigger ci" This reverts commit 95de039883b54534a0430eb21c23f7423ab366f9. --- action-sheet/CHANGELOG.md | 1 - app-launcher/CHANGELOG.md | 1 - app/CHANGELOG.md | 1 - browser/CHANGELOG.md | 1 - clipboard/CHANGELOG.md | 1 - device/CHANGELOG.md | 1 - dialog/CHANGELOG.md | 1 - local-notifications/CHANGELOG.md | 1 - motion/CHANGELOG.md | 1 - network/CHANGELOG.md | 1 - preferences/CHANGELOG.md | 1 - push-notifications/CHANGELOG.md | 1 - screen-orientation/CHANGELOG.md | 1 - screen-reader/CHANGELOG.md | 1 - share/CHANGELOG.md | 1 - splash-screen/CHANGELOG.md | 1 - status-bar/CHANGELOG.md | 1 - text-zoom/CHANGELOG.md | 1 - toast/CHANGELOG.md | 1 - 19 files changed, 19 deletions(-) diff --git a/action-sheet/CHANGELOG.md b/action-sheet/CHANGELOG.md index 1d9524f44..ac20d8c38 100644 --- a/action-sheet/CHANGELOG.md +++ b/action-sheet/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/app-launcher/CHANGELOG.md b/app-launcher/CHANGELOG.md index 3cd0d1017..7ace16148 100644 --- a/app-launcher/CHANGELOG.md +++ b/app-launcher/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/app/CHANGELOG.md b/app/CHANGELOG.md index 5aae1398b..5fa026f0a 100644 --- a/app/CHANGELOG.md +++ b/app/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/browser/CHANGELOG.md b/browser/CHANGELOG.md index ca92c0868..cd770cee0 100644 --- a/browser/CHANGELOG.md +++ b/browser/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/clipboard/CHANGELOG.md b/clipboard/CHANGELOG.md index 24d73a5ae..6d8ddb976 100644 --- a/clipboard/CHANGELOG.md +++ b/clipboard/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/device/CHANGELOG.md b/device/CHANGELOG.md index 12c69c37c..a78dd20cb 100644 --- a/device/CHANGELOG.md +++ b/device/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/dialog/CHANGELOG.md b/dialog/CHANGELOG.md index 7b796146b..15736b15e 100644 --- a/dialog/CHANGELOG.md +++ b/dialog/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/local-notifications/CHANGELOG.md b/local-notifications/CHANGELOG.md index 286436cb5..e4cb4c16a 100644 --- a/local-notifications/CHANGELOG.md +++ b/local-notifications/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/motion/CHANGELOG.md b/motion/CHANGELOG.md index a4daa5ada..4eeebd7c1 100644 --- a/motion/CHANGELOG.md +++ b/motion/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/network/CHANGELOG.md b/network/CHANGELOG.md index 108cb2201..a2d661f72 100644 --- a/network/CHANGELOG.md +++ b/network/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/preferences/CHANGELOG.md b/preferences/CHANGELOG.md index dceae7df1..7fc1b1f69 100644 --- a/preferences/CHANGELOG.md +++ b/preferences/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/push-notifications/CHANGELOG.md b/push-notifications/CHANGELOG.md index 50b23df81..a75f0ff70 100644 --- a/push-notifications/CHANGELOG.md +++ b/push-notifications/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/screen-orientation/CHANGELOG.md b/screen-orientation/CHANGELOG.md index 68ad3b40f..82db35e27 100644 --- a/screen-orientation/CHANGELOG.md +++ b/screen-orientation/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/screen-reader/CHANGELOG.md b/screen-reader/CHANGELOG.md index c25c29896..cafbfee33 100644 --- a/screen-reader/CHANGELOG.md +++ b/screen-reader/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/share/CHANGELOG.md b/share/CHANGELOG.md index 2e8e11a6b..fc6b913e3 100644 --- a/share/CHANGELOG.md +++ b/share/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/splash-screen/CHANGELOG.md b/splash-screen/CHANGELOG.md index d9c7443e6..094bae77c 100644 --- a/splash-screen/CHANGELOG.md +++ b/splash-screen/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/status-bar/CHANGELOG.md b/status-bar/CHANGELOG.md index d046d819e..8240aaee8 100644 --- a/status-bar/CHANGELOG.md +++ b/status-bar/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/text-zoom/CHANGELOG.md b/text-zoom/CHANGELOG.md index 5ce39695b..98e18a91b 100644 --- a/text-zoom/CHANGELOG.md +++ b/text-zoom/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/toast/CHANGELOG.md b/toast/CHANGELOG.md index ee2915fe8..bd089d75b 100644 --- a/toast/CHANGELOG.md +++ b/toast/CHANGELOG.md @@ -1,6 +1,5 @@ # Change Log - All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.