Skip to content

fix(barcode-scanning): resolve Android overrides from the root project - #371

Closed
Asylian21 wants to merge 1 commit into
capawesome-team:mainfrom
Asylian21:codex/gradle-explicit-root-properties
Closed

Asylian21 wants to merge 1 commit into
capawesome-team:mainfrom
Asylian21:codex/gradle-explicit-root-properties

Conversation

@Asylian21

@Asylian21 Asylian21 commented Nov 22, 2026 •

Copy link
Copy Markdown

Closes #370

Changes

Read Barcode Scanning's Android overrides from rootProject.ext explicitly. The existing SDK and dependency defaults remain available when the app omits an override. This avoids the implicit lookup that Gradle 9.6 deprecated and Gradle 10 removes. Gradle property lookup documentation

Validation

  • Configured both versions of the plugin in an isolated Android host using Gradle 9.8.2, AGP 9.4.1, JDK 21, and Capacitor 9.0.0-rc.0.
  • Observed 14 implicit parent lookup warnings from the original Barcode Scanning module and zero with the replacement.
  • Verified the SDK fallback values and host overrides. The patched Android modules compiled against Capacitor 9 RC.
  • Compiled the Android modules with their unoverridden defaults against Capacitor 8.6.2, Gradle 8.14.3 and AGP 8.13.2.
  • Added a patch changeset.

@robingenz

Copy link
Copy Markdown
Member

Thank you for the PR and the careful testing.

Capacitor fixed this with rootProject.hasProperty(...) (ionic-team/capacitor#8731), and the Capacitor 9 migration tool rewrites these lines for all packages (ionic-team/migrate-capacitor-plugin#51). The tool does not match rootProject.ext.has(...), so I prefer to stay with the official form.

I will close this PR and keep #370 open. We will fix it for all packages with the Capacitor 9 upgrade.

@robingenz robingenz closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(barcode-scanning): implicit parent property lookup warns on Gradle 9.6+

2 participants