Skip to content

feat(scanner): add Android/Gradle ecosystem support - #31

Merged
ohing504 merged 1 commit into
mainfrom
feat/android-scanner
Jul 18, 2026
Merged

feat(scanner): add Android/Gradle ecosystem support#31
ohing504 merged 1 commit into
mainfrom
feat/android-scanner

Conversation

@ohing504

Copy link
Copy Markdown
Owner

Closes #15

요약

Android(Gradle) 프로젝트의 로컬 빌드 아티팩트를 스캔·정리한다. EcoAndroid 상수를 실제 스캐너로 채운다.

  • 탐지: build.gradle / build.gradle.kts 마커
  • 아티팩트: build/ (safe/build, gradle clean 대상) · .gradle/ (safe/cache, per-project)

설계 판단

  • 멀티모듈: 각 모듈이 자체 마커를 가져 개별 프로젝트 루트가 됨 → build 규칙 하나로 모든 모듈 output 커버(모듈명 열거 불필요). app/build를 따로 등록하지 않음.
  • PruneRoot 불필요: Android SDK엔 build.gradle이 없어 프로젝트 컨텍스트가 생기지 않음 → Flutter 같은 SDK 소스 오탐이 원천적으로 없음(실측: SDK 하위 검출 0건).
  • RN 중복 없음: android/build는 테이블 순서상 node의 RN 규칙이 먼저 매치. android 스캐너는 RN 규칙이 다루지 않는 더 깊은 모듈 빌드(android/app/build)를 보완.
  • 글로벌 캐시 비중복: 공유 ~/.gradle/caches·AVD·NDK는 Global Caches 스캐너 담당, 여기서 재등록하지 않음.

검증

  • 단위 테스트 5개(기본 검출·마커 부재·멀티모듈·RN attribution·등록), 전체 테스트 그린, lint 0 issues
  • 실제 머신 ~/workspace 스캔: 8건 364MB 정확 검출(멀티모듈 cookiecut 포함)
  • 코드젠 툴 내부의 git-tracked build/는 protection 레이어가 protected로 걸러 삭제 대상에서 제외(2단 방어 실측 확인)
  • Android SDK 경로 스캔 오탐 0건

문서

  • docs/ecosystems.md: Supported 표 implemented, dedup 순서, Android 섹션 신설

🤖 Generated with Claude Code

Detect Android/Gradle projects by build.gradle(.kts) and reclaim each
module's build/ (compiled output) and .gradle/ (per-project cache).

Every Gradle module carries its own marker, so the root project and each
subproject become their own project root — one `build` rule covers all
module outputs without enumerating module names. No SDK PruneRoot needed:
the Android SDK ships no build.gradle, so it never roots a context.
React Native android/build attributes to node first in table order; the
android scanner still covers deeper module builds the RN rules omit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013SX3vRs78zFYA2kTRZAtg6
@ohing504
ohing504 merged commit b510f9c into main Jul 18, 2026
3 checks passed
@ohing504
ohing504 deleted the feat/android-scanner branch July 18, 2026 09:16
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.

Android ecosystem 지원 (gradle build, .gradle)

1 participant