github / github/codeql

Autobuild ignores default build variant setting for Android projects

未關閉
#19,056 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

CodeQL autobuild apparently always tries to build the alphabetically earliest build variant for an Android project, ignoring alternate default build variant settings specified in `build.gradle`:

- https://issuetracker.google.com/issues/36988145
- https://stackoverflow.com/questions/52072162/how-to-change-android-studios-default-build-flavor

For example, my project [SMS Import / Export](https://github.com/tmo1/sms-ie) has four build variants, and the default is set to `standardDebug`. Android Studio respects this, but CodeQL autobuild still tries to build `legacyDebug`.

貢獻指南

開啟貢獻指南

研究方向

Start by tracing CodeQL's Android autobuild handling and how it determines the build variant from the project's build.gradle. Reproduce the issue with the linked SMS Import / Export project, which defines standardDebug as its default while autobuild selects legacyDebug. Done means autobuild respects the configured default variant.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android
領域
build-system, mobile
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。