Android · Product Flavor · Gradle
Android Gradle Flavor 代码独特性
Android 批量发行商常从一个仓库发布数十个 product flavor。若只有 `res/` 资源变化,Play 会看到重复应用。apporig 对比您上传的 Gradle 项目中的 source set 和共享模块。
Gradle flavor 为何触发重复检测
相同的 `main` 源码加 flavor 专属资源,会得到外观不同但 Kotlin 架构相同的应用。Play 审核会看 APK 结构和开发者历史。
上传完整 multi-flavor 仓库或单独 flavor 导出 – apporig 映射工作区各变体之间的重叠。
Flavor 审计工作流
上传 Gradle 项目 → 与姊妹应用对比 → 重写 COPY 标记的共享业务模块 → Play Console 上传前重新扫描。
常见问题
Why do Gradle product flavors trigger duplicate detection?
Flavors that share the same main source set and differ only in resources produce structurally similar apps Google Play treats as repetitive content.
How do I audit Android flavors for uniqueness?
Upload the full Gradle repo or separate flavor exports as projects in one workspace, then review COPY pairs against sibling apps.
Does apporig analyze multi-flavor Gradle repos?
Yes. Upload the repository as a Kotlin/Java project – shared and flavor-specific source modules are compared against your catalog.
What Kotlin layers should differ between flavors?
Domain logic, ViewModels, repositories, and navigation – not just res/ assets and strings.xml.