Repository navigation
Commit 3500cb6
fix(android): check the kotlin extension instead of the AGP version
Replace the AGP version / android.builtInKotlin check with a direct test for
the registered kotlin extension. The version check reads
com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION, which can resolve to a
different classpath entry than the AGP actually in use, and the global
android.builtInKotlin property can be overridden per module by the
com.android.built-in-kotlin plugin -- so both inputs can disagree with
reality. Asking whether the kotlin extension exists tests the condition that
actually fails, needs no AGP version table, and covers AGP 10 where the
opt-out is removed.
Co-authored-by: gabrieldonadel <11707729+gabrieldonadel@users.noreply.github.com>1 parent 2f15506 commit 3500cb6
1 file changed
Lines changed: 7 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
44 | 32 | | |
45 | 33 | | |
46 | 34 | | |
| |||
0 commit comments