github / github/codeql

Autobuild ignores default build variant setting for Android projects

オープン
#19,056 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。