feat(classify): Android modules at any depth, Unity, React Native, Flutter, .NET split #449

Merged
sharang merged 1 commits from feat/mobile-detection into main 2026-10-05 14:02:44 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 3282b05fad feat(classify): Android modules at any depth, Unity, React Native, Flutter, .NET split
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 10m34s
The classifier looked two levels deep, so an Android Studio project
(app/src/main/AndroidManifest.xml) was not recognised, and a repository
with an Android app, a Unity project and their generated .csproj files
became a desktop app. Managed Git sets the type of its new targets from
this classification, so that mattered.

- Markers are collected to depth 6, skipping build output, dependencies
  and caches (build, .gradle, node_modules, Pods, Unity Library/Temp/Obj).
- Android: a module's src/main/AndroidManifest.xml or a Gradle file
  applying com.android.application/library; every module is a fact
  (phone and tablet apps in one repository are both named).
- React Native (package.json names react-native) and Flutter (sdk:
  flutter) are mobile apps, no longer web apps.
- Unity (ProjectSettings/ProjectVersion.txt): an Android app when it has
  Android plugins or sits beside Android modules, otherwise a desktop app;
  its generated .sln/.csproj no longer count.
- .NET projects are split: WPF/Windows Forms (UseWPF, UseWindowsForms,
  PresentationFramework, System.Windows.Forms, the WPF project type GUID)
  -> desktop; ASP.NET (Microsoft.NET.Sdk.Web, AspNetCore, System.Web,
  Web.config beside the project, the web project type GUID) and WCF
  (System.ServiceModel, .svc) -> backend. The kind with more projects
  ranks higher, and no .NET verdict outranks a clear mobile one.

Refs #436.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-05 15:38:28 +02:00