Repository navigation
Conversation
Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
Co-authored-by: Joey Pender <joey.pender@outsystems.com> Co-authored-by: Pedro Bilro <pedro.gustavo.bilro@outsystems.com> Co-authored-by: Mark Anderson <mark.anderson@outsystems.com>
…#8476) Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
…am#8492) Co-authored-by: Mark Anderson <mark.anderson@outsystems.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…-team#8271) Co-authored-by: Eric Horodyski <horodyski@ionic.io>
…ore` (ionic-team#8649)" This reverts commit eb06606.
…8674) Co-authored-by: Mark Anderson <mark.anderson@outsystems.com>
Adds a catalog-info.yaml so Capacitor and its core, cli, android, and ios packages show up in OutSystems' Backstage software catalog.
|
Git applied the upstream-preferred strategy to resolve this sync. Please review the branch carefully before merging. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Beta npm buildMaintainers can publish one Capacitor Plus workspace package from this PR to npm for fast testing. Comment Examples: /publish-beta core
/publish-beta cli
/publish-beta @capacitor-plus/coreIf exactly one workspace package changed, Packages:
The workflow will:
Security note: beta publish is only enabled for branches inside this repository. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1,9 +1,9 @@ | |||
| { | |||
| "name": "@capacitor-plus/core", | |||
| "name": "@capacitor/core", | |||
There was a problem hiding this comment.
Preserve the Capacitor+ package names
Renaming the workspace packages from @capacitor-plus/* to @capacitor/* breaks the existing release setup. In particular, scripts/sync-peer-dependencies.mjs still searches for @capacitor-plus/core and immediately reads corePkg.version, so the root version hook now fails because that package no longer exists. All four package manifests change scope here; retain the fork's names so releases continue updating and publishing the packages its consumers use.
Useful? React with 👍 / 👎.
| observers.append(NotificationCenter.default.addObserver(forName: UIScene.willEnterForegroundNotification, object: nil, queue: OperationQueue.main) { [weak self] notification in | ||
| self?.triggerSceneLifecycleJSEvent("resume", for: notification) | ||
| }) | ||
| observers.append(NotificationCenter.default.addObserver(forName: UIApplication.didEnterBackgroundNotification, object: nil, queue: OperationQueue.main) { [weak self] _ in | ||
| guard self?.viewController?.view.window?.windowScene == nil else { return } | ||
| self?.triggerDocumentJSEvent(eventName: "pause") | ||
| observers.append(NotificationCenter.default.addObserver(forName: UIScene.didEnterBackgroundNotification, object: nil, queue: OperationQueue.main) { [weak self] notification in | ||
| self?.triggerSceneLifecycleJSEvent("pause", for: notification) |
There was a problem hiding this comment.
Replace the existing scene observers instead of adding duplicates
For UIScene apps without Cordova plugins, a foreground or background transition after the page loads now dispatches resume or pause twice: these new observers call triggerSceneLifecycleJSEvent, while the existing scene observers immediately below still call triggerDocumentJSEvent for the same notification. This can run application resume/pause side effects twice, and the unguarded observers also preserve the cold-start JavaScript evaluation problem this helper is intended to prevent. Consolidate each notification into one guarded observer.
Useful? React with 👍 / 👎.
| takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, imageFileUri); | ||
| takePictureIntent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION); | ||
|
|
||
| // Store in static variables to survive activity recreation | ||
| pendingFilePathCallback = filePathCallback; | ||
| pendingImageFileUri = imageFileUri; | ||
| pendingFileChooserType = FileChooserType.IMAGE_CAPTURE; | ||
|
|
||
| activityListener = (activityResult) -> { |
There was a problem hiding this comment.
Keep image-capture state available after activity recreation
When an HTML image-capture input opens the camera and Android recreates the host activity before returning, the new BridgeWebChromeClient has no instance activityListener. Its result handler relies on pendingFilePathCallback and pendingImageFileUri in that case, but this change removes their initialization for image capture. The camera result is consequently ignored and the file-input callback never completes. Preserve the pending-state assignments, as the video and file-picker paths still do.
Useful? React with 👍 / 👎.
| while (i < source.length && depth > 0) { | ||
| const ch = source[i]; | ||
| if (ch === '{') depth++; | ||
| else if (ch === '}') depth--; |
There was a problem hiding this comment.
Ignore strings and comments when locating the AppDelegate end
For an otherwise eligible UIScene migration whose AppDelegate contains an unmatched brace inside a string or comment, this replacement counts that brace as Swift structure and can insert the generated method inside existing code. For example, an AppDelegate containing let marker = "}" receives the configuration method inside that string literal, corrupting the source file. The previous scanner skipped strings and comments; retain that behavior when finding the insertion point.
Useful? React with 👍 / 👎.
| } catch (e: any) { | ||
| if (options.liveReload) { | ||
| await CapLiveReloadHelper.revertCapConfigForLiveReload(); | ||
| if (liveReloadManifestUpdated && platformName === config.android.name && cordovaPlugins) { | ||
| await writeCordovaAndroidManifest(cordovaPlugins, config, platformName, false); | ||
| } | ||
| } |
There was a problem hiding this comment.
Restore the Android manifest when live reload fails
If an Android live-reload run fails after writeCordovaAndroidManifest(..., true) succeeds, this catch block now restores only the Capacitor config. The generated Cordova manifest retains android:usesCleartextTraffic="true" even when the project's normal server.cleartext setting is false. A subsequent native build without another sync/copy can therefore include the temporary cleartext allowance. Restore the manifest here using the same guarded cleanup retained in the SIGINT handler.
Useful? React with 👍 / 👎.
| setup: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| timeout-minutes: 30 |
There was a problem hiding this comment.
Keep CI job timeouts within the documented ten-minute cap
The checked .github/workflows/ci.yml changes all six job timeouts from 10 to 30 minutes. This directly violates the Timeout Policy in AGENTS.md, which explicitly caps GitHub Actions jobs at ten minutes unless requested otherwise; no such exception was requested here. Restore these values to 10 or lower so stalled jobs remain bounded by the repository's required limit.
AGENTS.md reference: AGENTS.md:L127-L129
Useful? React with 👍 / 👎.
4cd5bb7 to
f98243f
Compare
|
Git applied the upstream-preferred strategy to resolve this sync. Please review the branch carefully before merging. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f98243f154
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (project.hasFile(fileRelPath)) { | ||
| return { added: false }; |
There was a problem hiding this comment.
Check target membership before skipping Swift file registration
For a pre-UIScene project with a stale PBXFileReference for SceneDelegate.swift, but no corresponding file or Sources build-phase entry, readDetectionSignals still classifies the project as eligible. Migration then creates the file and adds SceneDelegate.self to AppDelegate, but this early return leaves SceneDelegate outside the compilation target, so the migrated app cannot build. Preserve the previous target-membership check and repair the Sources entry instead of treating any file reference as complete registration.
Useful? React with 👍 / 👎.
| `${k.replace(/^@capacitor-plus\//, '').replace(/-/g, '_')}_version`, | ||
| v, | ||
| const versions = capacitorPackages.map(([k, v]): [string, string] => [ | ||
| `${k.replace(/^@capacitor\//, '').replace(/-/g, '_')}_version`, |
There was a problem hiding this comment.
Strip the same package scope that the telemetry filter selects
For applications using @capacitor-plus/* dependencies, the filter immediately above still selects only that scope, but this replacement now strips @capacitor/ instead. Consequently, @capacitor-plus/core produces @capacitor_plus/core_version rather than the existing core_version field, and the other package-version fields change similarly. This silently changes the emitted telemetry schema instead of merely sanitizing version values; retain the matching @capacitor-plus/ replacement.
Useful? React with 👍 / 👎.
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
|
Already landed on plus, closing as superseded. |
Merge Conflict Review Required
The sync of upstream PR ionic-team#8683 from @alexgerardojacinto encountered merge conflicts.
Original PR: ionic-team#8683
What happened
Synced from upstream by Capacitor+ Bot
Need help on this PR? Tag
@codesmith-botwith what you need.