[Bug]: build warning on Android for flatDir

Open Beginner friendly
#8,574 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
android

Research direction

Start by examining the two flatDir occurrences identified in the linked Capacitor repository code search, along with their surrounding Android build configuration. Verify the appropriate fileTree replacement and check that a new Capacitor project builds without the flatDir warning.

Written by the indexing model from the issue text.

Description

triage
Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 8.5.0
@capacitor/core: 8.5.0
@capacitor/android: 8.5.0
@capacitor/ios: 8.5.0

Installed Dependencies:

@capacitor/core: 8.5.0
@capacitor/cli: 8.5.0
@capacitor/android: 8.5.0
@capacitor/ios: 8.5.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Other API Details
npm: 11.13.0
node: v24.16.0
pod: 1.16.2
Platforms Affected
  • iOS
  • Android
  • Web
Current Behavior

There's a warning about flatDir which I think can be easily solved.

Expected Behavior

No warning in the build

Project Reproduction

Any new capacitor project

Additional Information

You can find the two offending ones here:
https://github.com/search?q=repo%3Aionic-team%2Fcapacitor+flatdir&type=code)

They should be replaced with fileTree as far as I understand.

Dominant language
TypeScript
Stars
16.7k
Forks
1.3k
Avg merge
3d 10h
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionic-team/capacitor

All issues in ionic-team/capacitor

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.